/* ============================================================
   RUNEHOLM — dark futuristic command center design system
   ============================================================ */

/* Self-hosted fonts (no Google Fonts CDN — keeps visitor IPs off third-party servers,
   a known EU/GDPR requirement). Variable woff2, latin subset. */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2-variations'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var-latin.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-var-latin.woff2') format('woff2-variations'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg:        #06070d;
  --bg-2:      #090b13;
  --panel:     rgba(13, 17, 26, 0.72);
  --panel-2:   rgba(22, 27, 40, 0.82);
  --stroke:    rgba(120, 160, 220, 0.16);
  --stroke-2:  rgba(120, 160, 220, 0.28);

  /* Carbon Red — crimson primary → ember, grounded hardware heat. (var names kept for compatibility) */
  --cyan:   #e23744;
  --violet: #ff7a59;
  --amber:  #ffb347;

  --text:    #f2f0f1;
  --muted:   #c3b7ba;
  --muted-2: #9a8d90;

  --grad: linear-gradient(100deg, var(--cyan), var(--violet));
  --grad-soft: linear-gradient(100deg, rgba(226,55,68,.16), rgba(255,122,89,.16));

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.19, 1, .22, 1);
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  --glow-cyan: 0 0 30px rgba(226,55,68,.32);   /* ember glow (name kept for compatibility) */
  --ink: #1c0705;                              /* warm near-black for text on ember buttons */

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

/* scroll-padding keeps anchored sections (#features, #deals…) clear of the fixed nav
   instead of hiding underneath it when you jump to them. */
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

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

/* ---- WebGL canvas backdrop ---- */
.webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
/* Static fallback gradient poster of the "storage city" — shown when WebGL is unavailable or reduced-motion */
.webgl-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 70% 12%, rgba(255,122,89,.26), transparent 60%),
    radial-gradient(1000px 800px at 20% 30%, rgba(226,55,68,.24), transparent 55%),
    linear-gradient(180deg, #100a0c 0%, #06070d 60%);
}
.webgl-fallback::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background:
    repeating-linear-gradient(90deg, rgba(255,110,90,.10) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(0deg, rgba(226,55,68,.08) 0 2px, transparent 2px 40px);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  transform: perspective(600px) rotateX(62deg) scale(1.6);
  transform-origin: bottom;
}
body.no-webgl .webgl-fallback,
body.reduced-motion .webgl-fallback { opacity: 1; }

/* scroll veil — calms the 3D backdrop below the hero so all content stays legible */
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: var(--bg); opacity: 0;
}

/* film grain / scanline atmosphere */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* content sits above canvas */
.nav, main, .footer { position: relative; z-index: 2; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: .6em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  margin-top: .35em;
}
.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}
.footnote { color: var(--muted-2); font-size: .82rem; margin-top: 1.4rem; font-family: var(--font-mono); }
.pill {
  font-size: .58rem; letter-spacing: .18em; padding: .28em .6em; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--stroke-2); color: var(--text);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --pad: .85em 1.4em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; padding: var(--pad); border-radius: 12px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn--solid {
  background: var(--grad); color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(226,55,68,.5);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(226,55,68,.65); }
.btn--ghost {
  background: rgba(255,255,255,.02); color: var(--text);
  border-color: var(--stroke-2); backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* ============================================================
   Glass panels
   ============================================================ */
.glass {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(226,55,68,.5), transparent 40%, transparent 60%, rgba(255,122,89,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6; pointer-events: none;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,7,13,.72);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--stroke);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(226,55,68,.5)); }
.brand__name { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 1.05rem; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { position: relative; color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--text); }
/* active-section indicator (scrollspy) */
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after { transform: scaleX(1); }
.nav__cta { margin-left: .4rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: .3rem; padding: 1rem var(--gutter) 1.4rem;
  background: rgba(6,7,13,.96); border-bottom: 1px solid var(--stroke);
}
.mobile-menu a { color: var(--text); text-decoration: none; padding: .7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--stroke); }
.mobile-menu .btn { margin-top: .8rem; }
.mobile-menu.open { display: flex; }

