/* RingPerps — styles. Plain CSS, no build step. */

:root {
  --accent: #ff6a2b;
  --accent-rgb: 255, 106, 43;
  --bg: #060708;
  --ink: #eef0f2;
  --ink-2: #b7bcc3;
  --muted: #7d838c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(16, 18, 21, 0.52);
  --glass-2: rgba(22, 24, 28, 0.7);
  --stat: rgba(4, 5, 6, 0.82);
  --up: #e9edf1;
  --down: #8b919a;
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1480px;
  --head: "RingHead", "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --nav-h: 200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 40px);
}
body.is-intro { overflow: hidden; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor select, body.has-cursor label { cursor: none; }
body.has-cursor input[type="text"], body.has-cursor input[type="number"], body.has-cursor input[type="search"] { cursor: text; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(var(--accent-rgb), 0.35); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { margin-top: 56px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }
.ic-lg { width: 40px; height: 40px; stroke-width: 1.3; color: var(--accent); }
.stop { color: var(--accent); }
kbd { font-size: 13px; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; color: var(--ink-2); }

/* ---------- Type ---------- */
.h1, .h2, .h3, .hero-title, .intro-word, .menu-list .m-title { font-family: var(--head); font-style: normal; letter-spacing: -0.02em; font-weight: 700; }
.h1 { font-size: clamp(44px, 5.4vw, 84px); line-height: 1.02; margin: 8px 0 16px; }
.h2 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.06; margin: 6px 0 14px; }
.h3 { font-size: 28px; line-height: 1.15; margin: 14px 0 8px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 760px; margin: 0; }
.eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Background ---------- */
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.bg-fallback { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 70% 40%, rgba(var(--accent-rgb), 0.12), transparent 70%),
  radial-gradient(50% 50% at 20% 80%, rgba(255,255,255,0.04), transparent 70%), var(--bg); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
main, .topbar { position: relative; z-index: 2; }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--accent); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 10000; display: none; }
body.has-cursor .cursor { display: block; }
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(255,255,255,0.7); transition: width .2s, height .2s, margin .2s, border-color .2s, background .2s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.cursor.is-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 14px 24px; font-size: 18px; font-weight: 600; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); transition: transform .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--accent-rgb), 0.08); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 28px; }
.btn-xl { padding: 20px 34px; font-size: 20px; }
.btn-accent { background: var(--accent); color: #0b0b0c; border-color: var(--accent); }
.btn-accent:hover { background: #fff; border-color: #fff; color: #0b0b0c; }
.btn-ghost { background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--ink); border-bottom: 1px dashed var(--line-2); word-break: break-all; text-align: left; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Glass ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05); }
.panel { padding: 44px; position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; left: 0; top: 32px; bottom: 32px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), transparent); opacity: 0.85; }
.panel-head { margin-bottom: 32px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 26px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--accent); overflow: hidden; }
.brand-mark .ic { width: 26px; height: 26px; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.badge { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .5); color: var(--accent); font-weight: 500; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.ca-chip { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,11,13,0.6); backdrop-filter: blur(10px); font-size: 16px; transition: border-color .2s; }
.ca-chip:hover { border-color: var(--accent); }
.x-glyph { font-size: 20px; line-height: 1; font-weight: 700; }
.ca-ticker { color: var(--accent); font-weight: 500; }
.ca-addr { color: var(--ink-2); }

/* ---------- Pages ---------- */
.page { display: none; }
.page.is-active { display: block; animation: pageIn .6s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } }
.page-head { padding: 40px 0 36px; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 240px); display: flex; align-items: center; padding: 40px 0 56px; }
.hero-copy { margin-left: clamp(0px, 16%, 280px); max-width: 1100px; position: relative; }
.hero-title { font-size: clamp(60px, 8.4vw, 148px); line-height: 0.94; margin: 18px 0 30px; font-weight: 700; text-shadow: 0 10px 60px rgba(0,0,0,0.5); }
.hero-sub { font-size: 21px; color: var(--ink-2); max-width: 640px; margin: 0 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Stat boxes ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 14px; }
.stat-row.inner { padding: 0; margin-top: 24px; }
.stat-row:empty { display: none; }
.stat { background: var(--stat); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius-sm); padding: 22px 24px; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; }
.stat b { font-family: var(--mono); font-weight: 500; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 15px; line-height: 1.35; }
.stat.is-live b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 10px; vertical-align: 0.35em; animation: pulse 2s infinite; }

