/* ==========================================================================
   Prospectra public website
   Tokens are derived from the application, not invented:
     seed colour        #5B67CA   prospectra/lib/presentation/shared/app_colors.dart
     logo background    #0F1117   prospectra/assets/logo/compass_p_icon.svg
     cyan accent        #4FC3F7 / #26C6DA  (logo compass dot)
     success            #10B981
     type               Inter (google_fonts in app_theme.dart)
     radii              8 / 12 / 16 (app_theme.dart shape tokens)
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #090b11;
  --bg-soft: #0f1117;
  --surface: #121520;
  --surface-2: #171b26;
  --surface-3: #1d2230;

  --line: #232838;
  --line-2: #2e3548;
  --line-3: #3a4360;

  --text: #eef1f8;
  --text-2: #b9c1d6;
  --muted: #8c95ad;

  --brand: #5b67ca;
  --brand-2: #6f7be0;
  --brand-3: #99a2f2;
  --brand-deep: #4754b2;
  --brand-soft: rgba(91, 103, 202, 0.12);

  --cyan: #4fc3f7;
  --cyan-2: #26c6da;
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.09);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --header-h: 68px;
  --container: 1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 540px at 82% -10%, rgba(91, 103, 202, 0.18), transparent 68%),
    radial-gradient(720px 480px at 6% 2%, rgba(38, 198, 218, 0.07), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
}

p { color: var(--text-2); }

::selection { background: rgba(91, 103, 202, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--line-3);
  font-size: 0.9rem;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  color: var(--brand-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--brand-2));
}

.lead {
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-2);
}

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--edge { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.75rem);
  margin: 16px 0 0;
  letter-spacing: -0.03em;
}
.section-head p { margin-top: 16px; }

.grid-2, .grid-3 {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: clamp(32px, 4vw, 48px);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: 0.86rem; }

.btn--primary {
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 12px 30px -18px rgba(91, 103, 202, 0.9);
}
.btn--primary:hover { background: var(--brand-deep); }

.btn--secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--secondary:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.045);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--surface-3);
  border-color: var(--line-2);
  color: var(--muted);
  box-shadow: none;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-3);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    backdrop-filter 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(9, 11, 17, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark { width: 30px; height: 30px; }
.brand__name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__list a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a[aria-current="page"] { color: var(--text); }
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-2), var(--cyan));
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  place-items: center;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(44px, 6vw, 84px)) 0 clamp(48px, 6vw, 84px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 10%, transparent 78%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero__title {
  margin-top: 18px;
  font-size: clamp(2.3rem, 1.35rem + 3.9vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.hero__title .accent {
  background: linear-gradient(100deg, var(--brand-3) 0%, var(--cyan) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin-top: 22px; max-width: 54ch; font-size: 1.06rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 26px;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  z-index: 1;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(91, 103, 202, 0.28), transparent 62%);
  filter: blur(28px);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Spec strip ---------- */
.spec-strip { border-block: 1px solid var(--line); }
.spec-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-block: 20px;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
}
.spec:first-child { border-left: 0; padding-left: 0; }
.spec dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec dd { margin: 0; font-size: 0.93rem; color: var(--text); }

/* ---------- Source strip ---------- */
.sources { padding: 26px 0; }
.sources__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.sources__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sources__list { display: flex; flex-wrap: wrap; gap: 10px; }
.source {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.83rem;
  color: var(--text-2);
}
.source img { width: 15px; height: 15px; filter: invert(1); opacity: 0.72; }
.source .source__glyph {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006));
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.card:hover { border-color: var(--line-3); }
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p { font-size: 0.925rem; line-height: 1.65; }
.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid rgba(91, 103, 202, 0.28);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-3);
}
.card__icon svg { width: 20px; height: 20px; }

/* ---------- Workflow (sticky visual) ---------- */
.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
}
.workflow__steps { display: grid; gap: 10px; }
.workflow-step {
  padding: 22px 22px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.workflow-step.is-active {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.005));
}
.workflow-step__num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-3);
}
.workflow-step h3 { font-size: 1.12rem; margin: 9px 0 7px; }
.workflow-step p { font-size: 0.93rem; }

.workflow__visual {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.stage {
  position: relative;
  min-height: 380px;
  aspect-ratio: 4 / 3.15;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(91, 103, 202, 0.16), transparent 60%),
    linear-gradient(180deg, #10131c, #0b0e15);
  overflow: hidden;
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, 0.9);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.stage__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.stage__panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.stage__caption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}
.chip--brand {
  border-color: rgba(91, 103, 202, 0.4);
  background: var(--brand-soft);
  color: var(--brand-3);
}
.chip--brand::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.stage__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.stage__field b { color: var(--text); font-weight: 500; }