/* ============================================================
   Hero
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 90px; position: relative; }
/* scrim: keeps hero text legible over the vibrant 3D city, sits above canvas, below text */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,7,13,.88) 0%, rgba(6,7,13,.6) 32%, rgba(6,7,13,.15) 58%, transparent 74%);
}
.hero__inner { max-width: 780px; position: relative; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.03em;
  margin-top: .5rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hero__sub { color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.22rem); margin-top: 1.4rem; max-width: 60ch; }
.hero__cta { display: flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }

.readout {
  margin-top: 2.6rem; max-width: 440px;
  font-family: var(--font-mono); font-size: .8rem;
  border: 1px solid var(--stroke); border-radius: 14px; padding: 1rem 1.1rem;
  background: rgba(8,11,20,.5); backdrop-filter: blur(8px);
}
.readout__row { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; color: var(--muted); }
.readout__k { color: var(--cyan); letter-spacing: .12em; }
.readout__v { color: var(--text); text-align: right; }
.readout__v em { color: var(--muted-2); font-style: normal; }
.readout__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); margin-top: .7rem; overflow: hidden; }
.readout__bar span { display: block; height: 100%; width: 42%; background: var(--grad); border-radius: 4px; animation: scanbar 3.4s var(--ease) infinite; }
@keyframes scanbar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted-2); text-decoration: none; font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .3em;
}
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); position: relative; }
.scroll-hint i::after { content: ""; position: absolute; top: 0; left: -1px; width: 3px; height: 8px; border-radius: 3px; background: var(--cyan); animation: dot 1.8s var(--ease) infinite; }
@keyframes dot { 0% { top: 0; opacity: 1; } 80% { top: 26px; opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   Section rhythm
   ============================================================ */
section { padding-block: clamp(44px, 6vw, 84px); }
.section-head { max-width: 720px; }

/* Problem stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.stat { padding: 1.6rem 1.4rem; border-radius: var(--radius); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { display: block; margin-top: .7rem; color: var(--muted); font-size: .92rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 3rem; }
.feature { padding: 2rem 1.9rem; border-radius: var(--radius-lg); transition: transform .4s var(--ease), border-color .4s var(--ease); }
.feature:hover { transform: translateY(-6px); }
.feature__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  color: var(--cyan); background: var(--grad-soft); border: 1px solid var(--stroke-2);
  box-shadow: inset 0 0 20px rgba(226,55,68,.12);
}
.feature h3 { font-family: var(--font-display); font-size: 1.3rem; margin-top: 1.2rem; font-weight: 600; }
.feature p { color: var(--muted); margin-top: .6rem; font-size: .98rem; }
.feature strong { color: var(--text); } .feature em { color: var(--cyan); font-style: normal; }

/* How */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; counter-reset: step; }
.step { padding: 2rem 1.8rem; border-radius: var(--radius-lg); }
.step__n { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--stroke-2); display: block; }
.step h3 { font-family: var(--font-display); font-size: 1.35rem; margin-top: .4rem; }
.step p { color: var(--muted); margin-top: .6rem; }

/* Deal Radar */
.deal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
.deal { border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.deal:hover { transform: translateY(-6px); }
.deal__art { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; overflow: hidden; }
.deal__mono { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: rgba(255,255,255,.92); letter-spacing: .04em; text-shadow: 0 2px 20px rgba(0,0,0,.4); z-index: 1; }
.deal__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,7,13,.85)); }
.deal__off { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: var(--font-mono); font-weight: 700; font-size: .82rem; background: var(--amber); color: #241500; padding: .25em .55em; border-radius: 8px; }
.deal__off--bundle { background: var(--cyan); color: var(--ink); }
/* opaque body → text contrast is guaranteed regardless of the 3D behind it (WCAG AA) */
.deal__body { display: flex; flex-direction: column; align-items: flex-start; padding: .95rem 1rem 1.1rem; background: #0b0e16; border: 1px solid var(--stroke); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); flex: 1; }
.deal__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); }
.deal__store { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); margin-top: .2rem; }
.deal__price { display: flex; align-items: baseline; gap: .5rem; margin-top: .6rem; }
.deal__now { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.deal__was { font-size: .82rem; color: var(--muted-2); text-decoration: line-through; }
.deal__free { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--cyan); }
.deal__match { margin-top: .7rem; display: inline-flex; align-items: center; gap: .4em; font-size: .72rem; font-family: var(--font-mono); color: var(--cyan); border: 1px solid var(--stroke-2); background: rgba(226,55,68,.06); border-radius: 999px; padding: .25em .6em; }
.deal__match.owned { color: var(--violet); background: rgba(255,122,89,.08); }
.deal__match.wish { color: var(--amber); background: rgba(255,179,71,.08); }

