/* ============================================================
   COMPOUND X — Concept 1: "The Compound Orbit"
   Futuristic, premium, compounding-focused.
   Headings: Space Grotesk · Body: Manrope · Mark: Cinzel
   ============================================================ */

:root {
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mark: "Cinzel", serif;
  --max: 1200px;
  --rad: 18px;
  --rad-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg: #06080f;
  --bg-2: #0a0f1c;
  --bg-3: #0d1424;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .055);
  --text: #e8ecf5;
  --text-2: #b9c1d4;
  --muted: #828ba2;
  --cyan: #3fd8f5;
  --emerald: #3edc97;
  --gold: #e7c469;
  --gold-deep: #c9a44a;
  --glow-cyan: rgba(63, 216, 245, .35);
  --glow-emerald: rgba(62, 220, 151, .30);
  --nav-bg: rgba(6, 8, 15, .72);
  --card-shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --hero-fade: linear-gradient(180deg, rgba(6,8,15,0) 55%, #06080f 100%);
  --chart-grid: rgba(255,255,255,.06);
  --btn-text: #06080f;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f5f0;
  --bg-2: #fdfcf9;
  --bg-3: #eef0ee;
  --surface: rgba(11, 31, 58, .035);
  --surface-2: rgba(11, 31, 58, .06);
  --line: rgba(11, 31, 58, .12);
  --line-soft: rgba(11, 31, 58, .07);
  --text: #0b1f3a;
  --text-2: #33415e;
  --muted: #5d6880;
  --cyan: #0e7490;
  --emerald: #0f8a5f;
  --gold: #a8842c;
  --gold-deep: #8a6a1f;
  --glow-cyan: rgba(14, 116, 144, .22);
  --glow-emerald: rgba(15, 138, 95, .20);
  --nav-bg: rgba(246, 245, 240, .78);
  --card-shadow: 0 24px 50px -28px rgba(11, 31, 58, .25);
  --hero-fade: linear-gradient(180deg, rgba(246,245,240,0) 55%, #f6f5f0 100%);
  --chart-grid: rgba(11,31,58,.07);
  --btn-text: #f6f5f0;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .45s var(--ease), color .45s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--cyan); color: var(--bg); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }

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

/* ---------- Brand mark ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand .cx {
  font-family: var(--font-mark); font-weight: 700; font-size: 21px; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--gold) 20%, var(--gold-deep) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 1px solid var(--line); border-radius: 10px;
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
}
.brand .name { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.brand .name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); line-height: 1.4; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .45s var(--ease);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .25s; position: relative; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--emerald)); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2);
  transition: border-color .25s, transform .25s;
}
.theme-toggle:hover { border-color: var(--cyan); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { width: 17px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.menu-open .hamburger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 96px 36px 110px;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-head); font-size: clamp(26px, 7vw, 34px); font-weight: 600; padding: 13px 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.mobile-menu a small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 600; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; position: relative; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s, background .25s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--emerald));
  color: var(--btn-text);
  box-shadow: 0 10px 30px -10px var(--glow-cyan);
}
.btn-primary:hover { box-shadow: 0 16px 42px -12px var(--glow-emerald); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-deep)); color: var(--btn-text); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-sm { padding: 11px 22px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
#orbitCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-fade); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); background: var(--surface);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 26px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--glow-emerald); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--cyan), var(--emerald) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 540px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 26px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--emerald); flex: none; }

/* ---------- Trust marquee ---------- */
.trust-strip { border-block: 1px solid var(--line-soft); background: var(--bg-2); overflow: hidden; padding: 18px 0; position: relative; z-index: 3; }
.marquee { display: flex; gap: 64px; width: max-content; animation: marquee 28s linear infinite; }
.trust-strip:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee .gdot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 18px 0 16px; }
.section-head p { color: var(--text-2); font-size: 17px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  color: var(--cyan); background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 0 0 6px var(--bg);
  transition: border-color .4s, box-shadow .4s;
}
.step:hover::before { border-color: var(--cyan); box-shadow: 0 0 0 6px var(--bg), 0 0 24px var(--glow-cyan); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Compound visual ---------- */
.compound-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.chart-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 28px; box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chart-card canvas { width: 100%; height: 320px; display: block; }
.chart-legend { display: flex; gap: 22px; margin-top: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.stat { border-left: 1px solid var(--line); padding-left: 18px; }
.stat b { font-family: var(--font-head); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; display: block; color: var(--text); }
.stat b .accent { color: var(--emerald); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Goal cards ---------- */
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.goal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .35s, box-shadow .4s;
}
.goal-card::before { content: ""; position: absolute; top: -60px; right: -60px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--glow-cyan), transparent 70%); opacity: 0; transition: opacity .45s; }
.goal-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: var(--card-shadow); }
.goal-card:hover::before { opacity: .55; }
.goal-icon { width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; margin-bottom: 20px; color: var(--cyan); }
.goal-icon svg { width: 22px; height: 22px; }
.goal-card h3 { font-size: 19px; margin-bottom: 9px; }
.goal-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.goal-link { font-size: 13.5px; font-weight: 700; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.goal-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.goal-card:hover .goal-link svg { transform: translateX(4px); }

/* ---------- Solutions page deep cards ---------- */
.sol-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 26px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 34px; transition: border-color .35s, transform .35s var(--ease); }
.sol-card + .sol-card { margin-top: 18px; }
.sol-card:hover { border-color: var(--gold); transform: translateX(6px); }
.sol-card .goal-icon { margin: 0; color: var(--gold); }
.sol-card h3 { font-size: 22px; margin-bottom: 10px; }
.sol-meta { display: grid; gap: 10px; margin-top: 14px; }
.sol-meta div { font-size: 14.5px; color: var(--text-2); display: flex; gap: 10px; }
.sol-meta b { color: var(--gold); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; flex: none; padding-top: 2px; min-width: 88px; }
.sol-cta { align-self: center; }

/* ---------- Calc teaser & calculator ---------- */
.calc-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.calc-layout { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; }
.calc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 32px; position: sticky; top: 96px; }
.calc-panel h3 { font-size: 18px; margin-bottom: 24px; }
.ctl { margin-bottom: 26px; }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ctl-head label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.ctl-head output { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--cyan); }
input[type="range"] { width: 100%; height: 4px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--cyan) var(--fill, 50%), var(--line) var(--fill, 50%)); border-radius: 4px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px var(--glow-cyan); transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.switch-row label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; margin: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 100px; transition: background .3s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--emerald); }
.switch input:checked + i::after { transform: translateX(20px); }
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad-sm); padding: 22px; }
.result-card span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.result-card b { font-family: var(--font-head); font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; }
.result-card.highlight { border-color: var(--emerald); background: linear-gradient(160deg, var(--surface-2), transparent); }
.result-card.highlight b { color: var(--emerald); }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.founder-photo { aspect-ratio: 4/5; border-radius: var(--rad); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); display: grid; place-items: center; position: relative; overflow: hidden; }
.founder-photo .ph { text-align: center; color: var(--muted); font-size: 13px; }
.founder-photo .ph .cx-big { font-family: var(--font-mark); font-size: 64px; font-weight: 700; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.founder-quote { font-family: var(--font-head); font-size: clamp(21px, 2.3vw, 28px); font-weight: 500; line-height: 1.45; margin-bottom: 26px; }
.founder-quote em { font-style: normal; color: var(--gold); }
.founder-byline { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.founder-byline b { font-family: var(--font-head); display: block; font-size: 16px; }
.founder-byline span { font-size: 13.5px; color: var(--muted); }
.cred-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.cred-pills span { font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { font-family: var(--font-head); font-size: 17px; font-weight: 600; padding: 24px 40px 24px 0; cursor: pointer; list-style: none; position: relative; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 22px; font-weight: 400; color: var(--cyan); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--cyan); }
.faq .faq-body { padding: 0 0 26px; font-size: 15px; color: var(--text-2); max-width: 640px; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final h2 { font-size: clamp(32px, 4.4vw, 54px); max-width: 720px; margin: 0 auto 18px; }
.cta-final p { color: var(--text-2); font-size: 17px; max-width: 520px; margin: 0 auto 36px; }
.cta-final .hero-ctas { justify-content: center; }
.orbit-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid var(--line-soft); border-radius: 50%; pointer-events: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; font-family: var(--font-body); font-size: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad-sm);
  color: var(--text); outline: none; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--glow-cyan); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.radio-pills { display: flex; gap: 10px; }
.radio-pills label { flex: 1; text-align: center; padding: 13px; border: 1px solid var(--line); border-radius: var(--rad-sm); font-size: 14px; font-weight: 700; cursor: pointer; color: var(--text-2); transition: all .25s; margin: 0; }
.radio-pills input { display: none; }
.radio-pills input:checked + span { color: var(--cyan); }
.radio-pills label:has(input:checked) { border-color: var(--cyan); background: var(--surface-2); color: var(--cyan); }

/* ---------- Assurance list ---------- */
.assure { display: grid; gap: 18px; }
.assure div { display: flex; gap: 14px; align-items: flex-start; }
.assure svg { width: 20px; height: 20px; color: var(--emerald); flex: none; margin-top: 2px; }
.assure b { display: block; font-family: var(--font-head); font-size: 15.5px; font-weight: 600; }
.assure span { font-size: 14px; color: var(--muted); }

/* ---------- Learn page ---------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.cat-tab { font-family: var(--font-head); font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all .25s; }
.cat-tab:hover { border-color: var(--cyan); color: var(--text); }
.cat-tab.active { background: linear-gradient(120deg, var(--cyan), var(--emerald)); color: var(--btn-text); border-color: transparent; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 28px; transition: transform .35s var(--ease), border-color .3s, opacity .35s; }
.topic-card.hide { display: none; }
.topic-card:hover { transform: translateY(-5px); border-color: var(--cyan); }
.topic-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-block; margin-bottom: 14px; }
.topic-card h3 { font-size: 17.5px; margin-bottom: 9px; }
.topic-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.topic-time { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.topic-time svg { width: 13px; height: 13px; }

/* ---------- About page ---------- */
.about-hero { padding: 170px 0 90px; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle { border-top: 2px solid var(--gold); padding-top: 22px; }
.principle b { font-family: var(--font-head); font-size: 18px; display: block; margin-bottom: 8px; }
.principle p { font-size: 14px; color: var(--muted); }
.big-quote { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; line-height: 1.35; text-align: center; max-width: 880px; margin: 0 auto; }
.big-quote em { font-style: normal; background: linear-gradient(100deg, var(--cyan), var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 14.5px; color: var(--text-2); transition: color .25s; }
.footer-links a:hover { color: var(--cyan); }
.footer .brand { margin-bottom: 18px; }
.footer-desc { font-size: 14px; color: var(--muted); max-width: 300px; }
.footer-contact { display: grid; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.footer-contact a:hover { color: var(--cyan); }
.disclaimer { border-top: 1px solid var(--line-soft); padding: 26px 0 34px; }
.disclaimer p { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 980px; }
.disclaimer p + p { margin-top: 8px; }
.disclaimer b { color: var(--text-2); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
  .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
  .reveal-d5 { transition-delay: .40s; } .reveal-d6 { transition-delay: .48s; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--nav-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line-soft); gap: 12px; }
.sticky-cta .btn { flex: 1; padding: 14px 10px; font-size: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 168px 0 76px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 16px; max-width: 740px; }
.page-hero p { font-size: 17.5px; color: var(--text-2); max-width: 580px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .goal-grid, .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .compound-grid, .calc-teaser, .founder-grid { grid-template-columns: 1fr; gap: 44px; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-panel { position: static; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .process::before { display: none; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 0 22px; height: 64px; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .section { padding: 76px 0; }
  .goal-grid, .topic-grid, .result-cards, .field-row { grid-template-columns: 1fr; }
  .sol-card { grid-template-columns: 1fr; padding: 26px; }
  .sol-cta { align-self: start; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .hero { padding-top: 110px; min-height: auto; }
  .hero-ctas .btn { width: 100%; }
  .process { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 56px; }
  .brand .name small { display: none; }
}
@media (max-width: 480px) {
  .principle-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