.stage__log {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: #9fb0c9;
}
.stage__log li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.stage__log li.is-shown { opacity: 1; transform: none; }
.stage__log .ok { color: var(--green); }
.stage__log .dim { color: #63708a; }

.mini-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.78rem;
}
.mini-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.012);
}
.mini-table__row:first-child { border-top: 0; }
.mini-table__row--head {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.mini-table__row span:last-child { color: var(--muted); text-align: right; }

.export-list { display: grid; gap: 10px; }
.export-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.86rem;
  color: var(--text-2);
}
.export-item svg { color: var(--brand-3); flex-shrink: 0; }
.export-item b { color: var(--text); font-weight: 500; }
.export-item .tag {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Product window ---------- */
.window {
  margin-top: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #10131c, #0a0d14);
  overflow: hidden;
  box-shadow: 0 40px 100px -60px rgba(0, 0, 0, 0.95);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.window__dots { display: flex; gap: 6px; }
.window__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-3);
}
.window__title { font-size: 0.78rem; color: var(--muted); }
.window__body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: 340px;
}
.window__console { padding: 22px; border-right: 1px solid var(--line); }
.window__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.window__table { padding: 22px; overflow: hidden; }

.lead-table { display: grid; font-size: 0.78rem; }
.lead-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.lead-table__row--head {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom-color: var(--line-2);
}
.lead-table__person { display: flex; align-items: center; gap: 9px; color: var(--text); }
.lead-table__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--brand-3);
  background: var(--brand-soft);
  border: 1px solid rgba(91, 103, 202, 0.25);
  flex-shrink: 0;
}
.lead-table__muted { color: var(--muted); }
.table-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--muted);
}
.showcase-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.showcase-caption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}

/* ---------- Audience ---------- */
.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.audience__list { display: grid; gap: 12px; }
.audience__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.94rem;
  color: var(--text-2);
}
.audience__item svg { margin-top: 4px; color: var(--green); }
.audience__panel {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(38, 198, 218, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.audience__panel h3 { font-size: 1.05rem; margin-bottom: 8px; }
.audience__panel p { font-size: 0.92rem; }
.audience__panel .rule {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.audience__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-2);
}
.audience__stat b { color: var(--text); font-weight: 600; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 52px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 88% 0%, rgba(91, 103, 202, 0.26), transparent 62%),
    radial-gradient(70% 120% at 6% 100%, rgba(38, 198, 218, 0.1), transparent 60%),
    linear-gradient(180deg, #10131d, #0b0e15);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 10%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 80% 10%, #000, transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 620px; }
.cta h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.4rem); letter-spacing: -0.03em; }
.cta p { margin-top: 14px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Page headers ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(44px, 6vw, 76px)) 0 clamp(28px, 4vw, 44px);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  letter-spacing: -0.035em;
  margin-top: 18px;
}
.page-hero p { margin-top: 18px; max-width: 62ch; }
.page-hero__aside { margin-top: 26px; }

/* ---------- Downloads ---------- */
.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  background: var(--amber-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #f1d6a8;
}
.notice svg { flex-shrink: 0; margin-top: 2px; color: var(--amber); }
.notice strong { color: #ffe6bd; font-weight: 600; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 40px);
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.dl-card__head { display: flex; align-items: center; gap: 14px; }
.dl-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.dl-card__icon svg { width: 24px; height: 24px; }
.dl-card__head h2 { font-size: 1.2rem; letter-spacing: -0.02em; }
.dl-card__head p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.dl-card__status { margin-left: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.pill--soon {
  color: #f0c27c;
  border-color: rgba(245, 158, 11, 0.35);
  background: var(--amber-soft);
}
.pill--ready {
  color: #86e7bd;
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--green-soft);
}

.dl-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.dl-meta dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.dl-meta dd { margin: 4px 0 0; font-size: 0.9rem; color: var(--text); }
.dl-card__actions { margin-top: auto; display: grid; gap: 10px; }
.dl-card__actions .btn { width: 100%; }
.dl-card__hint { font-size: 0.76rem; color: var(--muted); text-align: center; }

.release-notes { border-top: 1px solid var(--line); padding-top: 4px; }
.release-notes summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  list-style: none;
}
.release-notes summary::-webkit-details-marker { display: none; }
.release-notes summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}
.release-notes[open] summary::after { content: "–"; }
.release-notes ul { display: grid; gap: 8px; padding: 0 0 10px; }
.release-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.release-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-3);
}
.release-notes .muted { font-size: 0.85rem; color: var(--muted); padding-bottom: 10px; }

