/* ═════════════ Tokens (X-console inspired) ═════════════ */
:root {
  --bg: #000;
  --bg-raised: #0a0a0a;
  --bg-card: #111114;
  --bg-input: #0e0f12;
  --bg-input-focus: #0a0b0e;
  --bg-hover: #14161b;

  --bd: #1e1f24;
  --bd-strong: #2a2c33;
  --bd-brand: #1d9bf0;

  --fg: #e7e9ea;
  --fg-muted: #71767b;
  --fg-soft: #a8adb3;
  --fg-brand: #1d9bf0;
  --fg-danger: #f4212e;
  --fg-ok: #00ba7c;
  --fg-warn: #ffd400;

  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -20px rgba(0,0,0,.5);
  --shadow-focus: 0 0 0 3px rgba(29,155,240,.25);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 780px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Ambient light: subtle radial gradients to add depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(29,155,240,.06), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(29,155,240,.04), transparent 60%);
  pointer-events: none;
}

/* Skip link for a11y */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg-brand); color: #000; padding: 8px 14px;
  border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; }

/* Screen-reader-only */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Honeypot: hidden field only bots fill */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ═════════════ Topbar ═════════════ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0,0,0,.7);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--bd);
}
.topbar__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: -.02em; font-size: 17px;
}
.brand__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg-brand);
  box-shadow: 0 0 0 4px rgba(29,155,240,.15), 0 0 18px rgba(29,155,240,.55);
}
.brand__name { color: var(--fg); }
.brand__tld { color: var(--fg-muted); font-weight: 600; }
.topbar__badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-brand);
  border: 1px solid rgba(29,155,240,.35);
  background: rgba(29,155,240,.08);
  padding: 5px 10px; border-radius: 999px;
}

/* ═════════════ Layout ═════════════ */
.wrap {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 60px;
  width: 100%;
}

/* ═════════════ Hero ═════════════ */
.hero { margin: 12px 0 28px; }
.hero__title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero__lead {
  font-size: 16px; color: var(--fg-soft); margin: 0 0 20px; max-width: 60ch;
}
.hero__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  color: var(--fg-muted); font-size: 13px;
}
.hero__meta .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-brand); margin-right: 8px; vertical-align: middle;
}

/* ═════════════ Form / Sections ═════════════ */
.form { display: flex; flex-direction: column; gap: 18px; }

