/* PlayTrace landing — calm, professional, product-first. */
:root {
  --bg: #07090d;
  --bg-alt: #0b0e14;
  --panel: #0f141b;
  --panel-2: #151b24;
  --border: #1c232e;
  --border-2: #29323f;
  --text: #eef2f7;
  --text-2: #c3cdd9;
  --muted: #8593a6;
  --green: #22c55e;
  --green-2: #4ade80;
  --green-3: #a7f3c4;
  --green-soft: rgba(34, 197, 94, .12);
  --blue: #5b9cf6;
  --amber: #f5b921;
  --red: #f0565e;
  --radius: 16px;
  --max: 1160px;
  --nav: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
::selection { background: rgba(34,197,94,.35); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.1; letter-spacing: -0.028em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.042em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.035em; }
h3 { font-size: 19px; letter-spacing: -0.015em; }
h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap, .wrap > * { min-width: 0; }
section { position: relative; padding: 112px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 18px; margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); margin-bottom: 16px;
}
.lead { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.65; color: var(--muted); max-width: 600px; text-wrap: pretty; }
.lead b { color: var(--text); }
a.inline { color: var(--green-2); text-decoration: underline; text-decoration-color: rgba(74,222,128,.4); text-underline-offset: 3px; }
a.inline:hover { text-decoration-color: currentColor; }
.fine { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.badge { font-size: 12px; font-weight: 600; color: var(--green-2); background: var(--green-soft); border: 1px solid rgba(34,197,94,.22); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 10px; }
.btn.big { padding: 15px 26px; font-size: 16px; border-radius: 12px; }
.btn.primary { background: var(--green); color: #03220e; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.btn.primary:hover { background: #2fd26a; }
.btn.ghost { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,.025); }
.btn.ghost:hover { border-color: #3b4757; background: rgba(255,255,255,.05); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Cards */
.card {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 18px; }
.card-head .muted, .card-head .mono { font-weight: 500; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; height: var(--nav);
  background: rgba(7,9,13,.6); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled { background: rgba(7,9,13,.85); border-bottom-color: var(--border); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 8px; transition: color .15s ease, background .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.login { display: none; }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-cta .login { color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.nav-cta .login:hover { color: var(--text); }
.nav .btn.primary { padding: 9px 18px; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(34,197,94,.5); }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: 10px; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero: full-bleed gameplay, game-site style ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(var(--nav) * -1); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav) + 32px) 0 32px; background: #000; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 7s linear; }
.hero-media img.on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,9,13,.92) 0%, rgba(7,9,13,.7) 38%, rgba(7,9,13,.1) 70%),
    linear-gradient(180deg, rgba(7,9,13,.7) 0%, transparent 22%, transparent 55%, var(--bg) 100%); }