/* ---------- Compare / tables ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { background: rgba(0,0,0,0.28); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; min-width: 0; }
.compare-col.sealed { border-color: rgba(var(--accent-rgb), 0.4); box-shadow: inset 0 0 40px -20px rgba(var(--accent-rgb), 0.4); }
.compare-label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; margin-bottom: 14px; }
.compare-label .muted { margin-left: auto; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }
.compare-col.sealed .compare-label .ic { color: var(--accent); }
.table { display: grid; gap: 2px; font-size: 16px; }
.trow { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 12px; padding: 13px 10px; border-radius: 10px; align-items: center; }
.trow:nth-child(even) { background: rgba(255,255,255,0.025); }
.trow.th { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: none; }
.trow > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cipher { font-family: var(--mono); color: var(--accent); opacity: .9; letter-spacing: 0.02em; }
.up { color: var(--up); }
.down { color: var(--down); }
.skeleton { height: 220px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.tall { height: 360px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Feature accordion ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: start; }
.feature-visual { position: sticky; top: 30px; }
.pos-card { background: rgba(4,5,6,0.78); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px; box-shadow: 0 40px 100px -50px rgba(var(--accent-rgb), 0.5); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pos-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--ink-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pos-state { color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .5); padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.pos-rows { display: grid; }
.pos-row { display: flex; justify-content: space-between; gap: 20px; padding: 17px 4px; border-bottom: 1px dashed var(--line); font-size: 18px; transition: background .3s, padding .3s; }
.pos-row span { color: var(--muted); }
.pos-row b { font-weight: 500; transition: color .3s; }
.pos-row.is-sealed b { color: var(--accent); }
.pos-row.is-focus { background: rgba(var(--accent-rgb), 0.08); padding-inline: 14px; border-radius: 10px; }
.pos-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }

.accordion { display: grid; gap: 12px; }
.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,0.25); transition: border-color .3s, background .3s; }
.acc.is-open { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(0,0,0,0.42); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: none; border: 0; text-align: left; font-size: 22px; font-weight: 600; font-family: var(--head); }
.acc-btn .num { font-family: var(--mono); font-size: 14px; color: var(--muted); font-weight: 400; }
.acc.is-open .acc-btn .num { color: var(--accent); }
.acc-btn .ic { color: var(--ink-2); width: 26px; height: 26px; }
.acc.is-open .acc-btn .ic { color: var(--accent); }
.acc-btn .chev { margin-left: auto; width: 18px; height: 18px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s; }
.acc.is-open .chev { transform: rotate(225deg); border-color: var(--accent); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.acc.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-inner { padding: 0 26px 26px; display: grid; grid-template-columns: 1fr 260px; gap: 22px; align-items: start; color: var(--ink-2); }
.acc-inner p { margin: 0; }
.acc-inner .stat { min-height: 110px; }
.faq .acc-inner { grid-template-columns: 1fr; }

/* ---------- hSOL ---------- */
.hsol-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hsol-panel .lead { margin-bottom: 26px; }
.hsol-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hsol-big { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px; padding: 26px; border-radius: var(--radius-sm); background: var(--stat); border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.hsol-big b { font-family: var(--mono); font-size: clamp(44px, 4vw, 68px); font-weight: 500; letter-spacing: -0.04em; }
.hsol-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.fact-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; color: var(--ink-2); }
.fact-list .ic { color: var(--accent); width: 24px; height: 24px; margin-top: 4px; }
.fact-list b { color: var(--ink); }
.fact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Explore ---------- */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.explore-card { padding: 36px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s, border-color .3s; }
.explore-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), 0.6); }
.explore-card p { color: var(--ink-2); margin: 0 0 18px; }
.explore-card .more { margin-top: auto; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 10px; margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > span { font-size: 16px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.field > span b { color: var(--accent); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input, .select { width: 100%; font: inherit; font-size: 19px; color: var(--ink); background: rgba(0,0,0,0.45); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 24px) 52%, calc(100% - 18px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 48px; }
.select option { background: #111316; }
.range { width: 100%; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 20%) 100% no-repeat, rgba(255,255,255,0.1); outline: none; margin: 12px 0; }
.range::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(0,0,0,0.45); border: 1px solid var(--line); margin-bottom: 24px; }
.seg-btn { border: 0; background: none; padding: 16px; border-radius: 12px; font-size: 19px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg-btn.is-active { background: var(--accent); color: #0b0b0c; }
.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.3); font-size: 17px; user-select: none; }
.toggle.wide { margin-top: 4px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 40px; height: 22px; border-radius: 22px; background: rgba(255,255,255,0.12); position: relative; flex: none; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); transition: transform .2s, background .2s; }
.toggle input:checked + i { background: rgba(var(--accent-rgb), .35); }
.toggle input:checked + i::after { transform: translateX(18px); background: var(--accent); }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0,0,0,0.4); border: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 11px 18px; border-radius: 10px; font-size: 16px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: rgba(var(--accent-rgb), .16); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }

