:root {
  --bg: #05080a;
  --bg-raise: #0a1014;
  --line: rgba(52, 211, 153, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #e8f0ee;
  --text-dim: #9db4ad;
  --accent: #34d399;
  --accent-dim: #10b981;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; margin-bottom: 1.1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

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

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #04120c; font-family: var(--font-head);
  font-weight: 600; padding: 10px 18px; border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: rgba(5, 8, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem;
  text-decoration: none; letter-spacing: 0.02em;
}
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 0.86rem; color: var(--text-dim);
  transition: color 0.2s; padding: 11px 0; display: inline-block;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  padding: 12px 24px; border-radius: 10px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-lg { font-size: 1.05rem; padding: 15px 32px; }
.btn-solid {
  background: var(--accent); color: #04120c;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.25);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(52, 211, 153, 0.45); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--text);
  background: rgba(52, 211, 153, 0.04);
}
.btn-ghost:hover { background: rgba(52, 211, 153, 0.1); }
.nav-cta { padding: 12px 18px; font-size: 0.84rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0;
  background: url("assets/hero-engine.webp") center 65% / cover no-repeat;
  opacity: 0.85;
}
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.9;
}
#engine { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(5,8,10,0) 0%, rgba(5,8,10,0.55) 68%, rgba(5,8,10,0.92) 100%),
    linear-gradient(180deg, rgba(5,8,10,0.55) 0%, rgba(5,8,10,0.15) 30%, rgba(5,8,10,0.35) 75%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; padding: 120px 24px 60px; }
.badge {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--accent); border: 1px solid var(--line);
  background: rgba(52, 211, 153, 0.06);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 26px;
  text-transform: uppercase; font-weight: 500;
}
.hero-sub {
  font-size: clamp(1rem, 1.9vw, 1.18rem); color: var(--text-dim);
  max-width: 680px; margin: 24px auto 34px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-facts {
  list-style: none; display: flex; gap: 12px 0; justify-content: center;
  flex-wrap: wrap; margin-top: 66px;
}
.hero-facts li {
  display: flex; flex-direction: column; gap: 2px; align-items: center;
  padding: 0 26px; text-align: center;
}
.hero-facts li + li { border-left: 1px solid var(--line-soft); }
.hero-facts strong { font-family: var(--font-head); font-size: 1.12rem; color: var(--accent); }
.hero-facts span { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.lede { color: var(--text-dim); font-size: 1.06rem; max-width: 720px; margin-bottom: 1.1rem; }

.problem { border-top: 1px solid var(--line-soft); }

/* ---------- Pillars ---------- */
.pillars { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.pillar {
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--bg-raise);
  transition: border-color 0.25s;
}
.pillar[open], .pillar:hover { border-color: var(--line); }
.pillar summary {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 26px; cursor: pointer; list-style: none;
}
.pillar summary::-webkit-details-marker { display: none; }
.pillar-num { font-family: var(--font-head); color: var(--accent); font-size: 0.9rem; opacity: 0.8; }
.pillar-head { display: flex; flex-direction: column; gap: 1px; }
.pillar-head strong { font-family: var(--font-head); font-size: 1.14rem; font-weight: 600; }
.pillar-head span { font-size: 0.85rem; color: var(--text-dim); }
.pillar-toggle { margin-left: auto; position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.pillar-toggle::before, .pillar-toggle::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform 0.25s;
}
.pillar-toggle::before { top: 7px; left: 0; width: 16px; height: 2px; }
.pillar-toggle::after { top: 0; left: 7px; width: 2px; height: 16px; }
.pillar[open] .pillar-toggle::after { transform: rotate(90deg); }
.pillar ul { list-style: none; padding: 4px 26px 24px 64px; display: flex; flex-direction: column; gap: 13px; }
.pillar li { color: var(--text-dim); font-size: 0.95rem; }
.pillar li strong { color: var(--text); display: block; font-weight: 600; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.split-media img {
  border-radius: 18px; border: 1px solid var(--line-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.govern { background: linear-gradient(180deg, var(--bg) 0%, #071009 50%, var(--bg) 100%); }
.govern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.gcard {
  border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 20px 22px; background: rgba(10, 16, 20, 0.6);
}
.gcard h3 { color: var(--accent); }
.gcard p { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Proof ---------- */
.proof { border-top: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.proof-bg { position: absolute; inset: 0; opacity: 0.22; }
.proof-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,8,10,0.35) 35%, rgba(5,8,10,0.35) 65%, var(--bg) 100%);
}
.proof-bg video { width: 100%; height: 100%; object-fit: cover; }
.proof .wrap { position: relative; z-index: 1; }
.split-media video {
  width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.proof-strip { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 38px; border-top: 1px solid var(--line-soft); }
.proof-strip li {
  padding: 20px 22px 4px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.proof-strip li + li { border-left: 1px solid var(--line-soft); padding-left: 22px; }
.proof-strip strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--accent); }
.proof-strip span { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Engagement ---------- */
.engage { background: linear-gradient(180deg, var(--bg) 0%, #071009 60%, var(--bg) 100%); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--line-soft); }
.steps li { padding: 28px 26px 0 0; }
.steps li + li { border-left: 1px solid var(--line-soft); padding-left: 26px; }
.step-num {
  display: block; color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 2rem;
  line-height: 1; margin-bottom: 14px; opacity: 0.9;
}
.steps p { font-size: 0.92rem; color: var(--text-dim); }
.engage-price {
  margin-top: 44px; max-width: 640px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--text-dim); font-size: 1.02rem;
}
.engage-price strong { color: var(--text); font-family: var(--font-head); }

/* ---------- CTA ---------- */
.cta {
  padding: 140px 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(52, 211, 153, 0.09) 0%, rgba(5, 8, 10, 0) 70%),
    var(--bg);
}
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta .lede { margin: 18px auto 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 60px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-tag { color: var(--text-dim); font-size: 0.88rem; max-width: 380px; margin-top: 14px; }
.footer-meta { text-align: right; color: var(--text-dim); font-size: 0.85rem; line-height: 1.9; }
.footer-meta a { color: var(--accent); text-decoration: none; display: inline-block; padding: 8px 0; }
.footer-legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: rgba(157, 180, 173, 0.82); font-size: 0.78rem;
}

.motion-toggle {
  position: fixed; bottom: 16px; right: 16px; z-index: 40;
  background: rgba(10, 16, 20, 0.8); color: var(--text-dim);
  border: 1px solid var(--line-soft); border-radius: 100px;
  font-family: var(--font-body); font-size: 0.75rem;
  padding: 8px 14px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.motion-toggle:hover { color: var(--text); border-color: var(--line); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #engine { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 8px 16px; padding: 12px 18px; }
  .nav-links {
    order: 3; width: 100%; gap: 18px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; white-space: nowrap;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media { order: -1; max-width: 440px; }
  .govern-grid { grid-template-columns: 1fr; }
  .proof-strip, .steps { grid-template-columns: 1fr; }
  .proof-strip li { padding: 16px 0 4px; }
  .proof-strip li + li, .steps li + li {
    border-left: 0; border-top: 1px solid var(--line-soft);
    padding-left: 0; padding-top: 20px;
  }
  .footer-meta { text-align: left; }
  .section { padding: 80px 0; }
  .hero-facts li { min-width: 41%; }
}
