/* ============================================================
   StockFloc, site.css
   Dark heat system. Brand = green (winning = hot). Cold = ice.
   Type: Space Grotesk (display/body) + JetBrains Mono (data/labels)
   ============================================================ */

:root {
  --bg:        #06080b;
  --bg-2:      #090d12;
  --panel:     #0c1118;
  --panel-2:   #11171f;
  --line:      #1a222c;
  --line-2:    #273140;
  --text:      #e7eef5;
  --muted:     #8a97a6;
  --faint:     #5a6675;

  /* heat ramp, green up / red+ice down (hue locked) */
  --g-calm: #3fb950;  --g-lift: #56d364;  --g-glow: #7ee787;
  --g-hot:  #aff5b4;  --g-text: #d2ffd8;
  --r-calm: #f85149;  --r-lift: #ff6a5e;  --r-deep: #ff7b72;
  --ice-1:  #7dd3fc;  --ice-2:  #9bdcfd;  --ice-3:  #bae6fd;
  --frost-bg: #0b1422;

  --accent:  var(--g-lift);

  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1200px;
  --nav-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in oklab, var(--g-glow) 30%, transparent); color: #fff; }

/* ambient page glow, green top-left (hot), ice bottom-right (cold) */
.page-aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 620px at 14% -8%, color-mix(in oklab, var(--g-calm) 16%, transparent), transparent 60%),
    radial-gradient(900px 600px at 92% 8%, color-mix(in oklab, var(--ice-1) 9%, transparent), transparent 58%),
    radial-gradient(1200px 900px at 50% 120%, color-mix(in oklab, var(--g-calm) 7%, transparent), transparent 65%);
}
.shell { position: relative; z-index: 1; }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }

/* ---------- shared bits ---------- */
.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--g-glow);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.kicker.center { justify-content: center; }
.kicker.center::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.section-title { font-size: clamp(30px, 4.4vw, 52px); }
.lede { color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; max-width: 56ch; }

.hot-word { color: var(--g-glow); position: relative; white-space: nowrap; }
.cold-word { color: var(--ice-2); }
/* Literal "hot" words read as heat: an orange-to-red gradient, not brand green. */
.hot-word--fire {
  background: linear-gradient(96deg, #ffb24d, #ff7a3c 45%, #f85149);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, var(--g-glow), var(--g-calm));
  color: #042311;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--g-glow) 60%, transparent),
              0 14px 40px -14px color-mix(in oklab, var(--g-calm) 90%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--g-glow), 0 22px 50px -14px color-mix(in oklab, var(--g-glow) 75%, transparent); }
.btn--ghost {
  background: color-mix(in oklab, var(--panel-2) 70%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 1px color-mix(in oklab, var(--g-glow) 30%, transparent); transform: translateY(-2px); }

/* app store badges */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 18px; border-radius: 13px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .2s, transform .18s, background .2s;
}
.badge:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 1px color-mix(in oklab, var(--g-glow) 26%, transparent); }
.badge svg { width: 26px; height: 26px; flex: none; fill: var(--text); }
.badge__txt { display: grid; line-height: 1.15; }
.badge__txt small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.badge__txt b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.badge__txt em { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-glow); margin-top: 1px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: color-mix(in oklab, var(--bg) 88%, transparent); }
.nav__in { display: flex; align-items: center; gap: 20px; width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 76px; width: auto; filter: drop-shadow(0 2px 10px color-mix(in oklab, var(--g-calm) 40%, transparent)); }
.brand__word { font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.brand__word b { color: var(--g-glow); font-weight: 700; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: color .18s; position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--g-glow); transition: width .22s ease; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; background: color-mix(in oklab, var(--g-calm) 16%, transparent); color: var(--g-glow); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--g-glow) 32%, transparent); transition: background .2s, transform .16s; }
.nav__cta:hover { background: color-mix(in oklab, var(--g-calm) 26%, transparent); transform: translateY(-1px); }
.nav__burger { display: none; }

/* ============================================================
   HERO, shared scaffolding; per-direction layouts below
   ============================================================ */
