:root {
  color-scheme: dark;
  --ground: #0a0a0a;
  --ground-2: #0d0d0d;
  --surface: #161616;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --border-gold: #3a2f18;
  --text: #f6f4ef;
  --text-dim: #b7b1a4;
  --muted: #8f8779;
  --gold: #F7B731;
  --gold-hi: #FFD46B;
  --gold-deep: #C8871A;
  --verified: #4CAF50;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --maxw-doc: 760px;
  --font-display: "SF Pro Display", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Code", "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 82% -8%, rgba(247,183,49,0.16), rgba(247,183,49,0) 55%),
    radial-gradient(90% 60% at 6% 108%, rgba(200,135,26,0.10), rgba(200,135,26,0) 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.doc { max-width: var(--maxw-doc); }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Header ---------- */
header { position: relative; z-index: 3; padding: 22px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo { width: 38px; height: 38px; flex: none; object-fit: contain; display: block; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.02em; color: var(--text); }
.wordmark b { color: var(--gold); font-weight: 800; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.tag18 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: color .18s ease; }
.back-link:hover { color: var(--gold); }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 0; cursor: pointer; border-radius: var(--radius); padding: 15px 24px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: linear-gradient(178deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); color: #1a1206; box-shadow: 0 10px 30px -12px rgba(247,183,49,0.65), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(247,183,49,0.8), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding: clamp(32px, 7vw, 78px) 0 clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(247,183,49,0.6); animation: pulse 2.6s ease-out infinite; }

h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.9rem, 8.5vw, 5.6rem); line-height: 0.94; letter-spacing: -0.035em; margin: 0 0 22px; text-wrap: balance; }
h1 .howl { background: linear-gradient(176deg, var(--gold-hi) 0%, var(--gold) 42%, var(--gold-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.06rem, 2.4vw, 1.3rem); line-height: 1.55; color: var(--text-dim); max-width: 34ch; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-foot { margin-top: 24px; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-foot .sep { opacity: 0.5; }

/* ---------- Radar ---------- */
.radar-frame { position: relative; aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid var(--border-gold);
  background: radial-gradient(circle at 50% 42%, rgba(247,183,49,0.10), rgba(247,183,49,0) 60%), radial-gradient(circle, #121110, #0b0b0a 78%);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), inset 0 0 60px rgba(0,0,0,0.6); overflow: hidden; }
.radar-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.radar-label { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; background: rgba(10,10,10,0.55); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-gold); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.radar-caption { margin-top: 18px; text-align: center; }

/* ---------- Sections ---------- */
section.block { position: relative; z-index: 2; padding: clamp(46px, 7vw, 92px) 0; }
.block-head { max-width: 52ch; margin-bottom: clamp(30px, 4vw, 46px); }
.block-head h2 { font-family: var(--font-display); font-weight: 780; font-size: clamp(1.7rem, 4vw, 2.35rem); letter-spacing: -0.025em; line-height: 1.08; margin: 14px 0 0; text-wrap: balance; }
.hairline { height: 1px; border: 0; background: linear-gradient(90deg, var(--border-gold), transparent); margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; background: linear-gradient(180deg, var(--card), #131313); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 120% at 100% 0%, rgba(247,183,49,0.06), transparent 40%); opacity: 0; transition: opacity .25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.9); }
.card:hover::before { opacity: 1; }
.card-idx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; }
.card-ico { width: 42px; height: 42px; margin: 4px 0 18px; display: grid; place-items: center; border-radius: 11px; background: rgba(247,183,49,0.10); border: 1px solid var(--border-gold); }
.card-ico svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-display); font-weight: 680; font-size: 1.16rem; letter-spacing: -0.01em; margin: 0 0 9px; }
.card p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--text-dim); }

/* ---------- Trust ---------- */
.trust { background: linear-gradient(180deg, #121212, var(--ground-2)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.trust-list { display: grid; gap: 22px; }
.trust-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.trust-badge { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(76,175,80,0.10); border: 1px solid rgba(76,175,80,0.28); }
.trust-badge.gold { background: rgba(247,183,49,0.10); border-color: var(--border-gold); }
.trust-badge svg { width: 21px; height: 21px; stroke: var(--verified); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-badge.gold svg { stroke: var(--gold); }
.trust-item h4 { margin: 2px 0 5px; font-size: 1.04rem; font-weight: 670; font-family: var(--font-display); letter-spacing: -0.01em; }
.trust-item p { margin: 0; font-size: 0.94rem; color: var(--text-dim); line-height: 1.55; }

/* ---------- Signup / email capture ---------- */
.signup { text-align: center; }
.signup h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.3rem); letter-spacing: -0.035em; line-height: 1; margin: 16px auto 18px; max-width: 16ch; text-wrap: balance; }
.signup > p.sub { color: var(--text-dim); max-width: 44ch; margin: 0 auto 30px; }
.notify-form { max-width: 480px; margin: 0 auto; }
.field-row { display: flex; gap: 10px; }
.notify-form input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.notify-form input[type="email"]::placeholder { color: var(--muted); }
.notify-form input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(247,183,49,0.14); }
.notify-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); }
.form-msg { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.2em; }
.form-msg.ok { color: var(--verified); }
.form-msg.err { color: var(--danger); }
.notify-form.done .field-row, .notify-form.done .form-note { display: none; }
.signup-done { display: none; align-items: center; justify-content: center; gap: 12px; max-width: 480px; margin: 0 auto; padding: 20px 22px; background: rgba(76,175,80,0.08); border: 1px solid rgba(76,175,80,0.28); border-radius: var(--radius); }
.notify-form.done + .signup-done { display: flex; }
.signup-done svg { width: 24px; height: 24px; flex: none; stroke: var(--verified); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signup-done p { margin: 0; text-align: left; color: var(--text); font-weight: 600; }
.signup-done p span { display: block; color: var(--text-dim); font-weight: 400; font-size: 0.88rem; }

/* ---------- Document pages (privacy / terms) ---------- */
.doc-hero { position: relative; z-index: 2; padding: clamp(30px, 6vw, 60px) 0 clamp(20px, 3vw, 30px); }
.doc-hero .mono { display: block; margin-bottom: 14px; }
.doc-hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.02; margin: 0 0 16px; }
.doc-meta { color: var(--muted); font-size: 0.86rem; font-family: var(--font-mono); letter-spacing: 0.04em; }
.doc-meta b { color: var(--gold); font-weight: 600; }
.doc { position: relative; z-index: 2; padding-bottom: clamp(50px, 8vw, 90px); }
.doc .intro { font-size: 1.08rem; color: var(--text-dim); line-height: 1.6; margin: 0 0 10px; }
.doc h2 { font-family: var(--font-display); font-weight: 750; font-size: 1.28rem; letter-spacing: -0.015em; color: var(--text); margin: 40px 0 4px; padding-top: 22px; border-top: 1px solid var(--border); }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h2 .num { color: var(--gold); font-family: var(--font-mono); font-size: 0.9rem; margin-right: 10px; letter-spacing: 0.02em; }
.doc h3 { font-family: var(--font-display); font-weight: 680; font-size: 1.02rem; color: var(--text); margin: 24px 0 4px; }
.doc p { color: var(--text-dim); margin: 12px 0; line-height: 1.66; }
.doc ul { margin: 12px 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.doc li { position: relative; padding-left: 22px; color: var(--text-dim); line-height: 1.6; }
.doc li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.7; }
.doc a { color: var(--gold); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc .callout { background: var(--card); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.doc .callout p { margin: 0; color: var(--text); }

/* ---------- Footer ---------- */
footer { position: relative; z-index: 2; border-top: 1px solid var(--border); padding: 40px 0 46px; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: color .18s ease; }
.foot-links a:hover { color: var(--gold); }
.foot-meta { color: var(--muted); font-size: 0.82rem; }
.foot-meta a { color: var(--gold); text-decoration: none; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247,183,49,0.5); } 70% { box-shadow: 0 0 0 9px rgba(247,183,49,0); } 100% { box-shadow: 0 0 0 0 rgba(247,183,49,0); } }
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.22,.61,.36,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .27s; } .d4 { animation-delay: .38s; } .d5 { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  /* On mobile, lead with the headline/tagline, then the radar below to draw the eye down. */
  .hero-media { order: 1; max-width: 380px; margin: 22px auto 0; width: 100%; }
  .lede { max-width: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .tag18 { display: none; }
  .field-row { flex-direction: column; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .eyebrow .dot { animation: none; }
}