/* Communities */
.comm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
.comm { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 148px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem; text-decoration: none; color: var(--text); border: 1px solid var(--stroke); transition: transform .35s var(--ease); }
.comm:hover { transform: translateY(-6px) scale(1.01); }
.comm::before { content: ""; position: absolute; inset: 0; opacity: .9; z-index: 0; background: radial-gradient(120% 120% at 20% 0%, var(--c1, #e23744), var(--c2, #123)); }
.comm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,13,.1) 0%, rgba(6,7,13,.55) 55%, rgba(6,7,13,.9) 100%); z-index: 1; }
.comm > * { position: relative; z-index: 2; }
.comm__mono { position: absolute; top: 6px; right: 14px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: rgba(255,255,255,.16); letter-spacing: .02em; }
.comm__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.1; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.comm__meta { font-family: var(--font-mono); font-size: .7rem; color: #cdd6ea; margin-top: .35rem; letter-spacing: .04em; }
.comm__tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; padding: .25em .5em; border-radius: 6px; background: rgba(6,7,13,.72); border: 1px solid var(--stroke-2); color: #cdd6ea; }

/* Honesty */
.honesty__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; padding: clamp(2rem, 4vw, 3.4rem); border-radius: var(--radius-lg); align-items: center; }
.promise { list-style: none; display: grid; gap: .8rem; }
.promise li { display: flex; gap: .8rem; align-items: flex-start; color: var(--text); font-size: 1rem; }
.promise li span { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--grad-soft); border: 1px solid var(--stroke-2); color: var(--cyan); font-size: .8rem; }

/* Dev teaser */
.dev__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.dev__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; margin: .4rem 0 .8rem; }
.dev__inner .section-lead { margin-inline: auto; }
.dev code { font-family: var(--font-mono); background: rgba(226,55,68,.08); border: 1px solid var(--stroke); padding: .1em .4em; border-radius: 6px; color: var(--cyan); font-size: .9em; }

/* Footer */
.footer { border-top: 1px solid var(--stroke); padding-block: 3rem; background: rgba(6,7,13,.6); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 2rem; align-items: start; }
.footer__brand p { color: var(--muted); margin-top: .5rem; max-width: 42ch; font-size: .92rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: flex-end; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer__links a:hover { color: var(--text); }
.footer__legal { grid-column: 1 / -1; color: var(--muted-2); font-size: .78rem; border-top: 1px solid var(--stroke); padding-top: 1.4rem; max-width: 80ch; }

/* ============================================================
   What it is — clarity band
   ============================================================ */
.whatis { padding-block: clamp(30px, 5vw, 60px); }
.whatis__card { padding: clamp(1.6rem, 3.5vw, 2.6rem); border-radius: var(--radius-lg); }
.whatis__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(1.3rem, 2.7vw, 2rem); line-height: 1.25; margin-top: .5rem; max-width: 40ch;
}
.whatis__points { list-style: none; display: grid; gap: .55rem; margin-top: 1.4rem; }
.whatis__points li { color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.02rem); padding-left: 1.1rem; position: relative; }
.whatis__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }
.whatis__points strong { color: var(--text); font-family: var(--font-mono); font-size: .78em; letter-spacing: .08em; text-transform: uppercase; margin-right: .3em; }

/* ============================================================
   Storage chart — real data bars
   ============================================================ */
