:root {
  --navy-950: #040b1c;
  --navy-900: #081a3d;
  --navy-800: #0f2b5e;
  --gold-200: #ffe9a3;
  --gold-400: #f5c632;
  --gold-600: #e1980a;
  --ink: #f2f6ff;
  --ink-2: #b9c7e2;
  --line: rgba(255, 255, 255, .1);
  --paper: #f6f7fb;
  --paper-ink: #1b2338;
  --paper-ink-2: #4b5674;
  --paper-line: #e2e6f0;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--navy-950); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(4, 11, 28, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo span { font-weight: 800; font-size: 18px; letter-spacing: .08em; }
.site-header nav { margin-left: auto; display: flex; gap: 28px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--ink-2); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("assets/hero-bg.jpg") center / cover; filter: blur(6px) saturate(1.1); transform: scale(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,11,28,.96) 0%, rgba(4,11,28,.82) 45%, rgba(4,11,28,.55) 100%), linear-gradient(0deg, var(--navy-950) 0%, transparent 30%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 96px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 16px; }
.hero h1 { font-size: 60px; line-height: 1.05; margin: 0 0 20px; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--gold-400); color: #2b1d00; }
.btn-primary:hover { background: var(--gold-200); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1.1; }
.btn .two-line { line-height: 1.15; text-align: left; }
.device { background: #0a0f1c; border-radius: 28px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset; }
.device img { border-radius: 18px; }

/* Sections */
section.block { padding: 96px 0; }
section.block.alt { background: var(--navy-900); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 2340 / 1080; object-fit: cover; }
.step .num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold-400); color: #2b1d00; font-weight: 800; font-size: 14px; margin: 20px 0 10px; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-2); }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mode { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 24px; text-align: center; }
.mode img { width: 78%; margin: 0 auto 12px; }
.mode h3 { margin: 0 0 6px; font-size: 18px; }
.mode p { margin: 0; color: var(--ink-2); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); }

.cta { text-align: center; }
.cta h2 { font-size: 40px; margin: 0 0 12px; }
.cta p { color: var(--ink-2); margin: 0 0 28px; font-size: 18px; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-2); font-size: 14px; background: var(--navy-950); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.site-footer .logo span { font-size: 15px; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .copy { margin-left: auto; }

/* Legal pages: light document layout */
body.legal { background: var(--paper); color: var(--paper-ink); }
body.legal .doc-hero { background: var(--navy-900); color: var(--ink); padding: 56px 0 48px; }
body.legal .doc-hero h1 { margin: 0 0 8px; font-size: 40px; letter-spacing: -.01em; }
body.legal .doc-hero p { margin: 0; color: var(--ink-2); }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 24px 80px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc strong { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-ink-2); margin-bottom: 10px; }
.toc a { display: block; text-decoration: none; color: var(--paper-ink-2); padding: 5px 0; }
.toc a:hover { color: var(--paper-ink); }
.doc { max-width: 720px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; scroll-margin-top: 88px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: #2c3550; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: #1a56c4; }
.callout { background: #fff; border: 1px solid var(--paper-line); border-left: 4px solid var(--gold-600); border-radius: 0; padding: 16px 20px; margin: 20px 0; }
.callout.info { border-left-color: #1a56c4; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--paper-line); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--paper-line); }
.doc th { background: #eef1f8; font-weight: 700; }
.table-scroll { overflow-x: auto; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .steps { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header nav { gap: 16px; font-size: 14px; }
  .site-header .nav-extra { display: none; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 17px; }
  section.block { padding: 64px 0; }
  .section-head h2, .cta h2 { font-size: 30px; }
  .gallery { grid-template-columns: 1fr; }
  .doc-layout { padding: 32px 16px 56px; }
  body.legal .doc-hero h1 { font-size: 30px; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}

/* Header and footer keep their dark styling on light legal pages */
.site-header, .site-footer { color: var(--ink); }
body.legal .site-header { background: var(--navy-950); }
