/* ============ Tokens ============ */
:root {
  --bg: #120F24;
  --bg-deep: #0D0B1B;
  --surface: #1B1633;
  --surface-2: #221C3F;
  --line: rgba(222, 214, 255, 0.10);
  --line-strong: rgba(222, 214, 255, 0.18);
  --text: #F3F1FA;
  --text-muted: #A9A3C4;
  --text-faint: #7A7496;
  --accent: #5EEAD4;
  --accent-ink: #062B27;
  --violet: #8B7BFF;
  --danger: #FF8A9A;

  --color-bg: var(--bg);
  --color-text: var(--text);
  --color-primary: var(--accent);

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  --text-hero: clamp(2.75rem, 1.2rem + 6vw, 6rem);

  --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms var(--ease);
  --section-pad: clamp(var(--space-20), 11vw, 10rem);
}

body { background: var(--bg); color: var(--text); overflow-x: hidden; }
.wrap { width: min(1200px, 100% - 2 * clamp(1.25rem, 4vw, 3rem)); margin-inline: auto; }
.accent { color: var(--accent); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6rem;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-base);
  letter-spacing: -0.005em; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset;
}
.btn:hover { background: #7FF0DE; }
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform 220ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: var(--text-sm); }
.btn--block { width: 100%; min-height: 56px; margin-top: var(--space-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 15, 36, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.brand__mark { width: 32px; height: 34px; color: var(--text); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-16), 10vw, 9rem) clamp(var(--space-16), 8vw, 7rem); border-bottom: 1px solid var(--line); }
.hero__contours {
  position: absolute; right: -18vw; top: 50%; transform: translateY(-50%);
  width: min(1100px, 95vw); height: auto; aspect-ratio: 1;
  color: rgba(139, 123, 255, 0.16); pointer-events: none;
}
.hero__contours rect { stroke-width: 1.2; }
.hero__waterline { stroke: var(--accent); stroke-width: 1.6; opacity: 0.55; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s 0.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__inner { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  padding: 0.5rem 0.9rem; border: 1px solid rgba(94, 234, 212, 0.28); border-radius: 999px;
  background: rgba(94, 234, 212, 0.06);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero__title {
  margin-top: var(--space-8);
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-hero); line-height: 0.94; letter-spacing: -0.028em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--accent); }
.hero__sub { margin-top: var(--space-8); font-size: var(--text-lg); color: var(--text-muted); max-width: 40ch; line-height: 1.5; }
.hero__cta { margin-top: var(--space-10); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.hero__note { font-size: var(--text-sm); color: var(--text-faint); }

.focus { margin-top: clamp(var(--space-16), 8vw, var(--space-24)); }
.focus__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--space-4); }
.focus__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.focus__item { display: flex; flex-direction: column; gap: 0.25rem; padding: var(--space-6) var(--space-6) 0 0; }
.focus__item + .focus__item { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.focus__key { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.02em; }
.focus__desc { font-size: var(--text-sm); color: var(--text-muted); }

/* ============ Sections ============ */
.section { padding-block: var(--section-pad); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: clamp(var(--space-12), 6vw, var(--space-20)); max-width: 760px; }
.kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); margin-bottom: var(--space-4); }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.02; letter-spacing: -0.03em; }
.section__lede { margin-top: var(--space-5); color: var(--text-muted); font-size: var(--text-base); max-width: 52ch; }

.ticks { display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: var(--text-sm); color: var(--text); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); transform-origin: center;
}
.ticks--muted li { color: var(--text-muted); }

