/* Brand fonts (self-hosted, unpacked from the design file) */
@font-face { font-family: "af Another Sans"; src: url("/fonts/another-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "af Another Sans"; src: url("/fonts/another-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "af Another Sans"; src: url("/fonts/another-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-base: #060c18;
  --bg-surface: #12192a;
  --bg-surface-raised: #1a2236;
  --bg-accent: rgba(142, 138, 244, 0.25);
  --orange: #ff9533;
  --orange-hover: #ffa654;
  --stat: #b15500;
  --white: #ffffff;
  --white-hover: #ecedee;
  --text-primary: #ffffff;
  --text-secondary: #c4c6ca;
  --text-tertiary: #888c94;
  --border-static: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.36);
  --light-text-primary: #12192a;
  --light-text-secondary: #595e6a;
  --danger: #ef6b6c;
  --overlay: 0.6;
  --font-sans: "af Another Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 5.5vw, 80px);
  --max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: "ss01" on;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid rgba(142, 138, 244, 0.8); outline-offset: 2px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--light-text-primary);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: 160px; display: flex; flex-direction: column; gap: 24px; }
.mono { font-family: var(--font-mono); }

/* Typography */
.eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.h1 { margin: 0; max-width: 1120px; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -0.025em; }
.h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.lead { margin: 0; font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.text-link { color: var(--text-secondary); }
.text-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: flex; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 500;
  color: var(--light-text-primary);
  transition: background-color 0.15s ease;
}
.btn:hover { color: var(--light-text-primary); }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-white { background: var(--white); }
.btn-white:hover { background: var(--white-hover); }
.btn-tile { flex-direction: column; justify-content: space-between; gap: 24px; min-height: 108px; padding: 16px; }
.btn svg { flex: none; }

/* Logo */
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 24px; width: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 880px; display: flex; flex-direction: column; background: var(--bg-surface-raised); }
.hero-bg, .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 12, 24, 0.85) 0%, rgba(6, 12, 24, 0.6) 60%, rgba(6, 12, 24, 0.4) 100%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; flex-grow: 1; padding-top: 24px; padding-bottom: 96px; }

.nav {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 10px 10px 10px 20px; border-radius: 12px;
  background: rgba(18, 25, 42, 0.72); border: 1px solid var(--border-static);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; line-height: 20px; font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; line-height: 20px; font-weight: 500; }
.nav-cta { align-items: center; min-height: 44px; padding: 0 18px; }

.hero-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 48px; flex-grow: 1; padding-top: 120px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-row .lead { max-width: 520px; flex: 1 1 360px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; width: 248px; max-width: 100%; }

@media (max-width: 720px) {
  .hero { min-height: 760px; }
  .nav-links { order: 3; width: 100%; padding: 4px 0 6px; }
  .hero-body { padding-top: 72px; }
  .hero-ctas { width: 100%; flex-direction: row; }
  .hero-ctas .btn { flex: 1 1 0; }
}

/* Customer logos */
.logos { background: var(--bg-surface); border-block: 1px solid var(--border-static); }
.logos-inner { padding-block: 28px; overflow-x: auto; scrollbar-width: none; }
.logos-inner::-webkit-scrollbar { display: none; }
.logos-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 32px; min-width: max-content; margin: 0; padding: 0; list-style: none; }
.logos-row img { flex: none; width: auto; }

/* Problem */
.problem { padding-top: 96px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 24px; }
.stat-card { display: flex; flex-direction: column; gap: 12px; min-height: 248px; padding: 28px; border-radius: 12px; background: var(--white); color: var(--light-text-primary); }
.stat-value { margin: 0; font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; color: var(--stat); }
.stat-card p { margin: 0; }
.stat-source { margin-top: auto !important; padding-top: 16px; font-size: 12px; line-height: 16px; color: var(--light-text-secondary); }

.evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.evidence-media { position: relative; overflow: hidden; min-height: 400px; border-radius: 12px; background: var(--bg-surface-raised); }
.evidence-media img { object-position: right center; }
.evidence-panel { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 12px; background: var(--bg-accent); }
.evidence-panel h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.evidence-panel p { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-static); }
.timeline time { font-family: var(--font-mono); font-size: 14px; color: var(--text-secondary); }
.timeline span { font-weight: 500; }
.evidence-note { margin-top: auto !important; font-size: 12px; line-height: 16px; color: var(--text-secondary); }

/* Band */
.band-wrap { padding: 120px 12px 0; }
.band { border-radius: 12px; background: var(--bg-accent); }
.band-inner { padding-block: 120px; padding-inline: clamp(8px, calc(5.5vw - 12px), 68px); display: flex; flex-direction: column; gap: 20px; }
.band .h2 { max-width: 1000px; }
.band .lead { max-width: 760px; }

