/* ============================================================
   Project Prometheus — design system
   Deep-tech dark theme · Space Grotesk + Inter + JetBrains Mono
   Palette: cyan (clean energy) -> amber (fuel) · green (carbon)
   ============================================================ */

:root {
  --bg: #060a10;
  --bg-2: #0a0f17;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #e8edf3;
  --muted: #95a1b2;
  --faint: #647483;

  --cyan: #22d3ee;
  --amber: #fb923c;
  --green: #34d399;

  --maxw: 1160px;
  --radius: 8px;
  --radius-lg: 10px;
  --shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.8);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid rgba(34, 211, 238, 0.85); outline-offset: 4px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link { position: absolute; left: 0; top: 0; z-index: 200; background: var(--cyan); color: #04161a; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; transform: translateX(-110%); }
.skip-link:focus { transform: none; }

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 150; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: grow-x linear; animation-timeline: scroll(root); }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.22rem; }
.grad-text { background: linear-gradient(100deg, var(--cyan), var(--amber)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #c4cdd8; }
.lead-sm { font-size: 1.08rem; color: #bcc6d2; margin-bottom: 22px; max-width: 54ch; }
.section-sub { color: var(--muted); max-width: 66ch; margin-top: 14px; font-size: 1.05rem; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(6, 10, 16, 0.55); border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.site-header.scrolled { background: rgba(6, 10, 16, 0.9); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; }
.brand-mark { color: var(--amber); display: inline-flex; }
.brand-text { font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 21px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.nav-cta).active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--amber)); }
.nav-cta { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text) !important; padding: 9px 14px; border-radius: 8px; font-weight: 600; }
.nav-cta:hover { border-color: var(--cyan); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.97rem; padding: 14px 24px; border-radius: 8px; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: linear-gradient(100deg, var(--cyan), #38bdf8); color: #04161a; box-shadow: 0 14px 34px -14px rgba(34, 211, 238, 0.6); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }
.btn-ghost:hover { border-color: var(--cyan); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding: 90px 0 70px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 60% at 50% 40%, transparent, rgba(6,10,16,0.55) 75%, var(--bg)), linear-gradient(180deg, rgba(6,10,16,0.2), var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; color: #cdd6e0; background: rgba(8,12,18,0.6); border: 1px solid var(--border); border-radius: 100px; padding: 7px 15px; margin-bottom: 26px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .pulse-dot { animation: pulse 2.2s infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.5); } 70% { box-shadow: 0 0 0 9px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.hero-title { margin-bottom: 24px; max-width: 16ch; }
.hero-lead { font-size: clamp(1.08rem, 1.7vw, 1.35rem); color: #c4cdd8; max-width: 60ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin-top: 32px; }
.hero-proof div { min-width: 0; background: rgba(6, 10, 16, 0.58); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; backdrop-filter: blur(10px); }
.hero-proof dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.hero-proof dd { margin-top: 5px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-chips span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; display: grid; place-items: start center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .scroll-hint span { animation: scrolldot 1.6s infinite; } }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- stat band ---------- */
.stat-band { border-block: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 40px 24px; }
.stat { text-align: center; }
.stat .count { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1; background: linear-gradient(100deg, var(--cyan), var(--amber)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat label { display: block; margin-top: 10px; font-size: 0.86rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; scroll-margin-top: 86px; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border); }
.section-head { max-width: 780px; margin-bottom: 50px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

/* ---------- cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-5px); } }
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card.accent { border-color: rgba(251,146,60,0.4); background: rgba(251,146,60,0.06); }
.card-icon { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 10px; border: 1px solid rgba(34,211,238,0.28); border-radius: 8px; background: rgba(34,211,238,0.08); color: var(--cyan); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; margin-bottom: 14px; }
.tag-cyan { color: var(--cyan); background: rgba(34,211,238,0.12); }
.tag-amber { color: var(--amber); background: rgba(251,146,60,0.14); }
.tag-green { color: var(--green); background: rgba(52,211,153,0.13); }

/* ---------- pipeline ---------- */
.pipeline { list-style: none; display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.pipe-step { flex: 1 1 200px; max-width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: border-color 0.3s, transform 0.3s var(--ease); }
.pipe-step:hover { border-color: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .pipe-step:hover { transform: translateY(-4px); } }
.pipe-ico { display: inline-grid; place-items: center; height: 34px; min-width: 52px; padding: 0 10px; margin-bottom: 12px; border-radius: 8px; background: rgba(251,146,60,0.11); border: 1px solid rgba(251,146,60,0.3); color: var(--amber); font-family: var(--font-mono); font-size: 0.78rem; }
.pipe-step h4 { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--cyan); text-transform: uppercase; margin-bottom: 8px; }
.pipe-step p { font-size: 0.9rem; color: var(--muted); }
.pipe-arrow { display: flex; align-items: center; color: var(--amber); font-size: 1.6rem; }

/* ---------- equation ---------- */
.equation { background: radial-gradient(120% 120% at 50% 0%, rgba(34,211,238,0.06), transparent 60%), var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; text-align: center; margin-bottom: 40px; }
.eq-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.equation code { display: block; font-family: var(--font-mono); font-size: clamp(1.1rem, 2.6vw, 1.8rem); color: var(--text); margin: 16px 0; font-weight: 500; }
.eq-arrow { color: var(--amber); padding: 0 6px; }
.equation p { color: var(--muted); font-size: 0.95rem; }
.equation strong { color: var(--text); }

/* ---------- carbon loop ---------- */
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.loop-grid article { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.loop-grid span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #04161a; background: linear-gradient(135deg, var(--cyan), var(--amber)); font-family: var(--font-display); font-weight: 700; }
.loop-grid h3 { margin-top: 22px; margin-bottom: 10px; }
.loop-grid p { color: var(--muted); font-size: 0.95rem; }
.honesty-callout { margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(52,211,153,0.32); border-left: 4px solid var(--green); border-radius: var(--radius); background: rgba(52,211,153,0.07); color: #cbd7d0; }
.honesty-callout strong { color: var(--text); }

/* ---------- figures (charts) ---------- */
.figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.figure img { width: 100%; height: auto; }
.figure.light { background: var(--surface); }
.figure.light img { padding: 0; background: transparent; }
.figure figcaption { font-size: 0.85rem; color: var(--muted); padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-2); }
.figure.light figcaption { color: var(--faint); }
.render-figure { max-width: 760px; margin: 34px auto 0; }
.render-figure img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- check list ---------- */
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 34px; color: var(--muted); font-size: 0.99rem; }
.check-list li strong { color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: rgba(34,211,238,0.13); border: 1px solid rgba(34,211,238,0.4); }
.check-list li::after { content: "✓"; position: absolute; left: 5px; top: 3px; color: var(--cyan); font-size: 0.8rem; font-weight: 700; }

/* ---------- fuel slate ---------- */
.slate { list-style: none; display: grid; gap: 16px; }
.slate li { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 14px; grid-template-areas: "pct name" "pct bar"; }
.slate-pct { grid-area: pct; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--amber); }
.slate-name { grid-area: name; font-size: 0.95rem; }
.slate-bar { grid-area: bar; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.slate-bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--amber)); }
.fineprint { color: var(--faint); font-size: 0.85rem; margin-top: 18px; }

/* ---------- compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 34px; }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare caption { text-align: left; color: var(--faint); font-size: 0.82rem; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.compare thead th { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); }
.compare .col-us { background: rgba(251,146,60,0.08); }
.compare .col-us td { color: var(--text); }
.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 860px; margin: 0 auto 44px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--cyan), var(--amber)); opacity: 0.4; }
.timeline li { position: relative; display: flex; gap: 26px; padding: 16px 0 30px; }
.t-num { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #04161a; background: linear-gradient(135deg, var(--cyan), var(--amber)); box-shadow: 0 0 0 6px var(--bg); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 0.97rem; }

/* ---------- economics drivers ---------- */
.driver-list { margin-top: 24px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.driver-list span { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.driver-list ol { margin-left: 20px; color: var(--muted); font-size: 0.92rem; }
.driver-list li + li { margin-top: 4px; }

/* ---------- calculator ---------- */
.calc-shell { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: 24px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,0.046), rgba(255,255,255,0.018)); padding: 22px; box-shadow: var(--shadow); }
.calc-controls { display: grid; gap: 18px; }
.calc-controls fieldset { border: 0; padding: 0; margin: 0; }
.calc-controls legend, .range-row span, .input-grid label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.035); color: var(--muted); cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { color: #04161a; background: linear-gradient(100deg, var(--cyan), #38bdf8); border-color: transparent; font-weight: 700; }
.range-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-row output { color: var(--text); font-family: var(--font-display); font-weight: 700; }
.calc-controls input[type="range"] { width: 100%; accent-color: var(--cyan); }
.input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.input-grid label { display: grid; gap: 8px; }
.input-grid input { min-width: 0; width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius); background: rgba(2,6,10,0.72); color: var(--text); padding: 11px 12px; }
.preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preset-row button { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); padding: 10px 8px; cursor: pointer; }
.preset-row button:hover { border-color: var(--cyan); color: var(--text); }
.calc-status, .calc-note { color: var(--faint); font-size: 0.86rem; }
.calc-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.calc-metric { min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(2,6,10,0.45); padding: 18px; }
.calc-metric span { color: var(--faint); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.calc-metric strong { color: var(--text); font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.05; overflow-wrap: anywhere; }
.calc-metric small { color: var(--muted); font-size: 0.82rem; }
.calc-metric.warning { border-color: rgba(251,146,60,0.34); background: rgba(251,146,60,0.06); }
.calc-note { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 4px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--cyan); font-family: var(--font-mono); }
.faq-list details[open] summary::after { content: "-"; }
.faq-list p { padding: 0 22px 22px; color: var(--muted); }

/* ---------- gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-item { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #0d1320; padding: 0; font: inherit; }
.gal-item img { width: 100%; height: 168px; object-fit: contain; background: #0d1320; display: block; }
.gal-item span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 0.78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 18px 12px 8px; text-align: left; }
@media (prefers-reduced-motion: no-preference) { .gal-item { transition: transform 0.3s var(--ease); } .gal-item:hover { transform: translateY(-4px); } }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,6,10,0.92); display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 10px; background: #0a0f17; }
.lb-close { position: absolute; top: 20px; right: 24px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }

/* ---------- CTA + footer ---------- */
.section-cta { text-align: center; background: radial-gradient(60% 100% at 50% 0%, rgba(34,211,238,0.08), transparent 60%), var(--bg-2); border-top: 1px solid var(--border); }
.cta-inner { max-width: 660px; margin-inline: auto; }
.cta-inner h2 { margin-bottom: 6px; }
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 36ch; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-meta p { color: var(--faint); font-size: 0.86rem; margin-bottom: 7px; }
.footer-meta a { color: var(--muted); }
.copyright { margin-top: 14px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress, .pulse-dot, .scroll-hint span { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.86rem; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .cards-3, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .loop-grid { grid-template-columns: 1fr 1fr; }
  .calc-shell { grid-template-columns: 1fr; }
  .pipe-arrow { flex: 0 0 100%; width: 100%; justify-content: center; transform: rotate(90deg); }
}
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch; background: rgba(6,10,16,0.98); border-bottom: 1px solid var(--border); padding: 16px 24px 26px; transform: translateY(-130%); transition: transform 0.35s var(--ease); backdrop-filter: blur(14px); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 4px; font-size: 1rem; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .cards-3, .footer-grid { grid-template-columns: 1fr; }
  .hero-proof, .loop-grid, .input-grid, .calc-results, .preset-row { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; padding-top: 86px; }
  .hero-title { max-width: 12ch; }
  .btn { width: 100%; justify-content: center; white-space: normal; }
  .stat-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ---------- funding flow ---------- */
.fund-flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; counter-reset: step; }
.fund-flow li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px 16px; }
.fund-flow li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: #04161a; background: linear-gradient(135deg, var(--cyan), var(--amber)); margin-bottom: 10px; }
.fund-flow span { display: block; font-weight: 600; color: var(--text); }
.fund-flow small { color: var(--muted); font-size: 0.85rem; }