/* ============ Process ============ */
.process { background: var(--bg-deep); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: none; }
.step {
  position: relative; padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.step::after { /* connector line */
  content: ""; position: absolute; top: calc(var(--space-8) + 24px); right: calc(-1 * var(--space-5)); width: var(--space-5); height: 1px; background: var(--line-strong);
}
.step:last-child::after { display: none; }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-10); }
.step__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.22); }
.step__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text-faint); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.step__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); letter-spacing: -0.025em; }
.step__sub { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); min-height: 3em; }
.step .ticks { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* ============ Industries ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.card__art { aspect-ratio: 16 / 9; background: linear-gradient(180deg, #17122C, #1B1633); border-bottom: 1px solid var(--line); }
.card__art svg { width: 100%; height: 100%; }
.card__art .grid path { stroke: rgba(222, 214, 255, 0.06); stroke-width: 1; fill: none; }
.card__art .shape { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__art .dim path { fill: none; stroke: var(--violet); stroke-width: 1.2; opacity: 0.8; }
.card__art .dot { fill: var(--accent); }
.card__art .stop { fill: var(--bg); stroke: var(--violet); stroke-width: 2; }
.card__art .tiles rect { fill: rgba(139, 123, 255, 0.07); stroke: rgba(139, 123, 255, 0.35); stroke-width: 1; }
.card__art .tile--on { fill: rgba(94, 234, 212, 0.18); stroke: var(--accent); stroke-width: 1.6; }
.card__body { padding: var(--space-8); }
.card__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem); letter-spacing: -0.025em; line-height: 1.1; }
.card__desc { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); }
.card .ticks { margin-top: var(--space-6); }

/* ============ FAQ ============ */
.faq { background: var(--bg-deep); }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.faq__head { position: sticky; top: 110px; margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-6) 0; font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.35;
  transition: color var(--transition-interactive);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: currentColor; transform: translate(-50%, -50%); transition: transform 260ms var(--ease); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { border-color: var(--accent); color: var(--accent); }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { padding: 0 3.5rem var(--space-6) 0; color: var(--text-muted); font-size: var(--text-base); }
.qa[open] .qa__a { animation: fade 320ms var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============ Form ============ */
.grow { position: relative; overflow: hidden; }
.grow::before { /* faint contour echo */
  content: ""; position: absolute; left: -240px; bottom: -240px; width: 640px; height: 640px; border-radius: 220px;
  border: 1px solid rgba(139, 123, 255, 0.12);
  box-shadow: 0 0 0 60px var(--bg), 0 0 0 61px rgba(139, 123, 255, 0.10), 0 0 0 120px var(--bg), 0 0 0 121px rgba(139, 123, 255, 0.08);
  pointer-events: none;
}
.grow__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
.grow__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.75rem, 1.5rem + 5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; }
.grow__copy .ticks { margin-top: var(--space-8); }

.formcard { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7); }
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-size: var(--text-sm); font-weight: 700; margin-bottom: 0.5rem; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 1rem; font-size: 1rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: var(--text-faint); }
.field input:hover, .field select:hover { border-color: rgba(222, 214, 255, 0.3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18); }
.field select:invalid { color: var(--text-faint); }
.field select option { color: var(--text); background: var(--surface); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field__err { font-size: var(--text-xs); color: var(--danger); min-height: 0; margin-top: 0.4rem; }
.field__err:empty { display: none; }
.form__fail { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--danger); text-align: center; }
.form__fail:empty { display: none; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(6, 43, 39, 0.3); border-top-color: var(--accent-ink); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; padding: var(--space-10) var(--space-4); animation: fade 400ms var(--ease); }
.success:focus { outline: none; }
.success__icon { width: 64px; height: 64px; margin: 0 auto var(--space-6); display: grid; place-items: center; border-radius: 50%; background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.35); }
.success__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.03em; }
.success__text { margin: var(--space-4) auto 0; color: var(--text-muted); max-width: 34ch; }
.success__text strong { color: var(--text); }

/* ============ Leads viewer ============ */
.leads__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-8); }
.leads__table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.leads__table table { font-size: var(--text-sm); }
.leads__table th, .leads__table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.leads__table th { color: var(--text-faint); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; background: var(--surface); }
.leads__empty { padding: var(--space-10); text-align: center; color: var(--text-muted); }

/* ============ Footer ============ */
.footer { padding-block: var(--space-12); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); }
.footer__line { color: var(--text-muted); font-size: var(--text-sm); }
.footer__contact { display: flex; gap: 0.6rem; font-size: var(--text-sm); color: var(--text-faint); }
.footer__contact a, .success__alt a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(94, 234, 212, 0.4); }
.footer__contact a:hover, .success__alt a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.success__alt { margin: var(--space-6) auto 0; font-size: var(--text-sm); color: var(--text-faint); }
.footer__copy { color: var(--text-faint); font-size: var(--text-sm); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .cards .reveal:nth-child(2) { transition-delay: 90ms; }
.steps .reveal:nth-child(3), .cards .reveal:nth-child(3) { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero__waterline { stroke-dashoffset: 0; } }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .steps, .cards { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .step__sub { min-height: 0; }
  .faq__grid, .grow__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .hero__contours { right: -45vw; opacity: 0.7; }
}
@media (max-width: 640px) {
  .topbar__inner { height: 64px; }
  .topbar .btn--sm { padding: 0 0.9rem; }
  .focus__list { grid-template-columns: 1fr; }
  .focus__item, .focus__item + .focus__item { padding: var(--space-5) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__cta .btn { width: 100%; }
  .qa__a { padding-right: 0; }
  .step, .card__body { padding: var(--space-6); }
}
.form__fail a { color: var(--text); }