.storage__chart { margin-top: 2.8rem; }
.chart { display: grid; gap: .6rem; }
.bar { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 1rem; }
.bar__label { font-size: .92rem; color: var(--muted); text-align: right; }
.bar__track { position: relative; height: 30px; background: rgba(255,255,255,.04); border-radius: 8px; overflow: hidden; display: flex; align-items: center; }
.bar__fill {
  height: 100%; border-radius: 8px 4px 4px 8px; background: var(--c, var(--cyan));
  box-shadow: 0 0 18px -4px var(--c, var(--cyan)); transform-origin: left;
  animation: growbar 1.1s var(--ease) both;
}
@keyframes growbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar__val { position: absolute; right: 12px; font-family: var(--font-mono); font-weight: 700; font-size: .82rem; color: var(--text); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.chart__key { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.4rem; margin-top: 1.6rem; }
.chart__total { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.chart__total strong { color: var(--amber); }
.chart__note { color: var(--muted); font-size: .92rem; }
.chart__data { margin-top: 1rem; }
.chart__data summary { cursor: pointer; color: var(--cyan); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; }
.chart__data table { width: 100%; max-width: 520px; margin-top: 1rem; border-collapse: collapse; font-size: .9rem; }
.chart__data th, .chart__data td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--stroke); }
.chart__data thead th { color: var(--cyan); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.chart__data td:last-child, .chart__data th:last-child { text-align: right; font-family: var(--font-mono); }

/* ============================================================
   Communities — real link chips
   ============================================================ */
.comm { min-height: 172px; }
.comm__links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.comm__chip {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em;
  padding: .35em .6em; border-radius: 7px; text-decoration: none;
  background: rgba(6,7,13,.6); border: 1px solid var(--stroke-2); color: #eaf0ff;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.comm__chip:hover { border-color: #fff; transform: translateY(-2px); background: rgba(6,7,13,.85); }
.comm__chip--dc { color: #c7d2ff; border-color: rgba(120,140,255,.5); }
.comm:hover { transform: translateY(-6px); } /* keep lift; no scale so chips stay clickable */

/* ============================================================
   Comparison table
   ============================================================ */
.compare__wrap { margin-top: 2.8rem; overflow-x: auto; border-radius: var(--radius-lg); }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; background: rgba(11,14,22,.7); border: 1px solid var(--stroke); border-radius: var(--radius-lg); overflow: hidden; }
.compare__table th, .compare__table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
.compare__table thead th { font-family: var(--font-display); font-size: .92rem; letter-spacing: .02em; background: rgba(255,255,255,.03); position: sticky; top: 0; }
.compare__us { color: var(--cyan); }
.compare__them { color: var(--muted-2); }
.compare__table tbody th { font-weight: 500; color: var(--text); font-family: var(--font-body); font-size: .96rem; }
.compare__table tbody th em { color: var(--cyan); font-style: normal; }
.compare__table td.yes, .compare__table td.no { font-family: var(--font-mono); font-size: .84rem; white-space: nowrap; }
.compare__table td.yes { color: #d8fbff; }
.compare__table td.yes span[aria-hidden] { color: var(--cyan); font-weight: 700; margin-right: .3em; }
.compare__table td.no { color: var(--muted-2); }
.compare__table td.no span[aria-hidden] { color: #ff6b6b; font-weight: 700; margin-right: .3em; opacity: .8; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table tbody tr:hover td, .compare__table tbody tr:hover th { background: rgba(226,55,68,.04); }

/* ============================================================
   Pricing tiers
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 3rem; }
.tier { position: relative; padding: 2rem 1.9rem; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.tier--pro { border-color: var(--stroke-2); box-shadow: var(--shadow), 0 0 60px -30px var(--violet); }
.tier__badge { position: absolute; top: 1.4rem; right: 1.4rem; }
.tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tier__head h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.tier__price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.tier__price span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .68rem; color: var(--muted-2); letter-spacing: .04em; margin-top: .3rem; text-transform: uppercase; }
.tier__tag { color: var(--muted); margin-top: 1rem; font-size: .96rem; }
.tier__list { list-style: none; display: grid; gap: .7rem; margin: 1.4rem 0; }
.tier__list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-size: .96rem; }
.tier__list li span { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--grad-soft); border: 1px solid var(--stroke-2); color: var(--cyan); font-size: .74rem; }
.tier__cta { margin-top: auto; align-self: flex-start; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { margin-top: 2.6rem; display: grid; gap: .7rem; max-width: 820px; }
.faq__item { border: 1px solid var(--stroke); border-radius: var(--radius); background: rgba(11,14,22,.55); overflow: hidden; }
.faq__item[open] { border-color: var(--stroke-2); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--font-display);
  font-weight: 500; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-mono); color: var(--cyan); font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .98rem; }
.faq__a p { max-width: 68ch; }

/* ============================================================
   Reveal animations
   ============================================================ */
/* Scroll reveals are scoped to .js (set by js/js-flag.js before first paint). Without
   JavaScript there is no IntersectionObserver to add .in, so an unscoped opacity:0
   would leave every section below the hero permanently invisible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .stats, .deal-grid, .comm-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .honesty__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .tiers { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 160px 1fr; gap: .8rem; }
  .bar__label { font-size: .84rem; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  /* full-width mobile text needs an all-over scrim, not just a left gradient */
  .hero::before {
    background:
      linear-gradient(180deg, rgba(6,7,13,.5) 0%, rgba(6,7,13,.35) 45%, rgba(6,7,13,.75) 100%),
      linear-gradient(90deg, rgba(6,7,13,.7), rgba(6,7,13,.35));
  }
  .hero { padding-top: 80px; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .hero__cta { gap: .7rem; }
  .hero__cta .btn { flex: 1 1 auto; text-align: center; }
  .readout { max-width: 100%; }
  section { padding-block: clamp(56px, 14vw, 90px); }
  .honesty__inner { gap: 1.6rem; }
  /* storage bars: label above the track so long game names never crush the bar */
  .bar { grid-template-columns: 1fr; gap: .25rem; }
  .bar__label { text-align: left; font-size: .82rem; color: var(--text); }
  .bar__track { height: 26px; }
  .whatis__title { font-size: clamp(1.2rem, 5.2vw, 1.6rem); }
}
@media (max-width: 480px) {
  .stats, .deal-grid, .comm-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .readout { font-size: .72rem; }
  .deal__mono { font-size: 1.7rem; }
  .comm { min-height: 120px; }
  .section-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .readout__bar span, .scroll-hint i::after { animation: none; }
  .bar__fill { animation: none; }
  .faq__item summary::after { transition: none; }
  .btn, .feature, .step, .deal, .comm, .comm__chip, .tier { transition: none; }
}

/* ============================================================
   Vibrancy pass — mirrors the desktop app's colour-coded cards
   (added 2026-07-15). Enhances existing markup, no HTML changes.
   ============================================================ */
/* colour-coded feature pillars */
.feature { position: relative; overflow: hidden; border-top: 2px solid transparent; }
.feature::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--faccent, var(--grad)); opacity: .95; }
.feature:nth-child(1) { --faccent: linear-gradient(90deg, #e23744, #ff7a59); --ftint: #e23744; --fglow: rgba(226,55,68,.5); }
.feature:nth-child(2) { --faccent: linear-gradient(90deg, #ff7a59, #ffb347); --ftint: #ff7a59; --fglow: rgba(255,122,89,.5); }
.feature:nth-child(3) { --faccent: linear-gradient(90deg, #ffb347, #ffd24c); --ftint: #ffb347; --fglow: rgba(255,179,71,.5); }
.feature:nth-child(4) { --faccent: linear-gradient(90deg, #4fb6e6, #8e86ff); --ftint: #4fb6e6; --fglow: rgba(79,182,230,.5); }
.feature::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8; background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--ftint) 16%, transparent), transparent 55%); }
.feature > * { position: relative; z-index: 1; }
.feature__icon { color: var(--ftint) !important; background: color-mix(in srgb, var(--ftint) 12%, transparent) !important; border-color: color-mix(in srgb, var(--ftint) 42%, transparent) !important; box-shadow: 0 0 26px -8px var(--fglow) !important; }
.feature:hover { border-color: var(--ftint); box-shadow: var(--shadow), 0 0 40px -22px var(--fglow); }
.feature h3 { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--ftint) 55%, #ffffff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* pricing tiers — brighter, ember-charged price + accent bar */
.tier { overflow: hidden; }
.tier::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #4fb6e6, #8e86ff); opacity: .85; }
.tier--pro::after { background: linear-gradient(90deg, #e23744, #ff7a59, #ffb347); }
.tier__price { background: linear-gradient(120deg, #fff, #ffd9b0 55%, #ff8a3d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tier--pro { box-shadow: var(--shadow), 0 0 70px -30px rgba(226,55,68,.55); }
.tier--pro:hover { box-shadow: var(--shadow), 0 0 60px -22px rgba(226,55,68,.7); transform: translateY(-4px); }
.tier { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tier__list li span { background: color-mix(in srgb, var(--cyan) 16%, transparent); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); color: #ff8f7a; box-shadow: 0 0 14px -5px rgba(226,55,68,.6); }

/* section titles get a subtle ember underline accent */
.section-title { position: relative; }
.eyebrow { color: #ff9a5a; }

/* nav download CTA gets the ember glow so it reads as the primary action */
.nav__cta.btn--solid { box-shadow: 0 10px 30px -14px rgba(226,55,68,.75); }

/* ---- real Steam cover art on deal + community cards (with monogram fallback) ---- */
.deal__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.deal--hasart .deal__mono { display: none; }
.deal--hasart .deal__art::after { background: linear-gradient(180deg, transparent 46%, rgba(6,7,13,.78)); }
.comm__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .9; }
.comm { isolation: isolate; }
.comm::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,7,13,.15), rgba(6,7,13,.72) 60%, rgba(6,7,13,.95)); }
.comm--hasart::before { background: linear-gradient(180deg, rgba(6,7,13,.08), rgba(6,7,13,.6) 55%, rgba(6,7,13,.96)); }
.comm > :not(.comm__bg) { position: relative; z-index: 2; }
.comm:not(.comm--hasart)::before { background: linear-gradient(150deg, var(--c1), var(--c2)); opacity: .5; }
.comm--hasart .comm__mono { display: none; }

/* ---- privacy notice bar (informational; no consent gate — we set no tracking cookies) ---- */
.privacy-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 200; width: min(940px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--stroke-2); border-radius: 14px; background: rgba(11,13,20,.92); backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 24px 60px -30px rgba(0,0,0,.85); }
.privacy-bar p { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: 0; }
.privacy-bar strong { color: var(--text); }
.privacy-bar a { color: var(--cyan); }
.privacy-bar .btn { flex: none; }
.privacy-bar[hidden] { display: none; }
@media (max-width: 620px) { .privacy-bar { flex-direction: column; align-items: stretch; text-align: left; } }

/* ---- vibrant "Scan · Map · Reclaim" steps (colour-coded, ember-charged numbers) ---- */
.step { position: relative; overflow: hidden; border-top: 2px solid transparent; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.step::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--saccent); }
.step:nth-child(1) { --saccent: linear-gradient(90deg, #e23744, #ff7a59); --stint: #e23744; --sglow: rgba(226,55,68,.5); }
.step:nth-child(2) { --saccent: linear-gradient(90deg, #ff9a3d, #ffd24c); --stint: #ff9a3d; --sglow: rgba(255,154,61,.5); }
.step:nth-child(3) { --saccent: linear-gradient(90deg, #4fb6e6, #8e86ff); --stint: #4fb6e6; --sglow: rgba(79,182,230,.5); }
.step::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .85; background: radial-gradient(130% 80% at 0% 0%, color-mix(in srgb, var(--stint) 15%, transparent), transparent 55%); }
.step > * { position: relative; z-index: 1; }
.step__n { color: var(--stint); -webkit-text-stroke: 0; background: linear-gradient(180deg, var(--stint), color-mix(in srgb, var(--stint) 40%, #ffffff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 0 16px var(--sglow)); }
.step h3 { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--stint) 45%, #ffffff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step:hover { transform: translateY(-5px); border-color: var(--stint); box-shadow: var(--shadow), 0 0 40px -22px var(--sglow); }

/* ---- deals header + shuffle button ---- */
.deals__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.deals__refresh { flex: none; }

/* consent banner action buttons (Accept / Decline — equal prominence per EU ePrivacy) */
.consent-actions { display: flex; gap: 10px; flex: none; align-items: center; }
.consent-actions .btn { padding: .6em 1.2em; }
@media (max-width: 620px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }
