/* ─── Reset & base ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — mirrors app light theme */
  --bg:              #F5F4F0;
  --bg-alt:          #EEEBE1;
  --surface:         #FFFFFF;
  --surface-elev:    #F0EDE4;
  --border:          #E0DBD0;
  --border-light:    #CCC8BA;
  --text-primary:    #1A1A2E;
  --text-secondary:  #4A4E6A;
  --text-muted:      #9298B0;
  --positive:        #1F8C5C;
  --negative:        #BC3A3A;
  --gold:            #9A7A2A;
  --gold-light:      #C9A84C;
  --gold-dim:        #D4B870;
  --gold-bg:         #F7EFDB;

  /* Type */
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --nav-h: 68px;
  --max-w: 1200px;
  --narrow-w: 820px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.07);
  --shadow-lg: 0 24px 64px rgba(26, 26, 46, 0.10);
  --shadow-gold: 0 8px 24px rgba(154, 122, 42, 0.18);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Containers ───────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow { max-width: var(--narrow-w); }

/* ─── Typography ───────────────────────────────────────────────────────────── */

.h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.h2.light { color: var(--bg); }

.accent { color: var(--gold); }

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--positive);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31, 140, 92, 0.18);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.6;
}

.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: #FFF;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(154, 122, 42, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-primary);
  background: var(--surface);
}

/* ─── Nav ──────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.brand-mark {
  color: var(--gold);
  font-size: 18px;
  transform: translateY(1px);
}
.brand-name { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  transition: color 150ms;
}
.nav-links a:not(.btn):hover { color: var(--text-primary); }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08), transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 40px 0 60px; }
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-check {
  color: var(--positive);
  font-weight: 700;
}

/* ─── Hero visual ──────────────────────────────────────────────────────────── */

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 500ms ease;
}
.preview-card:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.preview-card.mini {
  transform: none;
  padding: 0;
}
.preview-card.mini:hover { transform: none; }

.preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}
.preview-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.preview-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 3px;
}
.preview-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.preview-divider {
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 16px;
}
.preview-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 10px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}
.preview-tile {
  background: #F8F8FD;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px;
}
.tile-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.tile-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.tile-value.pos { color: var(--positive); }
.tile-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.preview-mini-table {
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
}
.mini-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 60px;
  padding: 7px 10px;
  gap: 8px;
}
.mini-row.mini-head {
  background: #EEEEEE;
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.mini-row.alt { background: #F6F6FA; }
.mini-row span { text-align: right; }
.mini-row .mini-yr {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}
.mini-row .pos { color: var(--positive); }
.mini-row .gold { color: var(--gold); }

/* ─── Trust bar ────────────────────────────────────────────────────────────── */

.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 680px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

.trust-item { text-align: center; }
.trust-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.trust-unit {
  font-size: 16px;
  color: var(--text-muted);
  margin-left: 2px;
}
.trust-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { margin-bottom: 64px; }

/* ─── Features grid ────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 200ms ease;
}
.feature:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 28px;
  color: var(--gold);
  width: 48px;
  height: 48px;
  background: var(--gold-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Deep dive ────────────────────────────────────────────────────────────── */

.deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.deep-dive.reverse .deep-content { order: 2; }
.deep-dive.reverse .deep-visual { order: 1; }

@media (max-width: 960px) {
  .deep-dive { grid-template-columns: 1fr; gap: 40px; }
  .deep-dive.reverse .deep-content { order: 1; }
  .deep-dive.reverse .deep-visual { order: 2; }
}

.deep-text {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 20px 0 28px;
  line-height: 1.65;
}

.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-primary);
}
.check {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Operations table visual ──────────────────────────────────────────────── */

.ops-table {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ops-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  padding: 8px 14px;
  gap: 8px;
  align-items: center;
}
.ops-row span:not(.ops-label) { text-align: right; color: var(--text-secondary); }
.ops-row.ops-head {
  background: #EEEEEE;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 14px;
}
.ops-row.ops-head span { color: var(--text-muted); }
.ops-row.ops-head .ops-label { font-weight: 500; color: var(--gold); }
.ops-row .ops-label {
  text-align: left;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
}
.ops-row.bold .ops-label { color: var(--text-primary); font-weight: 700; }
.ops-row.bold span { font-weight: 500; }
.ops-row.total { background: #F8F8FD; }
.ops-row.alt { background: #F6F6FA; }
.ops-row .pos { color: var(--positive); }
.ops-section-label {
  background: #EEEEEE;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 6px 14px;
}

/* ─── Insights stack ───────────────────────────────────────────────────────── */

.insight-stack {
  position: relative;
  padding: 10px 0;
}

.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  border-left: 3px solid var(--positive);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.insight-card.offset {
  margin-left: 28px;
  margin-top: -8px;
}
@media (max-width: 560px) {
  .insight-card.offset { margin-left: 0; }
}

.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.insight-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
}
.insight-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}
.insight-badge.strong {
  color: var(--positive);
  border-color: rgba(31, 140, 92, 0.4);
  background: rgba(31, 140, 92, 0.08);
}
.insight-prose {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.insight-prose b { color: var(--text-primary); font-weight: 700; }

.insight-metric {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(31, 140, 92, 0.08);
  border: 1px solid rgba(31, 140, 92, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--positive);
  letter-spacing: -0.02em;
}
.metric-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Steps ────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.step-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-cta {
  text-align: center;
  margin-top: 56px;
}

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  transition: border-color 150ms;
}
.faq-item:hover { border-color: var(--border-light); }
.faq-item[open] { border-color: var(--gold-dim); }

.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  position: relative;
  padding-right: 28px;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 300;
  transition: transform 200ms;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ─── CTA section ──────────────────────────────────────────────────────────── */

.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: var(--text-primary);
  border-radius: 20px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-sub {
  font-size: 17px;
  color: rgba(245, 244, 240, 0.72);
  margin: 20px auto 36px;
  max-width: 440px;
  line-height: 1.6;
  position: relative;
}

.cta-card .btn { position: relative; }

@media (max-width: 640px) {
  .cta-card { padding: 52px 28px; }
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 150ms;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-links { justify-content: center; }
  .footer-note { margin: 0 auto; text-align: center; }
}

/* ─── Landing gate (pre-launch teaser) ────────────────────────────────────── */

.landing-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-gate::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.10), transparent 65%);
  pointer-events: none;
}
.landing-gate::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07), transparent 65%);
  pointer-events: none;
}
.landing-gate.unlocked {
  opacity: 0;
  pointer-events: none;
}
.landing-gate.hidden {
  display: none;
}

