:root {
  --bg: #05070b;
  --bg-2: #0a0e14;
  --panel: rgba(15, 20, 30, 0.84);
  --panel-strong: rgba(18, 24, 36, 0.96);
  --panel-soft: rgba(12, 17, 25, 0.74);
  --ink: #f3f6fb;
  --muted: #8d98aa;
  --line: rgba(166, 184, 214, 0.16);
  --line-strong: rgba(166, 184, 214, 0.28);
  --accent: #9ec5ff;
  --accent-strong: #d4e5ff;
  --accent-glow: rgba(108, 163, 255, 0.32);
  --success: #8ec2a2;
  --warn: #f0d39a;
  --danger: #f2a5a5;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(118, 154, 213, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(76, 99, 144, 0.16), transparent 20%),
    linear-gradient(180deg, #070a10 0%, #05070b 46%, #080b12 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    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;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  opacity: 0.18;
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 22px 0 48px;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 24px;
  position: sticky;
  top: 10px;
  z-index: 30;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.82);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.brand {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-mark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a.active,
.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.hero,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 22, 32, 0.92) 0%, rgba(11, 15, 23, 0.98) 100%);
  box-shadow: var(--shadow-lg);
}

.hero::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 24%);
  opacity: 0.5;
}

.hero {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 40px;
  margin-bottom: 24px;
  min-height: min(80vh, 760px);
  display: grid;
  align-content: end;
}

.hero.hero-compact {
  min-height: auto;
  padding-top: 40px;
}