/* Workflow */
.workflow .h2 { max-width: 780px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 16px; padding-left: 24px; border-left: 1px solid var(--border-strong); }
.step-num { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.chip { display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 8px 12px; border-radius: 6px; background: var(--bg-accent); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.step h3 { margin: 0; font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.025em; }
.step p:last-child { margin: 0; color: var(--text-secondary); }
.workflow-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; }
.workflow-actions .text-link { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--white); }
.btn-bar { align-items: center; justify-content: space-between; gap: 24px; width: 320px; max-width: 100%; min-height: 52px; padding: 0 20px; }
.device { position: relative; overflow: hidden; width: 100%; aspect-ratio: 2560 / 1088; min-height: 260px; margin: 40px 0 0; border-radius: 12px; background: #000; }

/* Compliance */
.compliance { gap: 56px; }
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px 80px; align-items: center; }
.compliance-copy { display: flex; flex-direction: column; gap: 24px; }
.compliance-copy .lead { max-width: 600px; }
.claims { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.claim { display: flex; flex-direction: column; gap: 8px; min-height: 104px; padding: 16px; border-radius: 8px; background: var(--bg-accent); }
.claim p { margin: 0; }
.claim-ref { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-secondary); }
.claim-text { font-size: 14px; line-height: 20px; font-weight: 500; }
.certs-block { display: flex; flex-direction: column; gap: 16px; }
.certs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.certs li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-static); background: rgba(255, 255, 255, 0.04); font-size: 14px; line-height: 20px; }

/* Qualification */
.qualification .h2 { max-width: 640px; }
.qualification .lead { max-width: 600px; }
.phases { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px 24px; }
.phase { display: flex; flex-direction: column; gap: 8px; }
.phase-rule { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.phase-rule::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--orange); }
.phase-rule::after { content: ""; flex-grow: 1; height: 1px; background: var(--border-static); }
.phase-num { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-secondary); }
.phase-title { font-weight: 600; }
.phase-meta { font-size: 12px; line-height: 16px; color: var(--text-secondary); }

/* CTA banner */
.cta { padding-top: 160px; padding-bottom: 120px; }
.cta-card { position: relative; overflow: hidden; display: flex; min-height: 280px; border-radius: 12px; background: var(--bg-surface-raised); }
.cta-scrim { position: absolute; inset: 0; background: rgba(6, 12, 24, var(--overlay)); }
.cta-content { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; width: 100%; padding: clamp(28px, 4vw, 48px); }
.cta-content h2 { margin: 0; max-width: 640px; flex: 1 1 360px; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.btn-cta { align-items: center; width: 264px; max-width: 100%; min-height: 136px; padding: 24px; font-size: 20px; line-height: 28px; }

/* Footer */
.footer { background: var(--bg-surface); }
.footer-inner { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 120px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer-top h2 { margin: 0; max-width: 720px; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.025em; }
.btn-square { flex-direction: column; justify-content: space-between; width: 160px; height: 160px; padding: 20px; font-size: 24px; line-height: 28px; }
.footer-main { display: flex; flex-direction: column; gap: 80px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; flex: 1 1 240px; min-height: 160px; }
.social { display: flex; gap: 8px; }
.social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 32px; flex: 999 1 600px; }
.footer-nav h3 { margin: 0 0 16px; font-size: 14px; line-height: 20px; font-weight: 600; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; }
.footer-nav .ext { display: inline-flex; align-items: center; gap: 6px; }
.legal { display: flex; flex-wrap: wrap; gap: 16px 48px; font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.legal p { margin: 0; }
.legal > p { flex: 1 1 240px; }
.legal div { display: flex; flex-wrap: wrap; gap: 16px 32px; flex: 999 1 600px; }

/* Request dialog */
.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--border-static); border-radius: 12px;
  background: var(--bg-surface); color: var(--text-primary);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.dialog::backdrop { background: rgba(6, 12, 24, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-body { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-head h2 { margin: 8px 0 0; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.025em; }
.dialog-head p { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dialog-close { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); cursor: pointer; }
.dialog-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.tabs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabs label { position: relative; display: flex; justify-content: center; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-secondary); cursor: pointer; }
.tabs input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tabs label:has(input:checked) { background: var(--bg-accent); color: var(--white); }
.tabs label:has(input:focus-visible) { outline: 2px solid rgba(142, 138, 244, 0.8); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border-static); border-radius: 8px;
  background: var(--bg-base); color: var(--white); font: inherit; font-size: 15px; line-height: 22px; letter-spacing: 0.01em;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(142, 138, 244, 0.8); box-shadow: 0 0 0 1px rgba(142, 138, 244, 0.8); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath d='M48 96l80 80 80-80' fill='none' stroke='%23c4c6ca' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.hidden-field { display: none; }
.form-submit { align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; width: 100%; }
.form-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-error { margin: 0; font-size: 14px; line-height: 20px; color: var(--danger); }
.form-fineprint { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.form-success { display: flex; flex-direction: column; gap: 16px; }
.form-success h2 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.025em; }
.form-success p { margin: 0; color: var(--text-secondary); }

@media (max-width: 520px) {
  .dialog-body { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Thank-you page */
.simple-page { min-height: 100dvh; display: flex; flex-direction: column; gap: 48px; padding-block: 24px 96px; }
.simple-page main { display: flex; flex-direction: column; gap: 24px; max-width: 640px; margin-top: auto; margin-bottom: auto; }
.simple-page .btn { width: fit-content; align-items: center; gap: 16px; min-height: 52px; padding: 0 20px; }