/* ---------- sources ---------- */
.source-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source-list li { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: border-color 0.2s; }
.source-list li:hover { border-color: var(--cyan); }
.source-list a { color: var(--cyan); font-weight: 600; font-size: 0.96rem; }
.source-list span { color: var(--faint); font-size: 0.82rem; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- bankability panel ---------- */
.bankability { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); padding: 24px; }
.bankability h3 { margin-bottom: 6px; }
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
.bank-grid label { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.bank-grid output { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.bank-grid input[type="range"] { width: 100%; accent-color: var(--cyan); }
.bank-out { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; }
.bank-out .bank-lcof span { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.bank-out strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--cyan); line-height: 1; }
.bank-out small { color: var(--muted); }
.bank-bar { position: relative; height: 14px; border-radius: 8px; background: rgba(255,255,255,0.06); margin-top: 22px; }
.bank-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, var(--cyan), var(--amber)); transition: width 0.3s var(--ease); }
.bank-bar b { position: absolute; top: -20px; font-size: 0.72rem; color: var(--muted); font-weight: 500; transform: translateX(-50%); }
@media (max-width: 720px) { .bank-grid, .source-list, .fund-flow { grid-template-columns: 1fr; } .bank-out { grid-template-columns: 1fr; } }

/* ---------- feasibility paper CTA ---------- */
.paper-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 6px; }
.paper-cta span { color: var(--muted); font-size: 0.88rem; max-width: 46ch; }

/* ---------- app screenshot (browser frame) ---------- */
.appshot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #0d1320; box-shadow: var(--shadow); margin: 0; }
.appshot-bar { display: flex; align-items: center; gap: 7px; padding: 9px 13px; background: #11161d; border-bottom: 1px solid var(--border); }
.appshot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4654; }
.appshot-bar span:nth-child(1) { background: #fb7185; }
.appshot-bar span:nth-child(2) { background: #fbbf24; }
.appshot-bar span:nth-child(3) { background: #34d399; }
.appshot-bar em { margin-left: 10px; font-family: var(--font-mono); font-style: normal; font-size: 0.72rem; color: var(--faint); }
.appshot > img { width: 100%; display: block; }
.appshot figcaption { padding: 13px 16px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--bg-2); }