/* ---------- Terminal ---------- */
.term { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr); gap: 20px; align-items: start; }
.term-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.term-bar .select-wrap { min-width: 260px; flex: 0 1 340px; }
.term-price { display: flex; align-items: baseline; gap: 14px; }
.term-price .big { font-size: 34px; font-weight: 500; }
.term-price .huge { font-size: clamp(44px, 4.4vw, 72px); font-weight: 500; letter-spacing: -0.04em; }
.chg { font-size: 17px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.chg.up { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.chart-box { position: relative; height: 460px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.35); border: 1px solid var(--line); overflow: hidden; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-note { position: absolute; left: 16px; bottom: 12px; font-size: 13px; color: var(--muted); pointer-events: none; }
.term-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.mini { background: var(--stat); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mini span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.mini b { font-family: var(--mono); font-weight: 500; font-size: 20px; }
.calc { display: grid; gap: 2px; margin: 6px 0 22px; padding: 16px; border-radius: 14px; background: var(--stat); border: 1px solid var(--line); }
.calc div { display: flex; justify-content: space-between; padding: 8px 4px; font-size: 17px; }
.calc span { color: var(--muted); }
.calc b { font-family: var(--mono); font-weight: 500; }
.calc .hl b { color: var(--accent); }
.fine { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 16px 0 0; }
.kv { display: grid; gap: 2px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 8px; border-bottom: 1px dashed var(--line); font-size: 17px; }
.kv span { color: var(--muted); }
.kv b { font-family: var(--mono); font-weight: 500; text-align: right; word-break: break-all; }

/* ---------- Markets ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.search { flex: 1 1 360px; position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 18px; color: var(--muted); }
.search .input { padding-left: 52px; }
.mk-head, .mk-row { display: grid; grid-template-columns: minmax(220px, 2.2fr) 1.1fr .7fr .7fr .7fr 1.1fr 1.1fr 1.1fr 150px; gap: 12px; align-items: center; }
.mk-head { padding: 0 16px 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.mk-list { display: grid; }
.mk-row { padding: 16px; border-bottom: 1px solid var(--line); font-size: 17px; transition: background .2s; }
.mk-row:hover { background: rgba(var(--accent-rgb), 0.05); }
.mk-row .mono { font-size: 16px; }
.mk-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.mk-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.06); flex: none; object-fit: cover; border: 1px solid var(--line); }
.mk-name { min-width: 0; }
.mk-name b { display: block; font-size: 18px; }
.mk-name small { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-links { display: flex; gap: 6px; margin-top: 4px; }
.mk-links a { font-size: 12px; font-family: var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; border-radius: 6px; }
.mk-links a:hover { color: var(--accent); border-color: var(--accent); }
.mk-go { padding: 11px 16px; font-size: 15px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Orbit ---------- */
.orbit-box { position: relative; height: min(76vh, 820px); border-radius: var(--radius-sm); background: rgba(0,0,0,0.35); border: 1px solid var(--line); overflow: hidden; }
.orbit-box canvas { width: 100%; height: 100%; display: block; }
.orbit-tip { position: absolute; padding: 16px 18px; border-radius: 14px; pointer-events: none; min-width: 230px; font-size: 15px; z-index: 3; }
.orbit-tip b { font-size: 18px; }
.orbit-tip .kv div { padding: 5px 0; font-size: 14px; }

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.lab-out { display: grid; gap: 20px; }
.spec-card { padding: 36px; }
.spec-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spec-ticker { font-family: var(--head); font-size: clamp(40px, 3.4vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.spec-vis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-size: 15px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); }
.chip.sealed { border-color: rgba(var(--accent-rgb), .5); color: var(--accent); }
.code { margin: 18px 0; padding: 22px; border-radius: 14px; background: rgba(0,0,0,0.55); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; max-height: 380px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
#labPng { width: 100%; height: auto; border-radius: 14px; margin: 18px 0; border: 1px solid var(--line); }
.lab-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Ledger ---------- */
.timeline { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 24px; padding: 32px 36px; align-items: start; }
.step-n { font-family: var(--mono); color: var(--accent); font-size: 15px; }
.step-n b { display: block; font-family: var(--head); color: var(--ink); font-size: 30px; letter-spacing: -0.02em; margin-top: 6px; }
.step h4 { margin: 0 0 12px; font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { padding: 10px 14px; border-radius: 10px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); font-size: 17px; }
.step .sealed-col li { border-color: rgba(var(--accent-rgb), .35); }
.step .sealed-col h4 { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { margin-top: 80px; padding: 40px 0 20px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; font-size: 16px; }
.footer .brand { font-size: 22px; margin-bottom: 10px; }
.footer .brand-mark { width: 38px; height: 38px; }

/* ---------- Bottom nav: tilted ring dial ---------- */
/* Pages sit on a ring seen in perspective. The ring turns so the active page is always at the front. */
.dial-fade { position: fixed; left: 0; right: 0; bottom: 0; height: 220px; z-index: 49; pointer-events: none; background: linear-gradient(transparent, rgba(6,7,8,0.88) 70%); }
.dial { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 50; width: 900px; max-width: 100vw; height: 200px; pointer-events: none; }
.dial-track { position: absolute; left: 50%; top: 84px; width: 820px; height: 92px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(255,255,255,0.16); pointer-events: none; box-shadow: 0 0 0 10px rgba(255,255,255,0.015), inset 0 0 40px rgba(var(--accent-rgb), 0.08); }
.dial-track::before { content: ""; position: absolute; inset: -14px -24px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.07); }
.dial-track::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 120px; height: 5px; margin-left: -60px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.dial-items { position: absolute; left: 50%; top: 84px; width: 0; height: 0; }
.dial-btn { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 6px; color: var(--muted); will-change: transform; }
.dial-btn .node { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(10,11,13,0.96); transition: border-color .25s, background .25s, box-shadow .25s; }
.dial-btn .node .ic { width: 24px; height: 24px; }
.dial-btn .lbl { font-size: 15px; font-weight: 600; white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: rgba(6,7,8,0.85); transition: opacity .3s; }
.dial-btn:hover { color: var(--ink); }
.dial-btn:hover .node { border-color: rgba(var(--accent-rgb), .7); }
.dial-btn.is-active { color: var(--accent); }
.dial-btn.is-active .node { border-color: var(--accent); background: rgba(24,14,9,0.96); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12), 0 0 34px rgba(var(--accent-rgb), .45); }
.dial-menu { position: absolute; left: 50%; top: 84px; transform: translate(-50%, -50%); pointer-events: auto; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .7); background: rgba(6,7,8,0.96); display: inline-flex; align-items: center; gap: 12px; z-index: 5; transition: background .3s, box-shadow .3s; }
.dial-menu:hover { background: rgba(var(--accent-rgb), .14); box-shadow: 0 0 30px rgba(var(--accent-rgb), .3); }
.dial-menu-ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: inset 0 0 0 4px rgba(6,7,8,1), inset 0 0 0 6px var(--accent); }
.dial-menu-label { font-family: var(--head); font-size: 20px; font-weight: 700; }
.dial-menu kbd { font-size: 12px; }

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: 80; background: rgba(5,6,7,0.86); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); overflow-y: auto; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s, visibility 0s linear .35s; }
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s; }
.menu-rings { position: fixed; right: -20vh; top: 50%; width: 110vh; height: 110vh; transform: translateY(-50%); pointer-events: none; }
.menu-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.menu-rings span:nth-child(2) { inset: 12%; border-color: rgba(var(--accent-rgb), .22); }
.menu-rings span:nth-child(3) { inset: 24%; border-style: dashed; }
.menu-rings span:nth-child(4) { inset: 36%; border-color: rgba(var(--accent-rgb), .12); }
.menu.is-open .menu-rings span { animation: spin 60s linear infinite; }
.menu-inner { position: relative; padding: 40px 0 80px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.menu-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: padding .3s, border-color .3s; opacity: 0; transform: translateY(14px); }
.menu.is-open .menu-list a { opacity: 1; transform: none; transition: opacity .5s calc(var(--i) * 50ms), transform .5s calc(var(--i) * 50ms), padding .3s, border-color .3s; }
.menu-list a:hover, .menu-list a.is-active { padding-left: 20px; border-color: var(--accent); }
.menu-list .m-num { font-family: var(--mono); color: var(--muted); font-size: 15px; }
.menu-list a.is-active .m-num, .menu-list a:hover .m-num { color: var(--accent); }
.menu-list .m-title { font-size: clamp(30px, 3vw, 46px); line-height: 1.05; display: block; }
.menu-list .m-desc { display: block; color: var(--muted); font-size: 16px; margin-top: 6px; }
.menu-list .ic { width: 30px; height: 30px; color: var(--muted); }
.menu-list a:hover .ic, .menu-list a.is-active .ic { color: var(--accent); }
.menu-foot { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 15px; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 9000; background: var(--bg); display: grid; place-items: center; transition: opacity .7s, visibility 0s linear .7s; }
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-inner { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; padding: 24px; }
.intro-rings { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); pointer-events: none; }
.intro-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .35); transform: scale(.2) rotateX(70deg); opacity: 0; animation: ringIn 2.2s cubic-bezier(.2,.7,.2,1) forwards; }
.intro-rings span:nth-child(2) { inset: 60px; border-color: rgba(255,255,255,0.14); animation-delay: .2s; }
.intro-rings span:nth-child(3) { inset: 120px; border-style: dashed; animation-delay: .4s; }
@keyframes ringIn { to { transform: scale(1) rotateX(0deg); opacity: 1; } }
.intro-code { font-size: 15px; color: var(--accent); letter-spacing: .2em; }
.intro-word { font-size: clamp(56px, 10vw, 150px); margin: 0; line-height: 1; letter-spacing: -0.02em; }
.intro-lines { font-size: 14px; color: var(--muted); min-height: 66px; display: grid; gap: 2px; }
.intro-bar { width: 320px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.intro-enter { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .5s, transform .5s; }
.intro-enter.is-ready { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 24px; transform: translate(-50%, -20px); z-index: 9500; background: rgba(10,11,13,0.95); border: 1px solid var(--accent); padding: 14px 22px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .mk-head { display: none; }
  .mk-row { grid-template-columns: 1fr 1fr 1fr; row-gap: 10px; }
  .mk-row .mk-id { grid-column: 1 / -1; }
  .term, .lab, .hsol-grid, .feature, .hsol-panel { grid-template-columns: 1fr; }
  .feature-visual { position: relative; top: 0; }
  .explore { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 96px; }
  body { font-size: 17px; }
  .panel { padding: 28px 22px; }
  .compare, .menu-list, .footer-grid, .field-row, .step { grid-template-columns: 1fr; }
  .toggles, .spec-grid, .spec-vis { grid-template-columns: 1fr 1fr; }
  .term-meta { grid-template-columns: 1fr 1fr; }
  .acc-inner { grid-template-columns: 1fr; }
  .hero-copy { margin-left: 0; }
  .ca-addr { display: none; }
  .topbar { padding: 18px 0; }
  .topbar .badge { display: none; }
  .brand { font-size: 22px; }
  .topbar-right { gap: 8px; }
  .ca-chip { padding: 12px 14px; }
  .topbar .btn-ghost { padding: 12px 14px; }
  .topbar .btn-ghost span:not(.x-glyph) { display: none; }
  .dial { width: 100%; height: var(--nav-h); }
  .dial-fade { height: 110px; }
  .dial-track { display: none; }
  .dial-items { position: absolute; inset: auto 0 0 0; width: auto; height: var(--nav-h); top: auto; display: flex; align-items: center; overflow-x: auto; gap: 2px; padding: 8px 140px 8px 8px; background: rgba(8,9,11,0.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); pointer-events: auto; }
  .dial-btn { position: static; transform: none !important; opacity: 1 !important; min-width: 74px; }
  .dial-btn .lbl { font-size: 12px; opacity: 1 !important; }
  .dial-btn .node { width: 42px; height: 42px; }
  .dial-menu { left: auto; right: 12px; top: auto; bottom: 21px; transform: none; }
  .chart-box { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (hover: none) { .cursor { display: none !important; } }

/* ---------- Simplified home ---------- */
.hero { min-height: calc(100vh - 120px); padding: 20px 0 120px; }
.hero-title { font-size: clamp(64px, 9vw, 156px); }
.hero-sub { font-size: 24px; max-width: 560px; }
.home-sec { padding-top: 40px; scroll-margin-top: 10px; }
.sec-head { padding: 30px 0 30px; }
.big { font-family: var(--head); font-weight: 700; font-style: normal; letter-spacing: -0.03em; font-size: clamp(64px, 8vw, 132px); line-height: 0.95; margin: 0 0 14px; }
.sec-head .lead { font-size: 22px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { padding: 40px; border-top: 2px solid var(--accent); }
.how-card .num { color: var(--accent); font-size: 15px; }
.how-card h3 { font-family: var(--head); font-size: clamp(32px, 2.8vw, 44px); line-height: 1.05; margin: 14px 0 12px; letter-spacing: -0.02em; }
.how-card p { margin: 0; color: var(--ink-2); font-size: 20px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }
.mk-more { display: flex; justify-content: center; padding: 28px 0 4px; }

/* ---------- v4: 3D intro, glass everywhere, big chart ---------- */
.intro { background: radial-gradient(60% 60% at 50% 50%, rgba(6,7,8,.15), rgba(6,7,8,.75) 100%); }
body.is-intro .topbar, body.is-intro main, body.is-intro .dial, body.is-intro .dial-fade, body.is-intro .progress { opacity: 0; }
.topbar, main, .dial, .dial-fade { transition: opacity .8s ease .2s; }
.intro-word { text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.glass { background: rgba(14,15,18,.62); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); }
.hero-copy.glass { padding: 56px 64px 60px; border-radius: 32px; max-width: 1120px; }
.hero-title { margin-top: 14px; }
.sec-head.glass { padding: 40px 52px 44px; margin-bottom: 20px; }
.sec-head .lead { margin: 0; }
.term { grid-template-columns: minmax(0, 2.3fr) minmax(380px, 1fr); }
.chart-box { height: clamp(560px, 70vh, 860px); }
.term-chart { padding: 36px; }
.how-card { min-height: 260px; }
.footer { padding: 40px 48px 28px; border-radius: 24px; border: 1px solid var(--line); background: rgba(14,15,18,.62); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .hero-copy.glass { padding: 32px 26px; } .sec-head.glass { padding: 28px 24px; } .chart-box { height: 420px; } }
.intro-lines { padding: 10px 18px; border-radius: 12px; background: rgba(6,7,8,.7); backdrop-filter: blur(12px); }

/* ---------- v5: Lightweight Charts + full terminal ---------- */
.lw { position: absolute; inset: 0; }
.chart-box .chart-note { top: 12px; bottom: auto; left: 16px; z-index: 3; background: rgba(6,7,8,.7); padding: 4px 10px; border-radius: 8px; }
.chart-note:empty { display: none; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

body.is-pro { padding-bottom: 0; }
body.is-pro .topbar, body.is-pro .dial, body.is-pro .dial-fade, body.is-pro .footer, body.is-pro .progress { display: none !important; }
body.is-pro #bg { opacity: .16; }
.pro-wrap { height: 100vh; min-height: 720px; display: grid; grid-template-rows: auto minmax(0, 1fr) 290px; gap: 10px; padding: 10px; font-size: 15px; }
.pro-top, .pro-chart, .pro-side, .pro-bottom { background: rgba(11,12,14,.88); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .35); }
.pro-top { display: flex; align-items: center; gap: 26px; padding: 12px 16px; flex-wrap: wrap; }
.pro-back { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); transform: scaleX(-1); }
.pro-back:hover { border-color: var(--accent); color: var(--accent); }
.pro-brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 20px; }
.pro-brand .brand-mark { width: 36px; height: 36px; }
.pro-token { display: flex; align-items: center; gap: 12px; padding-left: 22px; border-left: 1px solid var(--line); }
.pro-token img, .pro-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.pro-token b { display: block; font-size: 19px; }
.pro-token .link { font-size: 13px; color: var(--muted); }
.pro-price { display: flex; align-items: baseline; gap: 10px; }
.pro-price b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--accent); }
.pro-stats { display: flex; gap: 26px; }
.pro-stats span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pro-stats b { font-size: 17px; font-weight: 500; }
.pro-top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pro-select { width: 300px; }
.pro-select .select, .pro-wrap .input, .pro-wrap .select { font-size: 16px; padding: 12px 14px; }
.pro-select .select { padding-right: 44px; }
.pro-top .btn { padding: 11px 18px; font-size: 16px; }