.hero > .wrap { width: 100%; }
.hero-inner { width: 100%; flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.hero-copy { max-width: 860px; }
.hero-kicker { display: inline-block; margin: 0 0 18px; padding: 6px 12px; background: var(--green); color: #03220e; font: 800 italic 15px/1 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-right: 18px; }
.hero h1 { font-family: "Barlow Condensed", "Inter", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(52px, min(7vw, 11.5vh), 112px); line-height: .9; letter-spacing: -0.01em; margin: 0 0 24px; text-shadow: 0 4px 40px rgba(0,0,0,.5); }
.hero h1 span { display: block; color: var(--green-2); }
.hero .lead { color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 540px; margin: 0; }
.hero .cta { margin-top: 32px; }
.hero .btn.big { border-radius: 0; padding: 17px 30px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.hero .btn.primary { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.hero .btn.ghost { background: rgba(7,9,13,.45); border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .btn.ghost:hover { border-color: #fff; background: rgba(7,9,13,.6); }

.hero-app { flex: none; width: 300px; background: #0b0f14; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0,0,0,.85); }
.app-bar { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #11161d; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.app-bar img { width: 14px; height: 14px; }
.app-bar i { flex: 1; }
.app-bar b { font-weight: 400; font-size: 10px; padding: 0 5px; }
.app-body { padding: 26px 22px 22px; text-align: center; background: radial-gradient(260px 140px at 50% 0%, rgba(34,197,94,.1), transparent 70%); }
.app-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff9da1; }
.app-timer { margin: 6px 0 10px; font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.app-game { display: inline-block; padding: 5px 12px; border: 1px solid var(--border-2); border-radius: 8px; background: #121821; font-size: 13px; color: var(--text-2); }
.app-meta { margin-top: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-earn { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 16px; padding: 12px 14px; border: 1px solid rgba(34,197,94,.25); border-radius: 10px; background: rgba(34,197,94,.07); text-align: left; }
.app-earn span { font-size: 12px; color: var(--text-2); }
.app-earn b { font-size: 20px; font-weight: 800; color: var(--green-2); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.app-earn small { font-size: 11px; font-weight: 600; color: var(--muted); }
.app-stop { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 10px; background: linear-gradient(180deg, #f26d72, #dc2d33); color: #fff; font-size: 15px; font-weight: 600; }
.app-stop i { width: 12px; height: 12px; border-radius: 2px; background: #fff; }
.app-foot { padding: 9px 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); text-align: center; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.hero-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 5vh, 48px); }
.hero-rail button { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; text-align: left; cursor: pointer; color: var(--text); font: inherit; background: rgba(7,9,13,.6); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; transition: border-color .2s ease, background .2s ease; }
.hero-rail button:hover { border-color: rgba(255,255,255,.3); }
.hero-rail button[aria-selected="true"] { border-color: rgba(74,222,128,.55); background: rgba(7,9,13,.8); }
.hero-rail img { width: 84px; height: 48px; object-fit: cover; flex: none; filter: saturate(.7) brightness(.75); transition: filter .2s ease; }
.hero-rail button[aria-selected="true"] img, .hero-rail button:hover img { filter: none; }
.hero-rail span { font-size: 13px; color: var(--muted); line-height: 1.3; min-width: 0; }
.hero-rail b { display: block; font: 700 17px/1.1 "Barlow Condensed", "Inter", sans-serif; text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.hero-rail i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green-2); }
.hero-rail button[aria-selected="true"] i { width: 100%; }
.hero.auto .hero-rail button[aria-selected="true"] i { animation: rail 6s linear; }
@keyframes rail { from { width: 0; } to { width: 100%; } }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease; }
.step .frame {
  position: relative; height: 280px; overflow: hidden; padding: 28px 32px 0; border-bottom: 1px solid var(--border);
  background: radial-gradient(260px 160px at 50% 100%, rgba(34,197,94,.14), transparent 70%), linear-gradient(180deg, #121821, #0d1218);
}
.step .frame img {
  width: 100%; height: auto; border-radius: 10px 10px 0 0; border: 1px solid var(--border-2); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.35); transition: transform .5s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%); mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
}
.step:hover .frame img { transform: translateY(-6px); }
.step-body { padding: 24px 26px 28px; }
.step .num { display: inline-block; font: 600 12px/1 "JetBrains Mono", monospace; color: var(--green-2); letter-spacing: .06em; margin-bottom: 12px; padding: 5px 8px; border-radius: 6px; background: var(--green-soft); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }


/* ---------- Earnings ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.two-col.center-y { align-items: center; }
.stack-bar { display: flex; gap: 3px; height: 12px; }
.stack-bar i { display: block; height: 100%; border-radius: 3px; }
.live { background: var(--green); } .menu { background: var(--blue); } .idle { background: var(--amber); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend b { color: var(--text); }
.payout { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-2); font-size: 14px; color: var(--muted); }
.payout b { color: var(--text); }
.payout .amt { color: var(--green-2); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.payout .amt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.rules { list-style: none; padding: 0; margin: 20px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rules li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; font-size: 14.5px; }
.rules li + li { border-top: 1px solid var(--border); }
.rules li div { flex: 1; display: flex; flex-direction: column; }
.rules li b { color: var(--text); font-weight: 600; }
.rules li span { color: var(--muted); font-size: 13px; }
.rules li em { font: 600 13px/1 "JetBrains Mono", monospace; font-style: normal; }
.rules .ok em { color: var(--green-2); } .rules .part em { color: var(--blue); } .rules .no em { color: var(--red); }
.rules li i { flex: none; width: 26px; height: 26px; border-radius: 8px; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.rules .ok i { background-color: var(--green-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.rules .part i { background-color: rgba(91,156,246,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b9cf6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.rules .no i { background-color: rgba(240,86,94,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0565e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

.calc { position: sticky; top: calc(var(--nav) + 24px); padding: 28px; border-color: rgba(34,197,94,.22); background: radial-gradient(420px 220px at 100% 0%, rgba(34,197,94,.1), transparent 70%), var(--panel); }
.calc label { display: block; margin-top: 22px; cursor: pointer; }
.calc .lbl { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.calc output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc input[type=range] { --p: 25%; width: 100%; height: 6px; border-radius: 3px; appearance: none; -webkit-appearance: none; background: linear-gradient(to right, var(--green) var(--p), var(--panel-2) var(--p)); outline-offset: 6px; margin: 0; cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--green); cursor: grab; box-shadow: 0 0 0 5px rgba(34,197,94,.15), 0 2px 8px rgba(0,0,0,.4); transition: box-shadow .15s ease; }
.calc input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(34,197,94,.2), 0 2px 8px rgba(0,0,0,.4); }
.calc input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid var(--green); cursor: grab; box-shadow: 0 0 0 5px rgba(34,197,94,.15); }
.calc-hero { margin-top: 30px; padding: 22px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.calc-hero span { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.calc-hero b { font-size: clamp(40px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; color: var(--green-2); font-variant-numeric: tabular-nums; }
.calc-hero small { font-size: 13px; font-weight: 600; color: var(--muted); }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.calc-out div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.calc-out span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.calc-out b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- Labs ---------- */
.specs { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.specs > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--border); }
.specs > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--border); }
.specs dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 14.5px; color: var(--text-2); }
.dataset { padding: 0; overflow: hidden; font-size: 13px; line-height: 1.7; }
.ds-bar { display: flex; align-items: center; gap: 7px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: #0c1016; }
.ds-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.ds-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dataset .tree { padding: 18px 22px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow-x: auto; color: var(--text-2); }
.dataset .dir { color: var(--green-2); font-weight: 500; }
.dataset .c { color: #5d6b7e; }
.ticker-wrap { background: #0a0d12; }
.ticker-head { display: flex; align-items: center; gap: 8px; padding: 10px 22px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.live-tag { margin-left: auto; font-size: 11px; color: #5d6b7e; }
.ticker { padding: 14px 22px 16px; overflow-x: auto; }
.ticker .lines { color: var(--text-2); white-space: nowrap; }
.ticker .lines div { line-height: 22px; }
.ticker .t { color: #5d6b7e; margin-right: 6px; }

/* ---------- Token ---------- */
/* Ecosystem loop infographic: nodes sit on a stadium-shaped track drawn in SVG (viewBox 1000×460). */
.eco {
  position: relative; margin: 0 0 40px; aspect-ratio: 1000 / 460;
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(34,197,94,.07), transparent 70%), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.eco-track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-track .lane { fill: none; stroke-width: 10; stroke-linecap: round; opacity: .22; }
.eco-track .flowline { fill: none; stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; animation: ecoDash 1.4s linear infinite; vector-effect: non-scaling-stroke; }
.eco-track .flowline.top { stroke: var(--green-2); }
.eco-track .flowline.bot { stroke: var(--amber); }
.eco-track .pk.top { fill: var(--green-2); filter: drop-shadow(0 0 6px rgba(74,222,128,.9)); }
.eco-track .pk.bot { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(245,185,33,.9)); }
@keyframes ecoDash { to { stroke-dashoffset: -14; } }

.eco-node, .eco-edge, .eco-hub { position: absolute; transform: translate(-50%, -50%); }
.eco-node {
  width: 206px; padding: 16px 16px 15px; border-radius: 14px; text-align: center; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 60%), var(--panel-2);
  border: 1px solid var(--border-2); box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), border-color .25s ease;
}
.eco-node:hover { transform: translate(-50%, -50%) translateY(-3px); border-color: #3b4757; }
.eco-node strong { display: block; font-size: 16px; letter-spacing: -0.01em; margin: 10px 0 4px; }
.eco-node > span:last-child { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }
.eco-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.eco-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.n-players { left: 12%; top: 50%; }
.n-verify { left: 50%; top: 19.6%; }
.n-labs { left: 88%; top: 50%; }
.n-buyback { left: 50%; top: 80.4%; }
.n-players .eco-ico, .n-verify .eco-ico { color: var(--green-2); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(34,197,94,.25); }
.n-labs .eco-ico { color: var(--blue); background: rgba(91,156,246,.12); box-shadow: inset 0 0 0 1px rgba(91,156,246,.28); }
.n-buyback .eco-ico { color: var(--amber); background: rgba(245,185,33,.12); box-shadow: inset 0 0 0 1px rgba(245,185,33,.28); }

.eco-edge { width: 170px; font-size: 12.5px; line-height: 1.4; color: var(--muted); text-align: center; z-index: 1; }
.eco-edge b { display: block; font: 600 13px/1.3 "JetBrains Mono", monospace; letter-spacing: -0.01em; margin-bottom: 2px; }
.eco-edge.top b { color: var(--green-2); }
.eco-edge.bot b { color: var(--amber); }
.e1 { left: 28%; top: 35%; }
.e2 { left: 72%; top: 35%; }
.e3 { left: 72%; top: 65%; }
.e4 { left: 28%; top: 65%; }

.eco-hub {
  left: 50%; top: 50%; width: 160px; height: 160px; border-radius: 50%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(34,197,94,.16), rgba(15,20,27,.95) 70%);
  border: 1px solid rgba(34,197,94,.3); box-shadow: 0 0 0 10px rgba(34,197,94,.04), 0 0 60px rgba(34,197,94,.12);
}
.eco-hub::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed rgba(34,197,94,.28); animation: ecoSpin 40s linear infinite; }
@keyframes ecoSpin { to { transform: rotate(360deg); } }
.eco-hub img { width: 44px; height: 44px; margin-bottom: 4px; }
.eco-hub strong { font-size: 20px; letter-spacing: -0.02em; }
.eco-hub .mono { font-size: 11.5px; color: var(--muted); }

.eco-legend { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.eco-legend span { display: inline-flex; align-items: center; gap: 8px; }
.eco-legend i { width: 18px; height: 3px; border-radius: 2px; }
.eco-legend i.top { background: var(--green-2); }
.eco-legend i.bot { background: var(--amber); }

.flywheel { padding: 28px; }
.fly { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: fly; }
.fly li { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 14px 16px 14px 48px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; counter-increment: fly; }
.fly li::before { content: counter(fly, decimal-leading-zero); position: absolute; left: 16px; top: 15px; font: 500 12px/1.4 "JetBrains Mono", monospace; color: var(--green-2); }
.fly li:not(:last-child)::after { content: ""; position: absolute; left: 24px; bottom: -11px; width: 1px; height: 10px; background: var(--border-2); }
.fly b { flex: none; font-size: 15px; }
.fly span { font-size: 14px; color: var(--muted); }

/* Narrow screens: the loop becomes a vertical chain, edges become arrows between nodes. */
@media (max-width: 1080px) {
  .eco { aspect-ratio: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 20px 16px 18px; }
  .eco-track { display: none; }
  .eco-node, .eco-edge, .eco-hub { position: relative; left: auto; top: auto; transform: none; }
  .eco-node:hover { transform: none; }
  .eco-node { width: auto; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; text-align: left; align-items: center; padding: 14px; }
  .eco-node .eco-ico { grid-row: span 2; }
  .eco-node strong { margin: 0; }
  .eco-edge { width: auto; margin: 0 0 0 33px; padding: 10px 0 10px 24px; text-align: left; border-left: 2px dashed var(--border-2); }
  .eco-edge.top { border-left-color: rgba(74,222,128,.45); }
  .eco-edge.bot { border-left-color: rgba(245,185,33,.5); }
  .eco-edge b { display: inline; margin-right: 4px; }
  .eco-edge.e4::after { content: "↺ back to players"; display: block; margin-top: 2px; font-size: 12px; color: var(--amber); }
  .eco-hub { order: -1; width: auto; height: auto; border-radius: 14px; flex-direction: row; gap: 12px; justify-content: flex-start; padding: 12px 14px; margin-bottom: 16px; }
  .eco-hub::after { display: none; }
  .eco-hub img { width: 32px; height: 32px; margin: 0; }
  .eco-hub .mono { font-size: 12px; }
  .eco-hub .mono:first-of-type { margin-left: auto; }
  .eco-legend { position: static; order: 99; margin-top: 16px; flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 560px) {
  .fly li { flex-direction: column; gap: 2px; }
  .flywheel { padding: 22px; }
}
@media (max-width: 420px) {
  .eco-hub .mono:last-of-type { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-track .flowline, .eco-hub::after { animation: none; }
  .eco-track .packets { display: none; }
}

.loop-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: stretch; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.flow li { background: var(--panel); padding: 26px 26px 28px; display: flex; flex-direction: column; }
.flow b { font: 500 12px/1 "JetBrains Mono", monospace; color: var(--green-2); margin-bottom: 40px; }
.flow strong { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.flow span { font-size: 14px; color: var(--muted); }
.supply { padding: 28px; }
.supply-total { font-size: clamp(30px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.supply-sub { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.supply-bar { display: flex; gap: 3px; height: 12px; }
.supply-bar i { display: block; height: 100%; border-radius: 3px; }
.players { background: var(--green); } .sale { background: var(--amber); }
.supply-legend { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.supply-legend li { display: flex; gap: 12px; align-items: flex-start; }
.supply-legend i { flex: none; width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; }
.supply-legend b { display: block; font-size: 14px; }
.supply-legend span { font-size: 13px; color: var(--muted); }
.fine.warn { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Roadmap ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; right: 0; top: 7px; height: 2px; background: linear-gradient(to right, var(--green) 0, var(--green) 16%, var(--border-2) 16%); }
.tl { position: relative; padding-top: 40px; }
.tl .dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-2); }
.tl.now .dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 6px rgba(34,197,94,.15), 0 0 20px rgba(34,197,94,.5); }
.tl .when { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tl .tag { background: var(--green); color: #03220e; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; letter-spacing: .08em; }
.tl h3 { font-size: 22px; margin-bottom: 14px; }
.tl ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 14.5px; display: grid; gap: 8px; }
.tl li { position: relative; padding-left: 18px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--border-2); }
.tl.now li::before { background: var(--green); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav) + 32px); }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary { list-style: none; cursor: pointer; padding: 22px 4px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 18px; transition: color .15s ease; }
summary:hover { color: var(--green-3); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238593a6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease;
}
details[open] summary::after { transform: rotate(45deg); background-color: var(--green-soft); border-color: rgba(34,197,94,.3); }
details .a { color: var(--muted); font-size: 15.5px; padding: 0 60px 24px 4px; animation: fadeDown .3s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- CTA + footer ---------- */
.cta-band { padding: 112px 0; }
.cta-box {
  position: relative; overflow: hidden; text-align: center; padding: 80px 28px; border-radius: 24px; border: 1px solid var(--border-2);
  background: radial-gradient(700px 360px at 50% 0%, rgba(34,197,94,.1), transparent 70%), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.cta-box > * { position: relative; }
.cta-box h2 { max-width: 16ch; margin: 0 auto 16px; font-size: clamp(32px, 4.4vw, 54px); }
.cta-box .lead { margin: 0 auto; }
.cta-box .cta { justify-content: center; }
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; font-size: 14px; background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
footer p { margin-top: 14px; max-width: 300px; }
.foot-brand p { color: var(--muted); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer li a { color: var(--muted); transition: color .15s ease; }
footer li a:hover { color: var(--text); }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); transition: color .15s ease, border-color .15s ease; }
.foot-social a:hover { color: var(--text); border-color: var(--text); }
.disclaimer { color: #6b7889; font-size: 12.5px; max-width: none; border-top: 1px solid var(--border); padding-top: 24px; margin: 0; line-height: 1.7; }
.disclaimer a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.2); }

/* ---------- Whitepaper: research-paper layout ---------- */
.check { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; }
.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.paper-page { --ink: #1a1c20; --ink-2: #3b3f47; --ink-3: #6b707a; --rule: #d9d5ca; --sheet: #faf8f3; --accent: #15803d; }
.paper-layout { display: grid; grid-template-columns: 210px minmax(0, 820px); gap: 48px; justify-content: center; padding-top: 48px; padding-bottom: 32px; }
.toc { position: sticky; top: calc(var(--nav) + 28px); align-self: start; }
.toc-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc ol a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; color: var(--muted); transition: color .15s ease, border-color .15s ease; }
.toc ol a:hover { color: var(--text); }
.toc ol a.active { color: var(--green-2); border-left-color: var(--green); }
.toc-cta { margin-top: 24px; width: 100%; font-size: 14px; }

/* The sheet */
.paper {
  min-width: 0; background: var(--sheet); color: var(--ink); border-radius: 6px;
  padding: 72px 80px 64px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.7;
  font-feature-settings: "kern", "liga", "onum"; font-optical-sizing: auto;
}
.paper ::selection { background: rgba(21,128,61,.2); color: inherit; }
.paper a { color: var(--accent); }
.paper a:hover { text-decoration: underline; text-underline-offset: 2px; }
.paper section { padding: 0; margin: 0 0 44px; background: none; border: 0; }
.paper h1, .paper h2, .paper h3 { font-family: inherit; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.paper-head { text-align: center; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin: -24px 0 44px; border-bottom: 2px solid var(--ink); font: 600 11.5px/1.3 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mast-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.mast-brand img { width: 20px; height: 20px; }
.paper-head h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; margin: 0 auto 16px; max-width: 22ch; }
.paper-sub { font-size: 19px; font-style: italic; color: var(--ink-2); max-width: 32em; margin: 0 auto 24px; line-height: 1.5; }
.paper-authors { margin: 0; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.paper-authors .author { font-size: 17px; font-weight: 600; color: var(--ink); }
.paper-authors .affil { font-size: 14.5px; font-style: italic; color: var(--ink-3); }
.paper-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.paper-meta > div { padding: 12px 8px; }
.paper-meta > div + div { border-left: 1px solid var(--rule); }
.paper-meta dt { font: 600 10.5px/1.3 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.paper-meta dd { margin: 0; font-size: 15.5px; color: var(--ink); }
.paper-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; cursor: pointer;
  font: 600 14px/1 "Inter", sans-serif; color: var(--ink); background: transparent; border: 1px solid #c9c4b6;
  transition: border-color .15s ease, background .15s ease;
}
.link-btn:hover { border-color: var(--ink); background: rgba(0,0,0,.03); }
.paper h2 { font-size: 23px; font-weight: 700; margin: 0 0 14px; display: flex; gap: 14px; align-items: baseline; }
.paper h2 .sn { color: var(--accent); font-variant-numeric: lining-nums; min-width: 14px; }
.paper h3 { font-size: 18.5px; font-weight: 600; font-style: italic; margin: 26px 0 8px; }
.paper p { margin: 0 0 14px; color: var(--ink); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.paper b, .paper strong { font-weight: 600; }
.paper .abstract { background: #f1eee5; border-left: 3px solid var(--accent); padding: 26px 30px !important; border-radius: 0 4px 4px 0; }
.abstract h2 { font-size: 13px; font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 12px; }
.abstract p { font-size: 17px; }
.keywords { font-size: 15px !important; color: var(--ink-2) !important; margin: 14px 0 0 !important; text-align: left !important; }
.contrib, .rules-list, .refs ol { margin: 6px 0 16px; padding-left: 26px; }
.contrib li, .rules-list li { margin-bottom: 8px; padding-left: 4px; }
.rules-list { list-style: square; }
.rules-list li::marker { color: var(--accent); }
.contrib li::marker { color: var(--accent); font-weight: 600; }

/* Figures and tables */
.paper figure { margin: 26px 0 28px; }
.paper figcaption { font-family: "Inter", sans-serif; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; }
.paper figcaption b { color: var(--ink); }
.code-fig figcaption, .diagram-fig figcaption { margin: 10px 0 0; text-align: center; }
.table-fig { overflow-x: auto; }
.paper table { width: 100%; border-collapse: collapse; font-family: "Inter", sans-serif; font-size: 14.5px; line-height: 1.45; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.paper th { text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.paper td { padding: 9px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.paper tr:last-child td { border-bottom: 0; }
.paper .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paper tr.hl td { background: rgba(21,128,61,.08); color: var(--ink); font-weight: 500; }
.paper .now { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.code-fig pre { margin: 0; padding: 20px 22px; background: #0f141b; color: #c3cdd9; border-radius: 6px; overflow-x: auto; font: 13.5px/1.7 "JetBrains Mono", monospace; }
.code-fig .c { color: #5d6b7e; }
.eq { display: flex; justify-content: center; align-items: baseline; position: relative; margin: 18px 0; font-size: 20px; font-family: "Source Serif 4", serif; }
.eq .eqn { position: absolute; right: 0; font-size: 16px; color: var(--ink-3); }
.diagram-fig svg { width: 100%; height: auto; color: var(--accent); }
.paper .paper-head p { text-align: center; }
.diagram-fig .box rect { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.diagram-fig .box text { font: 600 15px "Inter", sans-serif; fill: var(--ink); text-anchor: middle; }
.diagram-fig .box text.s { font-weight: 400; font-size: 12.5px; fill: var(--ink-3); }
.diagram-fig .arrow { color: var(--accent); }
.diagram-fig .arrow path { stroke: currentColor; stroke-width: 1.8; fill: none; }
.paper .refs { border-top: 1px solid var(--rule); padding-top: 28px !important; margin-bottom: 0 !important; }
.refs h2 { font-size: 19px; }
.refs ol { font-size: 15px; line-height: 1.6; color: var(--ink-2); padding-left: 30px; }
.refs li { margin-bottom: 8px; padding-left: 4px; scroll-margin-top: calc(var(--nav) + 40px); }
.refs li:target { background: rgba(21,128,61,.1); }
.paper-cta { padding-top: 64px; }
.toc-cta + .toc-cta { margin-top: 10px; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px;
  font: 600 14px/1 "Inter", sans-serif; color: #fff !important; background: var(--ink); text-decoration: none !important;
  transition: background .15s ease, transform .15s ease;
}
.pdf-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* Print / PDF: just the paper, on white A4 */
@page { size: A4; margin: 18mm 17mm 20mm; }
@media print {
  :root { color-scheme: light; }
  html, body, .paper-page { background: #fff !important; color: #1a1c20; }
  .paper-head { margin-top: 0; }
  .paper .abstract { padding: 14pt 16pt !important; }
  .paper .abstract h2 { font-size: 8pt; margin-bottom: 6pt; }
  .paper .paper-head { border-bottom: 0; padding-bottom: 0; }
  .abstract p { font-size: 10pt; }
  .keywords { font-size: 9pt !important; }
  .paper figcaption { font-size: 8.5pt; }
  .eq { font-size: 12pt; margin: 10pt 0; }
  .eq .eqn { font-size: 10pt; }
  .refs h2 { font-size: 12pt; }
  .refs ol { font-size: 9pt; }
  .diagram-fig svg { max-width: 460px; display: block; margin: 0 auto; }
  .nav, .toc, .paper-cta, footer, .paper-actions { display: none !important; }
  .masthead { margin: 0 0 22pt; font-size: 7.5pt; }
  .paper-meta dd { font-size: 9.5pt; }
  .paper-meta dt { font-size: 7pt; }
  .paper-meta { margin-top: 16pt; }
  .paper-authors .author { font-size: 11pt; }
  .paper-authors .affil { font-size: 9.5pt; }
  .paper-layout { display: block; padding: 0; max-width: none; }
  .paper { background: #fff; box-shadow: none; border-radius: 0; padding: 0; font-size: 10.5pt; line-height: 1.55; }
  .paper-head { padding-bottom: 18pt; margin-bottom: 18pt; }
  .paper-head h1 { font-size: 22pt; }
  .paper-sub { font-size: 12pt; }
  .paper h2 { font-size: 14pt; break-after: avoid; }
  .paper h3 { font-size: 11.5pt; break-after: avoid; }
  .paper section { margin-bottom: 20pt; }
  .paper figure, .paper table, .eq, .abstract, .rules-list li, .refs li { break-inside: avoid; }
  .paper table { font-size: 9pt; }
  .code-fig pre { font-size: 8.5pt; }
  .paper, .paper * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper a { color: var(--accent); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  section, .cta-band { padding: 88px 0; }
  .steps, .timeline { grid-template-columns: 1fr; }
  .steps { max-width: 560px; margin: 0 auto; }
  .timeline { gap: 36px; padding-left: 34px; }
  .timeline::before { left: 7px; right: auto; top: 7px; bottom: 0; width: 2px; height: auto; background: linear-gradient(to bottom, var(--green) 0, var(--green) 22%, var(--border-2) 22%); }
  .tl { padding-top: 0; }
  .tl .dot { left: -34px; }
  .two-col, .loop-grid, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .calc, .faq-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav .wrap { gap: 16px; }
  .nav-links { display: none; position: absolute; top: var(--nav); left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(7,9,13,.97); border-bottom: 1px solid var(--border); padding: 12px 16px 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 12px; font-size: 15px; }
  .nav-links a.login { display: block; }
  .nav-cta .login { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 0; }
}
@media (max-width: 1000px) {
  .paper-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  section, .cta-band { padding: 72px 0; }
  .paper { padding: 40px 22px 36px; font-size: 16.5px; border-radius: 4px; }
  .paper-layout { padding-left: 10px; padding-right: 10px; }
  .paper p { text-align: left; }
  .paper-sub { font-size: 17px; }
  .masthead { margin: -8px 0 28px; font-size: 10px; }
  .mast-id { display: none; }
  .paper-meta { grid-template-columns: 1fr 1fr; }
  .paper-meta > div:nth-child(3) { border-left: 0; }
  .paper-meta > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .paper .abstract { padding: 20px 18px !important; }
  .eq { font-size: 17px; justify-content: flex-start; }
  .paper table { font-size: 13px; }
  .paper th, .paper td { padding: 8px 8px; }
  .wrap { padding: 0 16px; }
  .section-head { margin-bottom: 36px; }
  .section-head.center { text-align: left; }
  .cta .btn { width: 100%; }
  .step .frame { height: 220px; }
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .calc { padding: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .cta-box { padding: 56px 20px; border-radius: 20px; }
  details .a { padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rec, .hero-rail i { animation: none !important; }
  .hero-media img { transition: opacity .3s ease; transform: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow b { margin-bottom: 18px; }
}
@media (max-width: 1000px) {
  .hero { min-height: auto; padding-top: calc(var(--nav) + 120px); }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-app { width: 100%; max-width: 360px; }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,9,13,.55) 0%, rgba(7,9,13,.6) 40%, var(--bg) 100%); }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav) + 72px); }
  .hero h1 { font-size: 54px; }
  .hero-rail { gap: 8px; }
  .hero-rail button { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px; }
  .hero-rail img { width: 100%; height: 56px; }
  .hero-rail span { font-size: 12px; padding: 0 4px 4px; }
  .hero-rail b { font-size: 15px; }
}

/* ---------- Shared icon tile ---------- */
.ico { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: var(--green-2); background: var(--green-soft); border: 1px solid rgba(34,197,94,.2); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.center-note { text-align: center; margin: 32px 0 0; font-size: 15px; }

/* ---------- What you get ---------- */
.recap-mock { padding: 0; overflow: hidden; margin: 0; max-width: 500px; justify-self: center; width: 100%; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.rm-shot { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--border); }
.rm-shot img { width: 100%; height: 100%; object-fit: cover; }
.rm-shot span { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 8px; font-size: 12px; background: rgba(7,9,13,.75); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rm-body { padding: 22px 24px 20px; }
.rm-kick { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rm-body h3 { margin: 6px 0 6px; font-size: 22px; }
.rm-body p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rm-chips span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-2); background: var(--panel-2); }
.rm-chips .new { color: var(--green-2); background: var(--green-soft); border-color: rgba(34,197,94,.25); }
.rm-chips .gold { color: var(--amber); background: rgba(245,185,33,.1); border-color: rgba(245,185,33,.28); }
.rm-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-2); font-size: 13.5px; color: var(--muted); }
.rm-foot b { color: var(--green-2); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.rm-foot small { font-size: 11px; color: var(--muted); font-weight: 600; }
.recap-mock figcaption { padding: 9px 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); text-align: center; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 28px; }
.feat-list li { display: flex; gap: 16px; align-items: flex-start; }
.feat-list h3 { margin: 2px 0 6px; font-size: 17px; }
.feat-list p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Rewards: your day ---------- */
.day { margin-top: 20px; }
.day-bar { display: flex; gap: 3px; height: 34px; }
.day-bar i { display: flex; align-items: center; padding: 0 12px; border-radius: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.day-bar .full { flex: 2; background: var(--green); color: #03220e; }
.day-bar .half { flex: 4; background: rgba(34,197,94,.28); color: var(--green-3); }
.day-scale { position: relative; height: 18px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.day-scale span { position: absolute; left: 0; top: 0; transform: translateX(-50%); white-space: nowrap; }
.day-scale span:first-child { transform: none; }
.day-scale span:last-child { transform: translateX(-100%); }

/* ---------- Privacy ---------- */
.priv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.priv-grid .card h3 { margin: 18px 0 8px; font-size: 17px; }
.priv-grid .card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 1180px) and (min-width: 1001px) { .nav-links a[href="/whitepaper.html"] { display: none; } }
@media (max-width: 1000px) {
  .priv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .feat-list, .priv-grid { grid-template-columns: 1fr; }
}
.rules.first { margin: 0 0 20px; }
.day { margin: 0 0 20px; }
.loop-grid { align-items: start; }

/* ---------- Community positioning ---------- */
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--text-2); }
.hero .btn.ghost.big svg { flex: none; }

/* Hero: friends feed window */
.feed-mock { width: 330px; }
.fm-body { padding: 14px 14px 12px; background: radial-gradient(260px 140px at 50% 0%, rgba(34,197,94,.08), transparent 70%); }
.fm-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: #111720; border: 1px solid var(--border); margin-bottom: 8px; text-align: left; }
.fm-item.small { align-items: center; }
.fm-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #06120a; }
.a1 { background: #4ade80; } .a2 { background: #f5b921; } .a3 { background: #5b9cf6; } .a4 { background: #f0727a; }
.fm-text { min-width: 0; flex: 1; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.fm-text b { color: var(--text); }
.fm-text b.amber { color: var(--amber); }
.fm-meta { color: var(--muted); font-size: 12px; }
.fm-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--green-2); background: var(--green-soft); }
.fm-clip { position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.fm-clip img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.fm-play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,9,13,.6); border: 1px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.fm-play svg { width: 16px; height: 16px; margin-left: 2px; }
.fm-play.big { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.fm-play.big svg { width: 24px; height: 24px; }
.fm-dur, .fm-views { position: absolute; bottom: 6px; padding: 2px 7px; border-radius: 6px; font-size: 11px; background: rgba(7,9,13,.75); color: #fff; }
.fm-dur { left: 6px; } .fm-views { right: 6px; }
.feed-mock .app-earn { margin: 4px 0 0; }

/* Community feature rows */
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-bottom: 96px; }
.frow.flip .frow-copy { order: 2; }
.frow-copy h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 18px 0 12px; letter-spacing: -0.025em; }
.frow-copy p { color: var(--muted); font-size: 16.5px; max-width: 480px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mock { margin: 0; max-width: 500px; width: 100%; justify-self: center; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.mock figcaption, .clip-mock figcaption { margin: 14px -24px -24px; padding: 9px 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); text-align: center; }
.clip-mock figcaption { margin: 0; }
.fr { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.fr > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr b { font-size: 15px; }
.fr span:not(.fm-av) { font-size: 13px; color: var(--muted); }
.fr em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--amber); background: rgba(245,185,33,.1); white-space: nowrap; }
.fr em.new { color: var(--green-2); background: var(--green-soft); }
.fr em.clip { color: var(--blue); background: rgba(91,156,246,.12); }
.fr-add { display: flex; gap: 8px; margin-top: 12px; }
.fr-add span { flex: 1; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 10px; font-size: 13px; color: #5d6b7e; background: var(--bg); }
.fr-add b { padding: 10px 16px; border-radius: 10px; background: var(--green); color: #03220e; font-size: 14px; }
.clip-mock .rm-shot { aspect-ratio: 16 / 9; }
.clip-mock .rm-shot > span.mono { position: absolute; left: 14px; bottom: 12px; }
.share-btns { display: flex; gap: 6px; }
.share-btns i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-2); color: var(--text); background: var(--panel-2); }
.share-btns i:last-child { background: var(--green); border-color: var(--green); color: #03220e; }
.rm-foot b.views { color: var(--text); font-size: 15px; font-weight: 700; }
.ev { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid rgba(245,185,33,.3); background: linear-gradient(90deg, rgba(245,185,33,.12), rgba(245,185,33,.03)); }
.ev > div { flex: 1; display: flex; flex-direction: column; }
.ev b { font-size: 16px; }
.ev span:not(.live-pill) { font-size: 13px; color: var(--text-2); }
.ev em { font-style: normal; font-size: 12px; color: var(--amber); white-space: nowrap; }
.live-pill { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--amber); color: #241a00; }
.lb-head { margin: 20px 0 8px; }
.lb { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.lb + .lb { margin-top: 4px; }
.lb b { flex: 1; font-size: 15px; } .lb b small { font-size: 11px; color: var(--green-2); font-weight: 600; margin-left: 4px; }
.lb em { font-style: normal; color: var(--text-2); }
.lb.me { background: var(--green-soft); border: 1px solid rgba(34,197,94,.25); }
.rk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--panel-2); color: var(--text-2); }
.rk.gold { background: var(--amber); color: #241a00; }
.feat-list.four { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 48px; border-top: 1px solid var(--border); }

/* Earn */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 64px; }
.way { padding: 28px; }
.way-n { position: absolute; top: 24px; right: 24px; font-size: 13px; color: #5d6b7e; }
.way h3 { margin: 18px 0 8px; font-size: 22px; }
.way p { margin: 0; color: var(--muted); font-size: 15px; }
h3.sub { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.earn-detail .day { margin-top: 0; }

@media (max-width: 1000px) {
  .frow { grid-template-columns: 1fr; gap: 36px; margin-bottom: 72px; }
  .frow.flip .frow-copy { order: 0; }
  .feat-list.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: 1fr; }
  .feed-mock { width: 100%; max-width: 380px; }
}
@media (max-width: 720px) {
  .feat-list.four { grid-template-columns: 1fr; }
  .frow-copy h3 { font-size: 24px; }
}
.clip-mock .rm-shot .fm-play { left: 50%; top: 50%; bottom: auto; padding: 0; border-radius: 50%; background: rgba(7,9,13,.6); border: 1px solid rgba(255,255,255,.35); }

/* ======================================================================
   Homepage v3: app window hero, feature showcase, one card style
   ====================================================================== */
.g { color: var(--green-2); }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.big { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.small { font-size: 13.5px; }
.hero .lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 560px; }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head .eyebrow { margin-bottom: 14px; }

/* Features: tabs + app window */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.sc-tabs { display: grid; gap: 10px; }
.sc-tab { position: relative; display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 18px 20px; text-align: left; font: inherit; color: var(--text); cursor: pointer; border-radius: 14px; border: 1px solid transparent; background: transparent; overflow: hidden; transition: background .2s ease, border-color .2s ease; }
.sc-tab:hover { background: rgba(255,255,255,.025); }
.sc-tab[aria-selected="true"] { background: var(--panel); border-color: var(--border-2); }
.sc-tab:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.sc-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); transition: color .2s ease, background .2s ease; }
.sc-tab[aria-selected="true"] .sc-ic { color: var(--green-2); background: var(--green-soft); border-color: rgba(34,197,94,.25); }
.sc-txt { display: flex; flex-direction: column; min-width: 0; }
.sc-txt b { font-size: 17px; line-height: 1.3; }
.sc-txt span { font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.sc-tab:not([aria-selected="true"]) .sc-txt b { color: var(--text-2); }
.sc-tab > i { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--green-2); transform: scaleX(0); transform-origin: left; }
.showcase.auto .sc-tab[aria-selected="true"] > i { animation: tabbar 7s linear forwards; }
@keyframes tabbar { to { transform: scaleX(1); } }
.sc-window { background: #0b0f14; border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.04); }
.sc-pane { padding: 20px; min-height: 500px; }
.sc-pane.on { animation: paneIn .35s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }
.sc-clip { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.sc-clip img { width: 100%; height: 100%; object-fit: cover; }
.sc-clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7,9,13,.75)); }
.sc-clip .fm-play { z-index: 1; }
.sc-time { position: absolute; z-index: 1; left: 12px; bottom: 16px; font-size: 11.5px; color: #fff; }
.sc-bar { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 9px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); }
.sc-bar i { display: block; height: 100%; width: 33%; border-radius: 2px; background: var(--green-2); }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.sc-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.sc-row b { font-size: 16px; }
.sc-row span { font-size: 13px; color: var(--muted); }
.sc-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.sc-stats b { color: var(--text); }
.sc-pane .fr:first-child { border-top: 0; padding-top: 2px; }
.sc-pane .fm-av { width: 36px; height: 36px; font-size: 14px; }
.sc-progress { margin: 16px 0 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #111720; }
.sc-progress .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.sc-meter { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; margin-bottom: 10px; }
.sc-meter i { display: block; height: 100%; background: var(--amber); border-radius: 3px; }
.sc-sub { margin: 18px 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-date { flex: none; width: 44px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--border); }
.sc-week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: center; }
.sc-week > div:not(.streak-pill) { padding: 14px; border-radius: 12px; background: #111720; border: 1px solid var(--border); }
.sc-week b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-week span { font-size: 12.5px; color: var(--muted); }
.streak-pill { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--amber); background: rgba(245,185,33,.1); border: 1px solid rgba(245,185,33,.25); white-space: nowrap; }
.sc-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sc-badges div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 12px; border: 1px dashed var(--border-2); text-align: center; }
.sc-badges span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #5d6b7e; border: 1.5px dashed var(--border-2); }
.sc-badges b { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.sc-badges .on { border-style: solid; border-color: var(--border); background: #111720; }
.sc-badges .on span { color: var(--green-2); background: var(--green-soft); border: 1.5px solid rgba(34,197,94,.45); }
.sc-badges .on b { color: var(--text); }

/* Why you earn */
.why3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: w; }
.why3 li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.why3 li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 48px; right: -15px; width: 10px; height: 10px; border-top: 2px solid var(--border-2); border-right: 2px solid var(--border-2); transform: rotate(45deg); }
.why3 h3 { margin: 22px 0 8px; font-size: 20px; }
.why3 p { margin: 0; color: var(--muted); font-size: 15px; }
.w-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--green-2); background: var(--green-soft); border: 1px solid rgba(34,197,94,.22); }
.w-ic.blue { color: var(--blue); background: rgba(91,156,246,.12); border-color: rgba(91,156,246,.25); }
.w-ic.amber { color: var(--amber); background: rgba(245,185,33,.1); border-color: rgba(245,185,33,.25); }
.w-n { position: absolute; top: 28px; right: 28px; font-size: 13px; color: #5d6b7e; }

/* How it works */
#how .step-body { padding: 22px 24px 26px; }

/* Earn */
.earn2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.earn2 .section-head { margin-bottom: 36px; }
.ways-list { list-style: none; margin: 0; padding: 0; }
.ways-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--border); }
.ways-list li:last-child { border-bottom: 1px solid var(--border); }
.ways-list .w-ic { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.ways-list div { display: flex; flex-direction: column; }
.ways-list b { font-size: 17px; }
.ways-list span { color: var(--muted); font-size: 15px; margin-top: 2px; }
.earn2 .calc { position: static; }

/* Safe */
.safe4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.safe4 > div { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.safe4 svg.i { width: 24px; height: 24px; color: var(--green-2); margin-bottom: 18px; }
.safe4 b { font-size: 16px; }
.safe4 span { font-size: 14px; color: var(--muted); margin-top: 4px; }
.safe-note { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(245,185,33,.22); background: rgba(245,185,33,.05); font-size: 14px; color: var(--text-2); }
.safe-note svg.i { color: var(--amber); margin-top: 1px; }

/* Bottom */
.cta-box h2 { max-width: 18ch; }
.labs-strip { border-top: 1px solid var(--border); background: var(--bg-alt); }
.labs-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 14px; color: var(--muted); }
.labs-strip span { display: inline-flex; align-items: center; gap: 10px; }
.labs-strip b { color: var(--text); }
.labs-strip svg.i { color: var(--blue); }
.ls-links { gap: 18px !important; }
.ls-links a { color: var(--green-2); font-weight: 600; }

@media (max-width: 1000px) {
  .showcase { grid-template-columns: 1fr; gap: 24px; }
  .sc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sc-tab { padding: 14px; border-color: var(--border); }
  .sc-tab .sc-txt span { display: none; }
  .sc-tab[aria-selected="true"] .sc-txt span { display: block; }
  .why3 { grid-template-columns: 1fr; gap: 14px; }
  .why3 li:not(:last-child)::after { top: auto; right: auto; left: 50px; bottom: -13px; transform: rotate(135deg); }
  .earn2 { grid-template-columns: 1fr; gap: 36px; }
  .safe4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sc-tabs { grid-template-columns: 1fr; }
  .sc-tab .sc-txt span { display: block; }
  .sc-pane { padding: 14px; min-height: 0; }
  .sc-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .streak-pill { grid-column: 1 / -1; justify-self: start; }
  .sc-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-row { flex-wrap: wrap; }
  .safe4 { grid-template-columns: 1fr; gap: 10px; }
  .safe4 > div { display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; padding: 18px 20px; }
  .safe4 svg.i { grid-row: span 2; margin: 2px 0 0; }
  .labs-strip span:first-child { display: block; }
  .labs-strip svg.i { display: inline; vertical-align: -4px; margin-right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-pane.on { animation: none; }
}
.cta-logo { display: block; margin: 0 auto 20px; }