body.gated {
  overflow: hidden;
}

.landing-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: landingFadeIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 900;
  font-size: 17px;
}
.landing-mark {
  color: var(--gold);
  font-size: 18px;
}
.landing-name {
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.landing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
}

.landing-status-dot {
  width: 6px;
  height: 6px;
  background: var(--positive);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31, 140, 92, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(31, 140, 92, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(31, 140, 92, 0.08); }
}

.landing-headline {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.landing-accent {
  color: var(--gold);
}

.landing-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 32px;
}

.landing-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 8px;
}

.landing-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  min-width: 0;
}
.landing-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 122, 42, 0.15);
}
.landing-input::placeholder { color: var(--text-muted); }
.landing-input.invalid {
  border-color: var(--negative);
  box-shadow: 0 0 0 3px rgba(188, 58, 58, 0.12);
}

.landing-submit {
  position: relative;
  flex-shrink: 0;
}
.landing-submit:disabled { opacity: 0.7; cursor: wait; }
.landing-submit.loading .landing-btn-label { opacity: 0.4; }
.landing-submit.loading .gate-btn-spinner { opacity: 1; }

.landing-error {
  min-height: 20px;
  font-size: 13px;
  color: var(--negative);
  margin: 4px 0 8px;
}

.landing-fine {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.landing-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.landing-stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.landing-stat-unit {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 1px;
}
.landing-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Landing success state */
.landing-success {
  animation: landingFadeIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.landing-success .success-check {
  margin: 0 auto 20px;
}

@media (max-width: 560px) {
  .landing-form { flex-direction: column; }
  .landing-submit { width: 100%; }
  .landing-stats { gap: 24px; }
  .landing-stat-num { font-size: 18px; }
}

/* ─── Email gate modal ─────────────────────────────────────────────────────── */

.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.gate-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.gate-modal {
  background: var(--surface);
  border-radius: 14px;
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gate-overlay.open .gate-modal {
  transform: translateY(0) scale(1);
}

.gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 120ms, color 120ms;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-close:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}

.gate-mark {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 12px;
}

.gate-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.gate-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.gate-input {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.gate-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 122, 42, 0.15);
}
.gate-input::placeholder { color: var(--text-muted); }
.gate-input.invalid {
  border-color: var(--negative);
  box-shadow: 0 0 0 3px rgba(188, 58, 58, 0.12);
}

.gate-submit {
  position: relative;
  width: 100%;
  justify-content: center;
}
.gate-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.gate-btn-spinner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(245, 244, 240, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 150ms;
  animation: gateSpin 700ms linear infinite;
}
.gate-submit.loading .gate-btn-label { opacity: 0.4; }
.gate-submit.loading .gate-btn-spinner { opacity: 1; }

@keyframes gateSpin {
  to { transform: rotate(360deg); }
}

.gate-error {
  min-height: 20px;
  font-size: 13px;
  color: var(--negative);
  margin-bottom: 8px;
}

.gate-fine {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* Success state */
.gate-modal.success { text-align: center; }
.gate-modal.success .gate-title { margin-top: 4px; }

.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(31, 140, 92, 0.12);
  color: var(--positive);
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(31, 140, 92, 0.3);
}

.success-email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 150ms;
}
.footer-link-btn:hover { color: var(--text-primary); }

/* ─── Animation ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero-content > *,
  .hero-visual,
  .feature,
  .step,
  .insight-card,
  .faq-item {
    animation: fadeUp 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-content > *:nth-child(1) { animation-delay: 0ms; }
  .hero-content > *:nth-child(2) { animation-delay: 60ms; }
  .hero-content > *:nth-child(3) { animation-delay: 120ms; }
  .hero-content > *:nth-child(4) { animation-delay: 180ms; }
  .hero-content > *:nth-child(5) { animation-delay: 240ms; }
  .hero-visual { animation-delay: 300ms; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