.pro-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 10px; min-height: 0; }
.pro-chart { display: flex; flex-direction: column; min-height: 0; padding: 12px; }
.pro-chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pro-chart-bar .tab { padding: 8px 14px; font-size: 14px; }
.pro-note { font-size: 13px; }
.pro-lw { position: relative; flex: 1; min-height: 0; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); overflow: hidden; }
.pro-meta { display: none; }
.pro-side { padding: 16px; overflow-y: auto; min-height: 0; }
.pro-side .field { margin-bottom: 14px; gap: 8px; }
.pro-side .field > span { font-size: 14px; }
.pro-side .seg { margin-bottom: 16px; }
.pro-side .seg-btn { padding: 12px; font-size: 17px; }
.pro-side .calc { margin: 4px 0 14px; padding: 10px 12px; }
.pro-side .calc div { font-size: 14px; padding: 6px 2px; }
.pro-side .fine { font-size: 12px; margin: 10px 0 14px; }
.pro-changes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.pro-changes div { background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; }
.pro-changes span { display: block; font-size: 12px; color: var(--muted); }
.pro-changes b { display: block; font-size: 15px; font-weight: 500; }
.pro-changes small { display: block; font-size: 11px; color: var(--muted); }
.pro-changes .up { color: var(--accent); }
.pro-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: -6px 0 14px; }
.pro-quick button { border: 1px solid var(--line-2); background: rgba(0,0,0,.35); border-radius: 10px; padding: 8px 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.pro-quick button:hover { border-color: var(--accent); color: var(--accent); }
.pro-seal { display: grid; gap: 8px; }
.pro-seal-col { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(0,0,0,.3); }
.pro-seal-col.sealed { border-color: rgba(var(--accent-rgb), .45); }
.pro-seal .compare-label { font-size: 14px; margin-bottom: 4px; }
.pro-seal .kv div { padding: 5px 2px; font-size: 13px; }

.pro-bottom { display: flex; flex-direction: column; min-height: 0; padding: 10px 12px; }
.pro-bottom-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.pro-bottom-bar .tab { padding: 8px 14px; font-size: 14px; }
.pro-filter { flex: 0 1 320px; }
.pro-filter .input { padding: 9px 12px 9px 44px; font-size: 14px; }
.pro-table { overflow-y: auto; min-height: 0; flex: 1; }
.pro-row { display: grid; grid-template-columns: 2fr repeat(7, 1fr); gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 14px; color: var(--ink); }
.pro-row.pv { grid-template-columns: 1fr 1.4fr .8fr 1fr .8fr 1fr 1fr 1.4fr; }
button.pro-row:hover { background: rgba(var(--accent-rgb), .07); }
.pro-row.is-active { background: rgba(var(--accent-rgb), .12); box-shadow: inset 3px 0 0 var(--accent); }
.pro-th { position: sticky; top: 0; background: rgba(11,12,14,.98); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); z-index: 1; }
.pro-mk b { font-size: 15px; } .pro-mk small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-row .up { color: var(--accent); }
@media (max-width: 1200px) {
  .pro-wrap { height: auto; grid-template-rows: auto auto auto; }
  .pro-main { grid-template-columns: 1fr; }
  .pro-chart { height: 70vh; }
  .pro-bottom { height: 420px; }
  .pro-stats { display: none; }
}