.sec {
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
}
.sec__h { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 4px; }
.sec__num {
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 12px;
  color: var(--fg-brand);
  background: rgba(29,155,240,.10);
  border: 1px solid rgba(29,155,240,.30);
  padding: 6px 10px; border-radius: 999px;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.sec__t { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.sec__s { margin: 4px 0 0; font-size: 13px; color: var(--fg-muted); }
.sec--send { gap: 14px; }

/* ═════════════ Grid helpers ═════════════ */
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) {
  .grid--2 { grid-template-columns: 1fr; }
}

/* ═════════════ Fields ═════════════ */
.f { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f__l {
  font-size: 13px; font-weight: 600; color: var(--fg-soft);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.f__l em { color: var(--fg-brand); font-style: normal; font-weight: 700; }

.f__i {
  width: 100%;
  min-height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  outline: none;
}
.f__i::placeholder { color: var(--fg-muted); opacity: .8; }
.f__i:hover:not(:focus) { border-color: var(--bd-strong); }
.f__i:focus {
  border-color: var(--bd-brand);
  background: var(--bg-input-focus);
  box-shadow: var(--shadow-focus);
}
.f__i:disabled { opacity: .55; cursor: not-allowed; }

.f__ta {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.hint { margin: -4px 0 0; font-size: 12px; color: var(--fg-muted); }
.hint strong { color: var(--fg-soft); }

/* Fieldset reset */
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }

/* ═════════════ Radio options ═════════════ */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--bd);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: var(--fg-soft);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}
.opt:hover { border-color: var(--bd-strong); color: var(--fg); }
.opt input {
  position: absolute; opacity: 0; pointer-events: none;
}
.opt input:focus-visible + span { box-shadow: var(--shadow-focus); border-radius: 999px; }
.opt:has(input:checked) {
  background: rgba(29,155,240,.12);
  border-color: var(--bd-brand);
  color: var(--fg-brand);
  font-weight: 600;
}

/* ═════════════ Chips (platforms) ═════════════ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--bd);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
  user-select: none;
}
.chip:hover { border-color: var(--bd-strong); color: var(--fg); }
.chip:active { transform: scale(.97); }
.chip input {
  position: absolute; opacity: 0; pointer-events: none;
}
.chip input:focus-visible + span { outline: 2px solid var(--bd-brand); outline-offset: 3px; border-radius: 999px; }
.chip:has(input:checked) {
  background: var(--fg-brand);
  border-color: var(--fg-brand);
  color: #000;
  font-weight: 700;
}

/* ═════════════ Dropzone (file upload) ═════════════ */
.drop {
  position: relative;
  border: 2px dashed var(--bd-strong);
  border-radius: var(--r-lg);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  background: var(--bg-input);
}
.drop:hover, .drop:focus-visible { border-color: var(--bd-brand); background: var(--bg-input-focus); outline: none; }
.drop.is-drag { border-color: var(--bd-brand); background: rgba(29,155,240,.06); }
.drop__i {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.drop__c { pointer-events: none; }
.drop__ic { color: var(--fg-brand); margin-bottom: 8px; }
.drop__t { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--fg); }
.drop__s { margin: 0; font-size: 12px; color: var(--fg-muted); }

.files { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.file {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  font-size: 13px;
}
.file__ic { flex-shrink: 0; color: var(--fg-brand); }
.file__n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.file__s { color: var(--fg-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.file__x {
  border: 0; background: transparent; color: var(--fg-muted);
  cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex;
  transition: color .12s, background .12s;
}
.file__x:hover { color: var(--fg-danger); background: rgba(244,33,46,.08); }

/* ═════════════ Consent + Submit ═════════════ */
.chk {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--fg-soft);
  cursor: pointer;
  padding: 4px 0;
}
.chk input {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--fg-brand);
  flex-shrink: 0; cursor: pointer;
}
.chk em { color: var(--fg-brand); font-style: normal; font-weight: 700; }

.send { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.send__hint { margin: 0; font-size: 12px; color: var(--fg-muted); text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  background: var(--fg-brand);
  color: #000;
  font-family: inherit; font-size: 15px; font-weight: 700;
  border: 0; border-radius: 999px;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 20px -8px rgba(29,155,240,.55);
}
.btn:hover { background: #1a8cd8; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; background: var(--fg-brand); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus), 0 6px 20px -8px rgba(29,155,240,.55); }
.btn__ic { transition: transform .15s ease; }
.btn:hover .btn__ic { transform: translateX(3px); }

/* ═════════════ Errors ═════════════ */
.err {
  margin: 6px 0 0;
  color: var(--fg-danger);
  font-size: 13px;
  font-weight: 500;
}
.err--global {
  padding: 12px 14px;
  background: rgba(244,33,46,.06);
  border: 1px solid rgba(244,33,46,.30);
  border-radius: var(--r-md);
  text-align: center;
}
.f__i.is-err { border-color: var(--fg-danger); }
.f__i.is-err:focus { box-shadow: 0 0 0 3px rgba(244,33,46,.20); }

/* ═════════════ Footer ═════════════ */
.foot {
  border-top: 1px solid var(--bd);
  padding: 20px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 12px;
}
.foot p { margin: 0; }

/* ═════════════ Overlay ═════════════ */
.ov {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadein .2s ease;
}
.ov[hidden] { display: none; }
.ov__box {
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.ov__state { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ov__t { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ov__s { margin: 0; font-size: 14px; color: var(--fg-muted); }
.ov__check {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,186,124,.12);
  color: var(--fg-ok);
  display: grid; place-items: center;
  border: 1.5px solid rgba(0,186,124,.40);
}
.ov__err {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(244,33,46,.10);
  color: var(--fg-danger);
  display: grid; place-items: center;
  border: 1.5px solid rgba(244,33,46,.35);
}
.ov__actions { margin-top: 8px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ov__actions .btn { padding: 10px 18px; font-size: 14px; }
.ov__actions .btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--bd-strong); }
.ov__actions .btn--ghost:hover { background: var(--bg-hover); }

.spin {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(29,155,240,.20);
  border-top-color: var(--fg-brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ═════════════ Motion respect ═════════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