.hero { position: relative; }
[data-hero] .hero-variant { display: none; }
[data-hero="a"] .hero-variant--a,
[data-hero="b"] .hero-variant--b,
[data-hero="c"] .hero-variant--c { display: block; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 13px 0 11px; border-radius: 100px;
  background: color-mix(in oklab, var(--panel-2) 80%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted);
}
.eyebrow-pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--g-glow); box-shadow: 0 0 10px var(--g-glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

.hero-title { font-size: clamp(44px, 8vw, 104px); letter-spacing: -.045em; line-height: .96; }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.7vw, 20px); color: var(--muted); line-height: 1.55; max-width: 46ch; }
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---- Direction A · Living Mark (centered) ---- */
.heroA { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 90px); text-align: center; }
.heroA .eyebrow-pill, .heroA .hero-cta { }
.heroA .hero-sub { margin-inline: auto; }
.heroA .hero-cta { align-items: center; }
.heroA__stage {
  position: relative; margin: clamp(8px, 3vw, 30px) auto 0;
  width: min(620px, 90vw); aspect-ratio: 1 / .92;
  display: grid; place-items: center;
}
.logo-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.logo-stage canvas.fx { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 116%; height: 116%; pointer-events: none; }
.logo-stage img.mark {
  position: relative; z-index: 2; width: 78%; height: auto;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.6));
  transition: filter .8s ease;
}
.logo-stage[data-state="hot"]  canvas.fx.fire { z-index: 1; opacity: 1; }
.logo-stage[data-state="hot"]  canvas.fx.ice  { opacity: 0; }
.logo-stage[data-state="cold"] canvas.fx.ice  { z-index: 3; opacity: 1; }
.logo-stage[data-state="cold"] canvas.fx.fire { opacity: 0; }
.logo-stage[data-state="calm"] canvas.fx { opacity: 0; }
.logo-stage canvas.fx { opacity: 0; transition: opacity .7s ease; }
.logo-stage[data-state="hot"]  img.mark { filter: drop-shadow(0 0 60px color-mix(in oklab, var(--g-glow) 55%, transparent)) drop-shadow(0 24px 60px rgba(0,0,0,.6)) saturate(1.15) brightness(1.06); }
.logo-stage[data-state="cold"] img.mark { filter: drop-shadow(0 0 40px color-mix(in oklab, var(--ice-1) 45%, transparent)) saturate(.7) brightness(.82) hue-rotate(-8deg) blur(.3px); }

