/* Hedgie DA — landing page. Source: ~/hedgie/tools/da/landing.css */
:root {
  --t-display: clamp(42px, 5.4vw, 88px);
  --t-h2: clamp(30px, 3.3vw, 50px);
  --t-numeral: clamp(56px, 6vw, 92px);
  --t-sub: 22px;
}
body { background: transparent; }
.display, .section-head h2, .chapter h3, .launch h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.012em; text-wrap: balance; }
.section-head h2 { line-height: 1.02; }
.chapter h3 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.08; }
.section { padding-block: 11vh; }
.section-head { margin-bottom: 56px; }
.chapter + .chapter { margin-top: 12vh; }
/* numbers stay in the text face: cleaner than the bubbly display */
.value, .readout b, .proof-rest dd { font-family: var(--text) !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.cmp-head { font-size: 20px !important; }

/* ---------- splash ---------- */
.splash, [data-theme="light"] .splash { background: #0b2406 url(/assets/brand/hero-mid.webp) center / cover no-repeat; }
.splash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(8,26,5,.10), rgba(8,26,5,.55)); }
.splash-bg { display: none; }
.splash-inner { z-index: 1; gap: 26px; color: #fff; }
.splash-mark { width: 96px; height: auto; color: #fff; opacity: 0; transform: translateY(18px) scale(.9); animation: hgIn 1s .15s cubic-bezier(.19,1,.22,1) forwards; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.splash-word-svg { height: clamp(56px, 8vw, 92px); width: auto; color: #fff; clip-path: inset(0 100% 0 0); animation: hgWipe 1.1s .75s cubic-bezier(.65,0,.35,1) forwards; }
.splash-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.splash-bar::after { background: #fff; border-radius: 3px; }
@keyframes hgIn { to { opacity: 1; transform: none; } }
@keyframes hgWipe { to { clip-path: inset(0 0 0 0); } }

/* ---------- top bar ---------- */
.topbar { padding-block: 18px; }
.brand { gap: 10px; color: var(--ink); }
.brand .hg-mark { width: 38px; height: 28px; color: currentColor; }
.brand .hg-word { height: 30px; width: auto; color: currentColor; margin-top: 2px; }
.nav { gap: 6px; font-weight: 600; }
.nav a, .nav .net { padding: 8px 14px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.nav a:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.nav .open { margin-left: 8px; background: var(--hg-gloss); color: #fff !important; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -10px rgba(20,60,8,.7); }
.nav .open:hover { filter: brightness(1.08); background: var(--hg-gloss); }
.theme { margin-left: 6px; width: 38px; height: 38px; background: transparent; }
/* over the green hero, before scrolling: everything white */
.topbar:not(.scrolled) .brand, .topbar:not(.scrolled) .nav, .topbar:not(.scrolled) .nav a, .topbar:not(.scrolled) .menu-btn, .topbar:not(.scrolled) .theme { color: #fff; }
.topbar:not(.scrolled) .nav a:hover { background: rgba(255,255,255,.14); }
.topbar:not(.scrolled) .theme { border-color: rgba(255,255,255,.35); }
.topbar:not(.scrolled) .nav .open { background: #fff; color: var(--hg-forest-700) !important; }
.topbar:not(.scrolled) .nav .net::before { background: #d9ff9c; }
.topbar.scrolled { background: color-mix(in srgb, var(--ground) 78%, transparent); box-shadow: 0 1px 0 var(--rule), 0 10px 30px -20px rgba(0,0,0,.4); }
.mobile-menu { background: color-mix(in srgb, var(--ground) 92%, transparent); border-radius: 20px; }
.mobile-menu a { font-family: var(--display); font-weight: 700; }

/* ---------- hero = the banner ---------- */
.hero.hg-hero { position: relative; isolation: isolate; min-height: max(100svh, 680px); padding: 120px var(--gutter) 120px; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hg-hero-bg { position: absolute; inset: 0; z-index: -2; background: #2a640c image-set(url(/assets/brand/hero-wide.webp) 1x) center 38% / cover no-repeat; transform: scale(1.04); animation: hgDrift 18s ease-in-out infinite alternate; }
@keyframes hgDrift { to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); } }
.hero.hg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 60% at 50% 46%, rgba(10,34,6,.30), transparent 70%),
  linear-gradient(180deg, rgba(6,20,4,.25) 0%, transparent 22%, transparent 58%, rgba(7,22,6,.75) 86%, #071606 100%); }
:root[data-theme="light"] .hero.hg-hero::before { background:
  radial-gradient(70% 60% at 50% 46%, rgba(10,34,6,.28), transparent 70%),
  linear-gradient(180deg, rgba(6,20,4,.22) 0%, transparent 22%, transparent 62%, rgba(247,250,239,.7) 88%, #f7faef 100%); }
.hero.hg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--hg-stripes);
  -webkit-mask: radial-gradient(40% 50% at 0% 10%, #000, transparent 70%), radial-gradient(40% 50% at 100% 90%, #000, transparent 70%);
  mask: radial-gradient(40% 50% at 0% 10%, #000, transparent 70%), radial-gradient(40% 50% at 100% 90%, #000, transparent 70%); }
.hg-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 980px; margin: 0 auto; }
.hg-pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hg-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #d9ff9c; box-shadow: 0 0 0 0 rgba(217,255,156,.7); animation: hgPing 2s infinite; }
@keyframes hgPing { 70% { box-shadow: 0 0 0 10px rgba(217,255,156,0); } 100% { box-shadow: 0 0 0 0 rgba(217,255,156,0); } }
.hg-hero-word { margin: 34px 0 6px; line-height: 0; }
.hg-hero-word .hg-word { height: clamp(96px, 15vw, 210px); color: #fff; filter: drop-shadow(0 18px 40px rgba(8,30,4,.35)); }
.hg-hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 42px); line-height: 1.08; letter-spacing: -0.01em; text-shadow: 0 6px 30px rgba(8,30,4,.35); max-width: 26ch; margin-top: 18px; text-wrap: balance; }
.hero.hg-hero .lede { color: rgba(255,255,255,.88); font-size: 18px; max-width: 54ch; margin: 20px auto 0; font-weight: 500; text-shadow: 0 2px 16px rgba(8,30,4,.35); }
.hero.hg-hero .cta-row { justify-content: center; gap: 14px; margin-top: 36px; }
.btn { padding: 16px 26px; font-weight: 800; font-size: 15px; letter-spacing: .01em; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.btn:hover { opacity: 1; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--hg-forest-700); box-shadow: 0 14px 34px -14px rgba(5,25,2,.6); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.hg-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 46px; }
.hg-hero-stats span { padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.92); background: rgba(6,24,4,.28); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hg-hero-stats b { color: #d9ff9c; font-weight: 800; margin-right: 6px; }
.hg-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,.55); }
.hg-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hgScroll 1.8s ease-in-out infinite; }
@keyframes hgScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- simulator section ---------- */
.hg-sim-sec { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: 8vh 6vh; }
.hg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hg-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hg-sim-copy h2 { margin-top: 16px; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.04; }
.hg-sim-copy p { margin-top: 20px; color: var(--ink-2); max-width: 46ch; }
.hg-sim-copy .hg-checks { list-style: none; margin-top: 26px; display: grid; gap: 12px; font-weight: 600; }
.hg-sim-copy .hg-checks li { display: flex; align-items: center; gap: 12px; }
.hg-sim-copy .hg-checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--hg-gloss); box-shadow: 0 0 0 4px var(--hg-glow);
  -webkit-mask: radial-gradient(circle, #000 64%, transparent 66%); }

/* ---------- surfaces ---------- */
.surface, .proof-rest > div, .cmp-cell, .inv-item { background: var(--hg-card); border: 1px solid var(--rule); border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sim.surface { padding: 30px; border-radius: 28px; background: var(--hg-card-2); position: relative; overflow: hidden; }
.sim.surface::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--hg-gloss); }
.sim-head { font-weight: 700; color: var(--ink); }
.state { font-weight: 800; }
.value { font-size: 60px; }
.readout b, .proof-rest dd, .cmp-head, .inv-item h3, .ecosystem-name { font-family: var(--display); font-weight: 700; }
.track { height: 8px; border-radius: 8px; }
.fill { border-radius: 8px; background: var(--hg-gloss) !important; }
input[type="range"] { accent-color: var(--hg-leaf-400); }

/* ---------- ecosystem + proof ---------- */
.ecosystem { padding-block: 5vh 2vh; }
.ecosystem-viewport { -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ecosystem-card { padding: 10px 18px 10px 10px; border-radius: 18px; background: var(--hg-card); border: 1px solid var(--rule); }
.proof { padding-block: 10vh 4vh; }
.proof-main { position: relative; padding: 44px 44px 40px; border-radius: 32px; overflow: hidden; color: #fff; background: #2a640c url(/assets/brand/hero-mid.webp) 70% 40% / cover; box-shadow: 0 30px 70px -36px rgba(20,60,8,.8); }
.proof-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,30,4,.55), rgba(8,30,4,.05) 70%); }
.proof-main::after { content: ""; position: absolute; inset: 0; background: var(--hg-stripes); -webkit-mask: radial-gradient(50% 90% at 100% 0%, #000, transparent 70%); mask: radial-gradient(50% 90% at 100% 0%, #000, transparent 70%); }
.proof-main > * { position: relative; z-index: 1; }
.proof-main b { font-family: var(--display); font-weight: 900; font-size: var(--t-numeral); text-shadow: 0 10px 30px rgba(8,30,4,.35); }
.proof-label { color: rgba(255,255,255,.9); font-weight: 600; font-size: 18px; }
.proof-rest dt { font-weight: 800; letter-spacing: .1em; }
.proof-rest > div { padding: 26px; }

/* ---------- chapters ---------- */
.step { display: inline-flex; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.panel.surface { border-radius: 26px; padding: 22px; }
.panel-head { font-weight: 700; }
.specs div { font-weight: 500; }
.specs dd { font-weight: 700; }

/* ---------- compare ---------- */
.cmp-head { font-size: 24px; }
.cmp-head.hedgie { color: var(--accent); }
.cmp-cell { font-size: 16px; }
.cmp-cell.hedgie { position: relative; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--hg-card)), var(--hg-card)); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.cmp-cell b { font-weight: 800; font-size: 15px; }
.cmp-cell .ok, .cmp-cell .x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 900; }
.cmp-cell .ok { background: var(--hg-gloss); color: #fff; }
.cmp-cell .x { background: color-mix(in srgb, var(--danger) 16%, transparent); }
.cmp-topic { font-weight: 800; letter-spacing: .1em; }

/* ---------- security ---------- */
.vault.surface { border-radius: 28px; }
.inv-item { position: relative; overflow: hidden; padding: 34px; transition: transform .25s ease, border-color .25s ease; }
.inv-item::before { content: ""; position: absolute; inset: 0; background: var(--hg-stripes); opacity: 0; transition: opacity .3s ease; -webkit-mask: radial-gradient(60% 80% at 100% 0%, #000, transparent 70%); mask: radial-gradient(60% 80% at 100% 0%, #000, transparent 70%); }
:root[data-theme="light"] .inv-item::before { background: repeating-linear-gradient(135deg, rgba(55,114,16,.10) 0 2px, transparent 2px 13px); }
.inv-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.inv-item:hover::before { opacity: 1; }
.inv-item h3 { font-size: 26px; }
.inv-item h3::before { content: ""; display: block; width: 44px; height: 32px; margin-bottom: 18px; background: var(--hg-gloss);
  -webkit-mask: url(/assets/brand/hedgie-mark.svg) left center / contain no-repeat; mask: url(/assets/brand/hedgie-mark.svg) left center / contain no-repeat; }

/* ---------- launch band ---------- */
.launch { padding-block: 10vh 12vh; }
.launch .wrap { position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 120px); border-radius: 40px; color: #fff; background: #2a640c url(/assets/brand/hero-wide.webp) center 30% / cover; box-shadow: 0 40px 90px -40px rgba(20,60,8,.9); }
.launch .wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(8,30,4,.35), rgba(8,30,4,.1)); }
.launch .wrap::after { content: ""; position: absolute; inset: 0; background: var(--hg-stripes); -webkit-mask: radial-gradient(35% 60% at 0% 100%, #000, transparent 70%), radial-gradient(35% 60% at 100% 0%, #000, transparent 70%); mask: radial-gradient(35% 60% at 0% 100%, #000, transparent 70%), radial-gradient(35% 60% at 100% 0%, #000, transparent 70%); }
.launch .wrap > * { position: relative; z-index: 1; }
.launch-mark { width: 84px; height: 62px; color: #fff; margin-bottom: 26px; filter: drop-shadow(0 10px 24px rgba(8,30,4,.35)); }
.launch h2 { font-size: clamp(36px, 5vw, 72px); text-shadow: 0 10px 30px rgba(8,30,4,.35); }
.launch .btn { background: #fff; color: var(--hg-forest-700); box-shadow: 0 14px 34px -14px rgba(5,25,2,.6); }
.launch .ghost { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.4); font-weight: 700; }

/* ---------- footer ---------- */
.foot-lockup { color: var(--ink); }
.foot-mark { width: 40px; height: 30px; }
.foot-lockup .hg-word { height: 32px; }
.foot-grid h4 { font-weight: 800; letter-spacing: .1em; }
.foot-grid ul, .foot-bar { font-weight: 600; }

/* ---------- light theme tweaks ---------- */
:root[data-theme="light"] .step { color: var(--hg-leaf-500); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hg-sim-sec { grid-template-columns: 1fr; }
  .hg-sim-sec .sim { width: 100%; }
}
@media (max-width: 680px) {
  .hg-hero-bg { background-image: url(/assets/brand/hero-tall.webp); background-position: center; }
  .hero.hg-hero { padding: 110px 18px 100px; }
  .hg-hero-word .hg-word { height: 84px; }
  .hero.hg-hero .lede { font-size: 16px; }
  .hero.hg-hero .cta-row .btn { width: 100%; justify-content: center; }
  .hg-hero-stats { margin-top: 30px; }
  .proof-main { padding: 30px 24px; }
  .launch .wrap { border-radius: 28px; margin-inline: 16px; width: auto; }
  .brand .hg-word { height: 24px; width: auto; }
  .brand .hg-mark { width: 30px; height: 22px; }
  .proof-main b { font-size: 54px; }
}
@media (max-width: 520px) {
  .nav .open { display: none; }
  .topbar { padding-inline: 18px; }
  .menu-btn { margin-right: -6px; }
}