.hero-home {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hero-home > .eyebrow,
.hero-home > h1,
.hero-home > .hero-subhead,
.hero-home > .lead,
.hero-home > .hero-actions,
.hero-home > .quote-box {
  margin-left: auto;
  margin-right: auto;
}

.hero-home .hero-meta {
  width: min(100%, 1080px);
}

.hero-home .eyebrow {
  margin-bottom: 28px;
}

.hero-wordmark {
  max-width: none;
  font-size: clamp(72px, 16vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-subhead {
  margin: 18px auto 0;
  max-width: 24ch;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #d7e2f4;
}

.hero-home .lead {
  margin-top: 30px;
  max-width: 760px;
}

.hero-home .hero-actions {
  margin-top: 34px;
  justify-content: center;
}

.hero-home .quote-box {
  width: min(100%, 920px);
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero h1 {
  margin: 0;
  max-width: 10.4ch;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.hero h1.long {
  max-width: 12ch;
  font-size: clamp(42px, 7vw, 92px);
}

.lead {
  margin: 24px 0 0;
  max-width: 820px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: #cdd6e6;
}

.hero-actions,
.button-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.ghost,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 14px 18px;
}

.button {
  background: linear-gradient(135deg, #ebf2ff 0%, #8eb7ff 100%);
  color: #09111e;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 30px rgba(122, 168, 255, 0.22);
}

.ghost,
.quiet {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.quiet {
  color: var(--muted);
}

.button:hover,
.ghost:hover,
.quiet:hover,
.button:focus-visible,
.ghost:focus-visible,
.quiet:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: var(--line-strong);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.meta-card,
.stat-card,
.artifact-card,
.flow-step,
.memo-card,
.risk-card,
.timeline-item,
.quote-box,
.wizard-step,
.limit-card,
.signal-card,
.data-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.meta-card,
.artifact-card,
.flow-step,
.memo-card,
.risk-card,
.timeline-item,
.quote-box,
.wizard-step,
.limit-card,
.signal-card,
.data-card,
.private-gate-card {
  padding: 22px;
}

.meta-card strong,
.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.private-gate-card {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 18, 28, 0.94) 0%, rgba(10, 14, 22, 0.98) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-height: 460px;
}

.meta-card span,
.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.panel {
  border-radius: 28px;
  padding: 28px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.panel h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.panel h3 {
  font-size: 20px;
  line-height: 1.15;
}

.panel p,
.panel li,
.panel blockquote {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #d9e0ec;
}

.muted {
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li + li {
  margin-top: 10px;
}

.metric-grid,
.artifact-grid,
.signal-grid,
.limit-grid,
.flow-grid,
.timeline,
.demo-aside,
.wizard-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artifact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.artifact-card .eyebrow,
.flow-step .eyebrow,
.memo-card .eyebrow,
.risk-card .eyebrow,
.signal-card .eyebrow,
.limit-card .eyebrow,
.data-card .eyebrow,
.timeline-item .eyebrow,
.wizard-step .eyebrow {
  margin-bottom: 10px;
}

.artifact-card a,
.artifact-links a,
.inline-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.artifact-card a:hover,
.artifact-links a:hover,
.inline-link:hover {
  text-decoration: underline;
}

.artifact-links {
  display: grid;
  gap: 0;
}

.artifact-links a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(166, 184, 214, 0.14);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
}

.artifact-links a:last-child {
  border-bottom: none;
}

.data-strip {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(166, 184, 214, 0.12);
}

.data-row:last-child {
  border-bottom: none;
}

.data-row dt {
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.data-row dd {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.hero-note,
.quote-box {
  margin-top: 28px;
}

.hero-note p,
.quote-box p {
  margin: 0;
}

.flow-line {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(166, 184, 214, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #dce4f3;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.demo-frame {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(4, 8, 14, 0.9);
}

.demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(158, 197, 255, 0.08), transparent 24%);
  pointer-events: none;
}

.demo-frame iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  background: #08101a;
}

.timeline {
  grid-template-columns: 1fr;
}

.timeline-item {
  display: grid;
  gap: 8px;
}

.timeline-index {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.memo-card {
  background: linear-gradient(180deg, rgba(16, 27, 40, 0.98), rgba(9, 15, 24, 0.98));
}

.memo-card blockquote {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.risk-card {
  background: linear-gradient(180deg, rgba(22, 20, 19, 0.96), rgba(15, 13, 12, 0.98));
}

.risk-scale {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.risk-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.risk-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.risk-pill.high,
.status-pill.alert {
  color: var(--danger);
  border-color: rgba(242, 165, 165, 0.28);
}

.risk-pill.medium,
.status-pill.watch {
  color: var(--warn);
  border-color: rgba(240, 211, 154, 0.28);
}

.risk-pill.low,
.status-pill.ready {
  color: var(--success);
  border-color: rgba(142, 194, 162, 0.28);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.status-chip {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.status-chip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.status-chip span {
  display: block;
  color: #d8e0ee;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.wizard-shell {
  display: grid;
  gap: 20px;
}

.wizard-progress {
  display: grid;
  gap: 12px;
}

.progress-rail {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #789eff, #d5e5ff);
  box-shadow: 0 0 20px rgba(158, 197, 255, 0.28);
  transition: width 220ms ease;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.wizard-step {
  background: rgba(255, 255, 255, 0.025);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(166, 184, 214, 0.18);
  background: rgba(3, 7, 12, 0.78);
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(158, 197, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(158, 197, 255, 0.08);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #dce3ef;
}

.checkbox-line input {
  margin-top: 4px;
}

.inline-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(240, 211, 154, 0.22);
  background: rgba(240, 211, 154, 0.06);
  color: #f2d9a8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.preview {
  min-height: 420px;
  padding: 20px;
  border-radius: 20px;
  border: 1px dashed rgba(166, 184, 214, 0.24);
  background: rgba(5, 8, 14, 0.72);
  white-space: pre-wrap;
  overflow: auto;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d8e0ee;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.small-note {
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.footer {
  margin-top: 28px;
  padding: 12px 4px 0;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-meta,
  .metric-grid,
  .artifact-grid,
  .status-grid,
  .wizard-grid,
  .demo-stage,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-12 {
    grid-column: span 12;
  }

  .topbar {
    border-radius: 28px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max));
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .topbar {
    position: static;
    padding: 16px;
  }

  .hero {
    min-height: auto;
    border-radius: 28px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(46px, 16vw, 74px);
  }

  .panel {
    padding: 22px;
    border-radius: 24px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