/* temperature readout floating by the mark */
.temp-readout {
  position: absolute; z-index: 4; left: 50%; bottom: 2%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 11px 18px; border-radius: 14px;
  background: color-mix(in oklab, var(--panel) 86%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -20px #000;
  backdrop-filter: blur(8px);
}
.temp-readout .tr-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.temp-readout .tr-val { font-family: var(--mono); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.temp-readout .tr-state { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* ---- Direction B · Heat Board (split) ---- */
.heroB { padding: clamp(34px, 5vw, 70px) 0 clamp(40px, 5vw, 70px); }
.heroB__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.heroB .hero-title { font-size: clamp(40px, 5.6vw, 80px); }
.heroB__panel { position: relative; }

/* ---- Direction C · Gauge (cinematic full-bleed) ---- */
.heroC { position: relative; padding: clamp(46px, 7vw, 110px) 0 0; text-align: center; overflow: hidden; }
.heroC .hero-title { font-size: clamp(48px, 9vw, 128px); }
.heroC__mark { width: min(360px, 64vw); margin: 0 auto clamp(20px, 3vw, 36px); }
.heroC__mark img { width: 100%; filter: drop-shadow(0 0 50px color-mix(in oklab, var(--g-glow) 35%, transparent)); }
.heroC .hero-cta { align-items: center; margin-inline: auto; }
.heroC__strip { margin-top: clamp(40px, 6vw, 80px); }

/* ============================================================
   HEAT TICKER STRIP (used in hero C + as a marquee)
   ============================================================ */
.heat-strip { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.heat-strip__track { display: flex; gap: 14px; width: max-content; animation: marquee 46s linear infinite; }
.heat-strip:hover .heat-strip__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px; flex: none;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  position: relative; overflow: hidden; isolation: isolate;
}
.chip__t { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.chip__c { font-family: var(--mono); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.chip[data-dir="up"] .chip__c { color: var(--g-glow); }
.chip[data-dir="down"] .chip__c { color: var(--r-lift); }
.chip[data-heat="hot"] { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--g-glow) 40%, transparent), 0 0 26px -10px var(--g-glow); background: linear-gradient(180deg, color-mix(in oklab, var(--g-calm) 10%, var(--panel)), var(--panel)); }
.chip[data-heat="hot"] .chip__t { color: var(--g-text); }
.chip[data-heat="cold"] { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ice-1) 32%, transparent), 0 0 22px -12px var(--ice-1); background: linear-gradient(180deg, color-mix(in oklab, var(--ice-1) 8%, var(--frost-bg)), var(--panel)); }
.chip[data-heat="cold"] .chip__t { color: var(--ice-3); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.section-pad { padding: clamp(70px, 10vw, 130px) 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.sec-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---- How it works board ---- */
.board { display: grid; gap: 12px; max-width: 580px; margin-inline: auto; }
.board .hrow__main { grid-template-columns: 118px minmax(34px, 1fr) 74px 78px; gap: 12px; }
.board__foot { margin-top: 24px; color: var(--muted); font-size: 14.5px; text-align: center; max-width: 580px; margin-inline: auto; }
.board__foot b { color: var(--text); font-weight: 600; }
.tier-legend { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tier-legend .t {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 7px 12px; border-radius: 9px; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.tier-legend .sw { width: 12px; height: 12px; border-radius: 4px; }

/* ---- Rankings ---- */
.rank-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.leaderboard {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -50px #000;
  overflow: hidden;
}
.lb__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.lb__head h3 { font-size: 15px; letter-spacing: 0; }
.lb__head .season { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-glow); }
.lb__cols { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; padding: 11px 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.lb__row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 22px; border-top: 1px solid var(--line);
  transition: background .25s;
}
.lb__row:hover { background: color-mix(in oklab, var(--g-calm) 5%, transparent); }
.lb__rank { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--faint); }
.lb__row:nth-child(2) .lb__rank { color: var(--g-glow); }
.lb__trader { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb__ava { width: 30px; height: 30px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.lb__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__ret { font-family: var(--mono); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--g-glow); }
.lb__ret.neg { color: var(--r-lift); }
.lb__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 12px; }
.lb__bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--g-calm), var(--g-glow)); width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.lb__cta { padding: 18px 22px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.lb__cta small { color: var(--muted); font-size: 13px; }

/* ---- Feature grid ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  position: relative; padding: 26px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line); isolation: isolate;
  transition: transform .25s ease, box-shadow .3s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -36px #000; }
.feat__viz { height: 132px; margin: -4px -4px 20px; border-radius: 14px; overflow: hidden; position: relative; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.feat h3 { font-size: 20px; letter-spacing: -.02em; }
.feat p { margin: 9px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feat__ico { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---- Get notified ---- */
.notify { text-align: center; }
.notify__card {
  max-width: 620px; margin: 34px auto 0; padding: 8px;
  background: var(--panel); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2);
  display: flex; gap: 8px;
}
.notify__card input {
  flex: 1; height: 52px; padding: 0 18px; border: 0; outline: none;
  background: transparent; color: var(--text); font-family: var(--mono); font-size: 14.5px;
}
.notify__card input::placeholder { color: var(--faint); }
.notify__note { margin-top: 16px; font-size: 13px; color: var(--faint); font-family: var(--mono); letter-spacing: .04em; }
.notify__ok { margin-top: 16px; font-size: 14px; color: var(--g-glow); font-family: var(--mono); display: none; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer__top { display: flex; flex-direction: column; align-items: center; gap: 38px; text-align: center; }
.footer__brand { order: 2; max-width: 460px; text-align: center; margin-inline: auto; }
.footer__brand img { height: 100px; margin: 0 auto 16px; display: block; }
.footer__brand p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer__cols { order: 1; display: flex; gap: 64px; flex-wrap: wrap; justify-content: center; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 4px; }
.footer__col a { color: var(--muted); font-size: 14px; transition: color .16s; }
.footer__col a:hover { color: var(--g-glow); }
.footer__bar { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer__bar small { color: var(--faint); font-size: 13px; font-family: var(--mono); letter-spacing: .03em; }
.footer__bar .links { display: flex; gap: 24px; }
.footer__bar .links a { color: var(--faint); font-size: 13px; }
.footer__bar .links a:hover { color: var(--text); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .heroB__grid { grid-template-columns: 1fr; }
  .heroB__panel { order: -1; }
  .rank-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .wrap, .nav__in { width: 100% - 32px; }
  .notify__card { flex-direction: column; background: transparent; box-shadow: none; padding: 0; }
  .notify__card input { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; }
  .notify__card .btn { width: 100%; }
  .hero-cta { width: 100%; }
}