.download-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 4vw, 48px);
}
.download-help__item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.download-help__item h3 { font-size: 0.93rem; margin-bottom: 6px; }
.download-help__item p { font-size: 0.86rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.form-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006));
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 0.76rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6d778e; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(91, 103, 202, 0.18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--amber); }
.field__error {
  min-height: 16px;
  font-size: 0.76rem;
  color: #f6b4b4;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 16px; font-size: 0.88rem; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status--ok { color: #8ce8c2; }
.form-status--error { color: #f6b4b4; }
.form-foot { margin-top: 14px; font-size: 0.76rem; color: var(--muted); }

.contact-aside { display: grid; gap: 18px; }
.contact-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.016);
}
.contact-block h3 { font-size: 0.98rem; margin-bottom: 8px; }
.contact-block p { font-size: 0.88rem; }
.contact-block ul { display: grid; gap: 8px; margin-top: 10px; }
.contact-block li {
  position: relative;
  padding-left: 16px;
  font-size: 0.87rem;
  color: var(--text-2);
}
.contact-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-2);
}

/* ---------- Legal ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.016);
}
.toc h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--text-2);
}
.toc a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.toc__switch { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.toc__switch a { font-size: 0.8rem; color: var(--brand-3); }

.legal-body { max-width: 740px; }
.legal-body h2 {
  font-size: 1.22rem;
  margin: 40px 0 10px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-body h2:first-of-type { margin-top: 32px; }
.legal-body p,
.legal-body li { font-size: 0.96rem; line-height: 1.78; color: var(--text-2); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 18px; list-style: disc; }
.legal-body li::marker { color: var(--line-3); }
.legal-body a { color: var(--brand-3); text-decoration: underline; text-underline-offset: 3px; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}
.legal-notice {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius);
  background: var(--amber-soft);
}
.legal-notice h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #ffe6bd;
}
.legal-notice p { font-size: 0.9rem; color: #e8cea6; }

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 0 60px;
  text-align: center;
}
.error-page__code {
  font-size: clamp(3.4rem, 4vw + 2rem, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(100deg, var(--brand-3), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin-top: 16px; }
.error-page p { margin-top: 12px; max-width: 48ch; margin-inline: auto; }
.error-page .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(44px, 6vw, 68px) 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(91, 103, 202, 0.055));
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.62fr));
  gap: 32px;
}
.footer__brand p {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}
.footer__title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.footer__bottom p { color: var(--muted); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 12px; }
  .hero__copy { max-width: 660px; }
  .hero__visual { justify-self: center; max-width: 460px; margin-top: 8px; }
  .workflow { grid-template-columns: 1fr; gap: 20px; }
  .workflow__visual { order: -1; top: calc(var(--header-h) + 16px); z-index: 2; }
  .stage { min-height: 300px; aspect-ratio: auto; }
  .audience { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    padding: 12px clamp(20px, 4vw, 32px) 24px;
    background: rgba(9, 11, 17, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { display: grid; gap: 0; }
  .nav__list a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a[aria-current="page"]::after { display: none; }
  .nav__cta { margin-top: 18px; width: 100%; }
  .site-header { background: rgba(9, 11, 17, 0.82); backdrop-filter: blur(14px); }
  .window__body { grid-template-columns: 1fr; }
  .window__console { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-help { grid-template-columns: 1fr; }
  .spec-strip__inner { grid-template-columns: 1fr; gap: 14px; }
  .spec { padding-left: 0; border-left: 0; }
  .spec-strip { border-block: 1px solid var(--line); }
  .spec + .spec { border-top: 1px solid var(--line); padding-top: 14px; }
  .sources__inner { justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .window__table { padding: 16px; }
  .lead-table__row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .lead-table__row > *:nth-child(3) { display: none; }
  .legal-meta { font-size: 0.78rem; }
  .footer__grid { gap: 26px; }
}

@media (max-width: 520px) {
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__title { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .hero__actions .btn { width: 100%; }
  .hero__visual { max-width: 330px; }
  .stage { min-height: 280px; }
  .stage__panel { padding: 16px; gap: 12px; }
  .stage__field { font-size: 0.78rem; }
  .summary { font-size: 0.88rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .dl-card__head { flex-wrap: wrap; }
  .dl-card__status { margin-left: 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .stage__log li { opacity: 1; transform: none; }
}