/* ---------- Orange theme (config.js → theme: "orange"). Delete this block or set theme: "dark" to switch back. ---------- */
body.theme-orange { --page: #ff6a2b; --onpage: #0b0b0c; background: var(--page); color: var(--onpage); }
body.theme-orange .bg-fallback { background: radial-gradient(70% 60% at 70% 30%, #ff7a3d, #f2611f 70%); }
body.theme-orange .grain { opacity: .05; mix-blend-mode: multiply; }
/* dark surfaces keep light text */
body.theme-orange .glass, body.theme-orange .menu, body.theme-orange .pro-wrap, body.theme-orange .toast, body.theme-orange .dial { color: var(--ink); }
body.theme-orange .glass { background: rgba(11,11,12,.92); border-color: rgba(0,0,0,.6); box-shadow: 0 30px 70px -40px rgba(0,0,0,.6); }
body.theme-orange .panel::before { background: linear-gradient(var(--accent), transparent); }
/* text sitting straight on the orange page: black, like the banner */
body.theme-orange .hero-copy.glass, body.theme-orange .sec-head.glass { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--onpage); padding-left: 0; padding-right: 0; }
body.theme-orange .hero-title, body.theme-orange .big { color: var(--onpage); text-shadow: none; }
body.theme-orange .hero-sub, body.theme-orange .sec-head .lead { color: rgba(11,11,12,.78); }
body.theme-orange .hero .eyebrow { color: rgba(11,11,12,.7); }
body.theme-orange .hero .eyebrow .dot { background: var(--onpage); box-shadow: none; }
body.theme-orange .hero-title .stop, body.theme-orange .big .stop { color: #fff1e6; }
body.theme-orange .hero .btn-accent, body.theme-orange .sec-head .btn-accent { background: var(--onpage); border-color: var(--onpage); color: #fff; }
body.theme-orange .hero .btn-accent:hover, body.theme-orange .sec-head .btn-accent:hover { background: #fff; color: var(--onpage); }
/* top bar */
body.theme-orange .topbar .brand { color: var(--onpage); }
body.theme-orange .topbar .brand-mark { background: var(--onpage); border-color: var(--onpage); color: var(--accent); }
body.theme-orange .topbar .badge { color: var(--onpage); border-color: var(--onpage); }
body.theme-orange .ca-chip, body.theme-orange .topbar .btn-ghost { background: var(--onpage); border-color: var(--onpage); color: #fff; }
body.theme-orange .ca-addr { color: rgba(255,255,255,.75); }
/* footer, progress, nav fade, cursor */
body.theme-orange .footer { background: rgba(11,11,12,.92); color: var(--ink); }
body.theme-orange .progress span { background: var(--onpage); box-shadow: none; }
body.theme-orange .dial-fade { background: linear-gradient(transparent, rgba(242,97,31,.9) 70%); }
body.theme-orange .cursor-ring { border-color: rgba(11,11,12,.85); }
body.theme-orange .cursor-dot { background: var(--onpage); }
body.theme-orange .cursor.is-hover .cursor-ring { border-color: var(--onpage); background: rgba(0,0,0,.08); }
/* intro: orange screen, black wordmark */
body.theme-orange .intro { background: radial-gradient(60% 60% at 50% 50%, rgba(255,106,43,.2), rgba(242,97,31,.85) 100%); color: var(--onpage); }
body.theme-orange .intro-word { color: var(--onpage); text-shadow: none; }
body.theme-orange .intro-code { color: var(--onpage); }
body.theme-orange .intro-bar { background: rgba(0,0,0,.15); }
body.theme-orange .intro-bar span { background: var(--onpage); }
body.theme-orange .intro-enter { background: var(--onpage); border-color: var(--onpage); color: #fff; }
/* full terminal stays dark */
body.theme-orange.is-pro { background: #060708; }
body.theme-orange.is-pro .bg-fallback { background: #060708; }
body.theme-orange .term-price .big, body.theme-orange .glass .mono, body.theme-orange .glass b { color: var(--ink); }
body.theme-orange .glass .chg.up, body.theme-orange .glass .up { color: var(--accent); }
body.theme-orange .glass .cipher, body.theme-orange .glass .calc .hl b, body.theme-orange .glass .field > span b { color: var(--accent); }
body.theme-orange .glass .pos-row.is-sealed b, body.theme-orange .glass .spec-ticker .stop { color: var(--accent); }

/* ---------- v8: majors + terminal as the main feature ---------- */
.sec-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head-center .lead { margin: 0 auto; max-width: 820px; }
.cta-huge { margin-top: 34px; padding: 30px 56px; font-size: 28px; gap: 16px; border-radius: 999px; }
.cta-huge .ic { width: 30px; height: 30px; }
.cta-main { position: relative; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); animation: ctaPulse 2.4s ease-out infinite; }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); } 70% { box-shadow: 0 0 0 22px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.cta-sub { margin-top: 18px; font-size: 15px; }
.mk-group, .pro-group { padding: 14px 16px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.pro-group { padding: 10px 10px 4px; }
.ph-txt { display: grid !important; place-items: center; font-size: 11px; font-weight: 600; color: var(--accent); background: rgba(var(--accent-rgb), .12) !important; border-color: rgba(var(--accent-rgb), .4) !important; }
.pro-src { display: block; font-size: 12px; }
body.theme-orange .cta-main { animation-name: ctaPulseDark; }
@keyframes ctaPulseDark { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,.45); } 70% { box-shadow: 0 0 0 22px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
body.theme-orange .hero .btn-ghost { background: transparent; border-color: var(--onpage); color: var(--onpage); }
body.theme-orange .hero .btn-ghost:hover { background: var(--onpage); color: #fff; }
body.theme-orange .cta-sub { color: rgba(11,11,12,.7); }
/* orange theme: hero copy on light frosted glass */
body.theme-orange .hero-copy.glass { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38); box-shadow: 0 30px 80px -40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4); backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%); padding: 56px 64px 60px; border-radius: 32px; }

/* ---------- Nav reveal at the bottom of the page ---------- */
.dial { transition: transform .6s cubic-bezier(.2,.9,.25,1.25), opacity .8s ease .2s; transform-origin: 50% 100%; }
.dial-plate { position: absolute; left: 50%; top: 84px; width: 1000px; height: 250px; transform: translate(-50%, -50%) scale(.8); border-radius: 50%; background: rgba(8,9,11,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(var(--accent-rgb), .5); opacity: 0; pointer-events: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.25,1.25); }
.dial-hint { position: absolute; left: 50%; top: -30px; transform: translate(-50%, 12px); white-space: nowrap; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 8px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
body.at-bottom .dial { transform: translateX(-50%) translateY(-30px) scale(1.14); }
body.at-bottom .dial-plate { opacity: 1; transform: translate(-50%, -50%) scale(1); }
body.at-bottom .dial-hint { opacity: 1; transform: translate(-50%, 0); animation: hintBob 1.6s ease-in-out .6s infinite; }
body.at-bottom .dial-track { border-color: rgba(var(--accent-rgb), .9); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .06), 0 0 50px rgba(var(--accent-rgb), .45); }
body.at-bottom .dial-btn .lbl { opacity: 1 !important; }
body.at-bottom .dial-btn { opacity: 1 !important; }
body.at-bottom .dial-btn .node { border-color: rgba(var(--accent-rgb), .6); }
body.at-bottom .dial-menu { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); animation: ctaPulse 2s ease-out infinite; }
@keyframes hintBob { 50% { transform: translate(-50%, -6px); } }
body.theme-orange .dial-hint { background: #0b0b0c; color: #fff; }
@media (max-width: 900px) {
  .dial-plate { display: none; }
  .dial-hint { top: -44px; font-size: 12px; }
  body.at-bottom .dial { transform: translateX(-50%); }
  body.at-bottom .dial-items { border-top: 2px solid var(--accent); box-shadow: 0 -10px 40px rgba(var(--accent-rgb), .35); }
}
body { padding-bottom: calc(var(--nav-h) + 150px); }
body.theme-orange .dial-hint { background: #fff; color: #0b0b0c; }
