/* ═══════════════════════════ Tollix ═══════════════════════════ */
:root {
  --bg: #05070b;
  --bg-2: #0a0e16;
  --card: rgba(14, 19, 30, 0.66);
  --card-solid: #0d121c;
  --card-2: rgba(22, 29, 44, 0.55);
  --line: rgba(148, 163, 184, 0.11);
  --line-2: rgba(148, 163, 184, 0.2);
  --text: #edf2fa;
  --muted: #98a4b9;
  --dim: #637086;
  --mint: #8cffd9;
  --cyan: #4ec8ff;
  --violet: #a27cff;
  --amber: #ffc266;
  --red: #ff6b81;
  --green: #5ef0a8;
  --grad: linear-gradient(115deg, #8cffd9 0%, #4ec8ff 48%, #a27cff 100%);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(78, 200, 255, 0.35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 860px; }

/* ── Ambient background ── */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx .glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.55; will-change: transform; transform: translateZ(0); }
.bg-fx .g1 { width: 780px; height: 780px; left: -260px; top: -300px; background: radial-gradient(circle, rgba(78, 200, 255, 0.5), transparent 65%); animation: drift 22s ease-in-out infinite alternate; }
.bg-fx .g2 { width: 700px; height: 700px; right: -240px; top: 80px; background: radial-gradient(circle, rgba(162, 124, 255, 0.42), transparent 65%); animation: drift 26s ease-in-out infinite alternate-reverse; }
.bg-fx .g3 { width: 640px; height: 640px; left: 25%; top: 120vh; background: radial-gradient(circle, rgba(140, 255, 217, 0.18), transparent 65%); animation: drift 30s ease-in-out infinite alternate; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
}
.bg-fx .noise { position: absolute; inset: -50%; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.08); } }
.cursor-light { position: fixed; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.6s; background: radial-gradient(circle, rgba(78, 200, 255, 0.09), transparent 60%); }
.cursor-light.on { opacity: 1; }
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 14px rgba(78, 200, 255, 0.8); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(5, 7, 11, 0.45); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(5, 7, 11, 0.8); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand img { filter: drop-shadow(0 4px 18px rgba(78, 200, 255, 0.4)); transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 19, 30, 0.5); }
.nav a { padding: 7px 15px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(148, 163, 184, 0.1); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, top 0.3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ── Generic ── */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(140, 255, 217, 0.26), rgba(78, 200, 255, 0.05) 30%, transparent 60%, rgba(162, 124, 255, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shimmer { background: linear-gradient(110deg, #8cffd9 0%, #4ec8ff 30%, #a27cff 55%, #8cffd9 80%, #4ec8ff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer-text 7s linear infinite; }
@keyframes shimmer-text { to { background-position: -220% 0; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--grad); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14, 19, 30, 0.7); font-size: 13px; color: var(--muted); backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.live { background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 240, 168, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(94, 240, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 240, 168, 0); } }
.hint { color: var(--dim); font-size: 13px; margin: 8px 0 0; }
.error { color: var(--red); font-size: 14px; margin: 10px 0 0; font-weight: 500; }
.mono { font-family: var(--mono); }
.text-link { display: inline-block; margin-top: 18px; color: var(--cyan); font-weight: 600; font-size: 15px; }
.text-link:hover { color: var(--mint); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 15px;
  font-weight: 600; font-size: 15.5px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s, opacity 0.2s;
}
.btn.primary { color: #03111a; background: var(--grad); background-size: 150% 150%; box-shadow: 0 14px 44px -12px rgba(78, 200, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); z-index: -1; }
.btn.primary:hover { box-shadow: 0 22px 60px -14px rgba(78, 200, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); background-position: 100% 0; }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.ghost { background: rgba(148, 163, 184, 0.06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.34); }
.btn.ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn.big { height: 62px; padding: 0 34px; font-size: 17px; border-radius: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(148, 163, 184, 0.06); display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: color 0.2s, background 0.2s; flex: none; }
.icon-btn:hover { color: var(--text); background: rgba(148, 163, 184, 0.12); }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; padding: 4px; }
.link-btn:hover { color: var(--text); }

/* ═════════ HERO ═════════ */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: 40px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.045em; margin: 26px 0 26px; }
.hero-title .hl { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .hl > span { display: inline-block; }
.hero-in { animation: rise 1.05s var(--ease) both; animation-delay: calc(var(--d, 0) * 95ms + 120ms); }
.hero-title .hero-in { animation-name: rise-line; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise-line { from { transform: translateY(105%) rotate(4deg); } to { transform: none; } }
.lead { color: var(--muted); font-size: clamp(16px, 1.45vw, 18.5px); max-width: 600px; margin: 0 0 34px; }
.lead em { color: var(--text); font-style: normal; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--mint); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; justify-self: center; will-change: transform, opacity; animation: rise 1.4s var(--ease) 0.25s both; cursor: grab; }
.hero-visual:active { cursor: grabbing; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(78, 200, 255, 0.22), rgba(162, 124, 255, 0.1) 45%, transparent 70%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
.orbit { position: absolute; left: 50%; top: 47%; border-radius: 50%; border: 1px solid rgba(78, 200, 255, 0.18); transform-style: preserve-3d; pointer-events: none; }
.orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px 3px rgba(140, 255, 217, 0.8); top: -4px; left: 50%; }
.orbit.o1 { width: 92%; height: 92%; margin: -46% 0 0 -46%; animation: orbit1 18s linear infinite; }
.orbit.o2 { width: 76%; height: 76%; margin: -38% 0 0 -38%; border-color: rgba(162, 124, 255, 0.16); animation: orbit2 26s linear infinite; }
.orbit.o2::after { background: var(--violet); box-shadow: 0 0 16px 3px rgba(162, 124, 255, 0.8); }
@keyframes orbit1 { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbit2 { from { transform: rotateX(64deg) rotateY(18deg) rotateZ(360deg); } to { transform: rotateX(64deg) rotateY(18deg) rotateZ(0deg); } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(12, 17, 27, 0.62); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); white-space: nowrap; pointer-events: none; }
.chip-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.chip.live-chip { padding: 10px 15px; }
.chip.live-chip small { display: block; color: var(--dim); font-size: 10.5px; font-family: var(--mono); letter-spacing: 0.04em; font-weight: 500; text-transform: uppercase; }
.chip.live-chip b { display: block; font-family: var(--mono); font-size: 15px; margin-top: 1px; }
.float { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.c1 { left: 2%; top: 22%; animation-delay: -1s; }
.c2 { right: 4%; top: 14%; animation-delay: -3s; }
.c3 { right: 0%; top: 58%; animation-delay: -2s; }
.c4 { left: 6%; top: 66%; animation-delay: -4s; }
.c5 { left: -4%; top: 44%; animation-delay: -2.5s; }
.c6 { right: 8%; bottom: 4%; animation-delay: -5s; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; animation: rise 1s var(--ease) 1.2s both; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ═════════ LIVE BOARD ═════════ */
.board-section { padding: 30px 0 110px; }
/* 3D transforms enlarge bounding boxes; clip horizontally so phones never zoom out (clip keeps sticky working) */
html, body, .hero, .board-section, .section, .how, .final { overflow-x: clip; }
.board-stage { perspective: 1600px; }
.board { padding: 30px; transform-origin: 50% 0%; will-change: transform; overflow: hidden; }
.board-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 70% at 50% -10%, rgba(78, 200, 255, 0.14), transparent 60%); }
.board-head { position: relative; display: flex; justify-content: space-between; gap: 20px 28px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.board h2 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; margin: 10px 0 0; letter-spacing: -0.03em; font-weight: 700; }
.board-controls { display: flex; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(5, 7, 11, 0.6); border: 1px solid var(--line); border-radius: 14px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.25s, color 0.25s, box-shadow 0.25s; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: rgba(78, 200, 255, 0.13); color: var(--text); box-shadow: inset 0 0 0 1px rgba(78, 200, 255, 0.35), 0 6px 20px -8px rgba(78, 200, 255, 0.6); }
.board-body { position: relative; min-height: 200px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { position: relative; padding: 22px 22px 20px; border-radius: 18px; background: linear-gradient(180deg, rgba(22, 29, 44, 0.75), rgba(12, 16, 25, 0.6)); border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s; }
.tier:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tier.mid { border-color: rgba(78, 200, 255, 0.4); box-shadow: 0 30px 60px -30px rgba(78, 200, 255, 0.45); }
.tier .t-name { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.tier .t-name small { color: var(--dim); font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); }
.tier .t-val { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.03em; margin: 14px 0 2px; }
.tier .t-val span { font-size: 0.45em; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.tier .t-usd { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.tier .t-sub { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--dim); font-size: 12.5px; font-family: var(--mono); }
.tier .t-meter { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; transition: transform 1s var(--ease); box-shadow: 0 0 12px rgba(78, 200, 255, 0.8); }
.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.board-stats div { padding: 14px 18px; border-radius: 14px; background: rgba(5, 7, 11, 0.45); border: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.board-stats b { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.board-stats span { color: var(--dim); font-size: 13px; }
.board-foot { position: relative; margin-top: 18px; color: var(--dim); font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--mono); }
.board-error { padding: 40px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.board-error button { margin-top: 12px; }
.skeleton-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skeleton-rows i { display: block; height: 170px; border-radius: 18px; background: linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.13), rgba(148, 163, 184, 0.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: rgba(10, 14, 22, 0.45);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 30px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.marquee-track b { color: var(--cyan); font-size: 10px; align-self: center; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═════════ Sections ═════════ */
.section { padding: 130px 0 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 20px; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }

/* ═════════ Bento ═════════ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.tile {
  position: relative; padding: 28px; border-radius: 24px; overflow: hidden; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(18, 24, 37, 0.8), rgba(10, 14, 22, 0.75)); border: 1px solid var(--line);
  box-shadow: var(--shadow); transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.tile.hovering { transition: transform 0.12s linear, border-color 0.3s; border-color: var(--line-2); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(78, 200, 255, 0.13), transparent 45%); }
.tile.hovering::after { opacity: 1; }
.tile.t-wide { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 26px; justify-content: space-between; }
.tile.t-full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; min-height: 300px; }
.tile-copy { display: flex; flex-direction: column; justify-content: flex-end; max-width: 400px; position: relative; z-index: 1; }
.tile.t-full .tile-copy { max-width: 460px; justify-content: center; }
.tile-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 8px; }
.tile-tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tile h3 { font-family: var(--display); font-size: 25px; line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 10px; position: relative; z-index: 1; transform: translateZ(30px); }
.tile p { color: var(--muted); font-size: 15px; margin: 0; position: relative; z-index: 1; }
.tile p em { color: var(--text); font-style: normal; font-weight: 600; }
.viz { position: relative; flex: 1; min-height: 130px; margin-bottom: 22px; transform: translateZ(50px); }
.tile.t-wide .viz, .tile.t-full .viz { margin-bottom: 0; }

/* viz: priority bars */
.viz-bars { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.viz-bars .bars { display: flex; align-items: flex-end; gap: 6px; height: 210px; }
.viz-bars .bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--cyan), rgba(78, 200, 255, 0.15)); transform-origin: bottom; animation: eq 2.8s ease-in-out infinite; animation-delay: var(--t); }
.viz-bars .bars i.hot { background: linear-gradient(180deg, var(--red), rgba(255, 107, 129, 0.15)); box-shadow: 0 0 18px -4px rgba(255, 107, 129, 0.7); }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.72); } }
.p90-line { position: absolute; left: 0; right: 0; bottom: 116px; border-top: 1.5px dashed rgba(255, 194, 102, 0.7); z-index: 2; }
.p90-line span { position: absolute; right: 0; top: -24px; font-family: var(--mono); font-size: 11px; color: var(--amber); background: rgba(10, 14, 22, 0.85); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255, 194, 102, 0.3); }

/* viz: coins into slot */
.viz-coins { display: grid; place-items: center; }
.viz-coins .slot { position: absolute; bottom: 10px; left: 50%; width: 110px; height: 14px; margin-left: -55px; border-radius: 8px; background: rgba(5, 7, 11, 0.9); border: 1px solid rgba(162, 124, 255, 0.5); box-shadow: 0 0 30px -4px rgba(162, 124, 255, 0.7), inset 0 2px 6px rgba(0, 0, 0, 0.8); }
.viz-coins i { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: calc(-15px + var(--x)); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #d7c8ff 18%, var(--violet) 55%, #5b3fc4 100%); box-shadow: 0 0 18px rgba(162, 124, 255, 0.7); animation: coin 3s cubic-bezier(.5, 0, .75, 0) infinite; animation-delay: var(--t); opacity: 0; }
@keyframes coin { 0% { transform: translateY(-10px) rotateY(0deg); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 85% { transform: translateY(112px) rotateY(540deg) scaleX(0.3); opacity: 0; } 100% { opacity: 0; transform: translateY(112px); } }

/* viz: fee flow */
.viz-flow svg { width: 100%; height: 100%; max-height: 150px; }
.flow-base { fill: none; stroke: rgba(148, 163, 184, 0.14); stroke-width: 2; }
.flow { fill: none; stroke: url(#fl); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 170; animation: flow 2.4s linear infinite; filter: drop-shadow(0 0 4px rgba(140, 255, 217, 0.8)); }
.flow.f2 { animation-delay: -0.8s; } .flow.f3 { animation-delay: -1.6s; }
@keyframes flow { from { stroke-dashoffset: 184; } to { stroke-dashoffset: 0; } }
.node { fill: rgba(10, 14, 22, 0.9); stroke: rgba(140, 255, 217, 0.6); stroke-width: 1.5; }
.node.main { stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(78, 200, 255, 0.8)); }

/* viz: failed tx list */
.viz-tx { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.txrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(5, 7, 11, 0.55); border: 1px solid var(--line); }
.txrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.txrow b { flex: 1; height: 7px; border-radius: 4px; background: rgba(148, 163, 184, 0.16); }
.txrow s { text-decoration: none; font-family: var(--mono); font-size: 10.5px; color: var(--green); }
.txrow.fail { animation: failflash 4s ease-in-out infinite; }
.txrow.fail.f2 { animation-delay: 2s; }
.txrow.fail i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.txrow.fail s { color: var(--red); }
@keyframes failflash { 0%, 60%, 100% { border-color: var(--line); background: rgba(5, 7, 11, 0.55); } 70%, 90% { border-color: rgba(255, 107, 129, 0.6); background: rgba(255, 107, 129, 0.08); transform: translateX(4px); } }

/* viz: compute */
.viz-cu { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.cu-label { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.cu-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 194, 102, 0.35); background: rgba(5, 7, 11, 0.6); }
.cu-bar .used { width: 34%; background: linear-gradient(90deg, var(--cyan), var(--mint)); animation: cufill 4s var(--ease) infinite; }
.cu-bar .waste { flex: 1; background: repeating-linear-gradient(135deg, rgba(255, 194, 102, 0.35) 0 6px, rgba(255, 194, 102, 0.08) 6px 12px); animation: hatch 1.2s linear infinite; background-size: 17px 17px; }
@keyframes cufill { 0% { width: 6%; } 45%, 100% { width: 34%; } }
@keyframes hatch { to { background-position: 17px 0; } }
.cu-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.cu-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cu-legend b { width: 10px; height: 10px; border-radius: 3px; }
.cu-legend .u { background: var(--cyan); } .cu-legend .w { background: rgba(255, 194, 102, 0.6); }

/* viz: percentile curve */
.viz-curve { flex: 1; height: 220px; min-height: 220px; }
.viz-curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve { fill: none; stroke-width: 3; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 8px rgba(78, 200, 255, 0.6)); }
.tile.in .curve { animation: draw 2.2s var(--ease) 0.2s forwards; }
.curve-fill { opacity: 0; }
.tile.in .curve-fill { animation: fadein 1.2s ease 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.mk { position: absolute; bottom: 0; top: 0; width: 0; border-left: 1.5px dashed rgba(148, 163, 184, 0.4); opacity: 0; transform: translateY(10px); }
.mk span { position: absolute; top: -4px; left: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 7px; background: rgba(10, 14, 22, 0.9); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.mk.m50 { left: 30%; } .mk.m75 { left: 48%; } .mk.m90 { left: 62%; border-color: rgba(255, 194, 102, 0.6); }
.mk.m90 span { color: var(--amber); border-color: rgba(255, 194, 102, 0.4); }
.mk.you { left: 88%; border-left: 2px solid var(--red); }
.mk.you span { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 20px rgba(255, 107, 129, 0.6); }
.tile.in .mk { animation: mkin 0.7s var(--ease) forwards; }
.tile.in .mk.m50 { animation-delay: 1.2s; } .tile.in .mk.m75 { animation-delay: 1.4s; } .tile.in .mk.m90 { animation-delay: 1.6s; }
.tile.in .mk.you { animation: mkin 0.7s var(--ease) 2.1s forwards, youpulse 2s ease-in-out 3s infinite; }
@keyframes mkin { to { opacity: 1; transform: none; } }
@keyframes youpulse { 50% { filter: drop-shadow(0 0 10px rgba(255, 107, 129, 0.9)); } }

/* Calculator */
.calc { margin-top: 18px; padding: 34px; display: grid; grid-template-columns: 0.9fr 1.3fr 0.9fr; gap: 34px; align-items: center; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease); }
.calc.hovering { transition: transform 0.12s linear; }
.calc h3 { font-family: var(--display); font-size: 28px; line-height: 1.12; margin: 0 0 10px; letter-spacing: -0.02em; }
.calc-copy p { color: var(--muted); margin: 0; font-size: 15px; }
.calc-inputs { display: grid; gap: 14px; }
.calc-inputs label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; }
.range-top output { color: var(--text); font-family: var(--mono); font-size: 15px; font-weight: 600; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc input[type="number"] { height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 7, 11, 0.6); font-family: var(--mono); font-size: 14.5px; width: 100%; }
.calc input[type="number"]:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(78, 200, 255, 0.18); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan) var(--p, 13%), rgba(148, 163, 184, 0.18) var(--p, 13%)); outline: none; margin: 8px 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--cyan); cursor: pointer; box-shadow: 0 0 0 4px rgba(78, 200, 255, 0.18); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--cyan); cursor: pointer; }
.calc-out { text-align: right; }
.calc-big { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.calc-big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-big small { display: block; font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 8px; font-family: var(--font); }
.calc-usd { font-family: var(--mono); color: var(--text); margin-top: 10px; font-size: 16px; }
.calc-split { color: var(--dim); font-size: 12.5px; margin-top: 10px; line-height: 1.7; }

/* ═════════ HOW (3D scroll stack) ═════════ */
.how { margin-top: 130px; }
.how-track { height: 420vh; position: relative; }
.how-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.how-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 18px; }
.how-sub { color: var(--muted); font-size: 17px; margin: 0 0 34px; }
.how-steps { list-style: none; padding: 0 0 0 26px; margin: 0; display: grid; gap: 6px; position: relative; }
.how-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--dim); transition: color 0.4s, transform 0.4s var(--ease); }
.how-steps li span { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); transition: all 0.4s; }
.how-steps li.active { color: var(--text); transform: translateX(8px); }
.how-steps li.active span { color: #03111a; background: var(--grad); border-color: transparent; box-shadow: 0 0 20px rgba(78, 200, 255, 0.6); }
.how-progress { position: absolute; display: none; }
.how-copy { position: relative; }
.how-copy .how-progress { display: block; left: 0; bottom: 14px; width: 2px; height: 196px; background: rgba(148, 163, 184, 0.14); border-radius: 2px; }
.how-progress i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: top; transform: scaleY(0); border-radius: 2px; box-shadow: 0 0 10px rgba(78, 200, 255, 0.7); }
.stack3d { position: relative; height: 480px; perspective: 1500px; transform-style: preserve-3d; }
.scard {
  position: absolute; inset: 0; padding: 38px; border-radius: 28px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #161e2e, #0b1019 70%); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 -1px 0 rgba(255, 255, 255, 0.08) inset;
  transform-origin: 50% 100%; will-change: transform, opacity; backface-visibility: hidden;
}
.scard > * { opacity: var(--co, 1); transition: opacity 0.15s linear; }
.scard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(100% 60% at 100% 0%, rgba(78, 200, 255, 0.12), transparent 60%); }
.scard .step-n { font-family: var(--mono); font-size: 13px; color: var(--cyan); padding: 5px 11px; border-radius: 9px; border: 1px solid rgba(78, 200, 255, 0.3); background: rgba(78, 200, 255, 0.08); align-self: flex-start; }
.scard h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; margin: 22px 0 12px; line-height: 1.08; }
.scard p { color: var(--muted); font-size: 16.5px; margin: 0; max-width: 520px; }
.mock { margin-top: auto; padding: 18px; border-radius: 18px; background: rgba(5, 7, 11, 0.7); border: 1px solid var(--line); }
.mock-input { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; color: var(--dim); }
.mock-input svg { width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 1.8; flex: none; }
.stack3d > *, .mock > * { min-width: 0; }
.mock-input .type { min-width: 0; text-overflow: clip; overflow: hidden; white-space: nowrap; max-width: 0; animation: typing 4s steps(29) infinite; }
.mock-input .caret { width: 2px; height: 20px; background: var(--cyan); animation: blink 0.9s steps(1) infinite; }
.mock-input b { margin-left: auto; padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line-2); font-family: var(--font); font-size: 12.5px; color: var(--muted); }
@keyframes typing { 0% { max-width: 0; } 55%, 100% { max-width: 290px; } }
@keyframes blink { 50% { opacity: 0; } }
.mock-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mock-pills span { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.mock-pills small { display: block; font-family: var(--mono); color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.mock-pills .on { border-color: rgba(78, 200, 255, 0.5); background: rgba(78, 200, 255, 0.1); box-shadow: 0 0 24px -6px rgba(78, 200, 255, 0.7); }
.mock-receipt .rbar { display: flex; height: 12px; border-radius: 7px; overflow: hidden; margin-bottom: 14px; }
.mock-receipt .rbar i { width: var(--w); background: var(--c); }
.mock-receipt .rl { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mock-receipt .rl b { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.mock-receipt .rl i { flex: 1; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.05)); }
.mock-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-presets span { text-align: center; padding: 16px 8px; border-radius: 13px; border: 1px solid var(--line-2); font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--muted); }
.mock-presets .on { color: var(--text); border-color: rgba(78, 200, 255, 0.55); background: rgba(78, 200, 255, 0.1); box-shadow: 0 0 30px -6px rgba(78, 200, 255, 0.7); }

/* ═════════ APP ═════════ */
.audit-frame { position: relative; border-radius: 26px; padding: 1.5px; background: conic-gradient(from var(--ang), rgba(140, 255, 217, 0.7), rgba(78, 200, 255, 0.1) 25%, rgba(162, 124, 255, 0.7) 50%, rgba(78, 200, 255, 0.1) 75%, rgba(140, 255, 217, 0.7)); animation: spinang 8s linear infinite; box-shadow: 0 40px 120px -40px rgba(78, 200, 255, 0.35); }
@keyframes spinang { to { --ang: 360deg; } }
.audit-frame .audit { border-radius: 25px; background: rgba(10, 14, 22, 0.96); border: 0; }
.audit-frame .audit::before { display: none; }
.audit { padding: 30px; }
.field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.input-row { display: flex; gap: 12px; }
.input-wrap { flex: 1; position: relative; display: flex; align-items: center; min-width: 0; }
.input-wrap > svg { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input {
  width: 100%; height: 56px; padding: 0 120px 0 48px; border-radius: 15px; border: 1px solid var(--line-2);
  background: rgba(5, 7, 11, 0.75); font-family: var(--mono); font-size: 15px; letter-spacing: 0.01em; transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap input::placeholder { color: var(--dim); font-family: var(--font); }
.input-wrap input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(78, 200, 255, 0.15); }
.input-wrap input.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.12); }
.input-row .btn { height: 56px; }
.mini { position: absolute; right: 9px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(148, 163, 184, 0.08); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); transition: color 0.2s, background 0.2s; }
.mini:hover { color: var(--text); background: rgba(148, 163, 184, 0.15); }
.mini.clear { right: 78px; width: 32px; padding: 0; height: 32px; border: 0; background: transparent; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.options label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
select {
  height: 48px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background-color: rgba(5, 7, 11, 0.75); appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 14.5px; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2395a1b6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(78, 200, 255, 0.15); }
select option { background: #0e131d; }
.advanced { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: "+"; font-family: var(--mono); color: var(--cyan); width: 14px; }
.advanced[open] summary::before { content: "–"; }
.adv-body p { color: var(--dim); font-size: 13.5px; margin: 10px 0; }
.adv-row { display: flex; gap: 10px; }
.adv-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(5, 7, 11, 0.7); font-family: var(--mono); font-size: 13px; }
.adv-row input:focus { outline: none; border-color: var(--cyan); }
.progress { margin-top: 22px; padding: 16px; border-radius: 14px; background: rgba(5, 7, 11, 0.55); border: 1px solid var(--line); }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.bar { height: 6px; border-radius: 6px; background: rgba(148, 163, 184, 0.14); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; width: 0%; background: var(--grad); border-radius: 6px; transition: width 0.3s ease; box-shadow: 0 0 18px rgba(78, 200, 255, 0.6); }
.bar.indeterminate i { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* Results */
.results { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.results > *, .receipt > *, .kpis > *, .presets > *, .hero-grid > *, .bento > *, .calc > *, .how-grid > *, .tiers > * { min-width: 0; }
.results > .card { animation: rise 0.8s var(--ease) both; }
.results > .card:nth-child(2) { animation-delay: 0.08s; } .results > .card:nth-child(3) { animation-delay: 0.16s; } .results > .card:nth-child(4) { animation-delay: 0.24s; }
.r-card { padding: 28px; }
.r-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.r-head h3 { font-family: var(--display); font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.r-meta { color: var(--muted); font-size: 14px; }
.r-meta a { color: var(--cyan); }
.r-meta a:hover { text-decoration: underline; }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; margin-top: 26px; align-items: start; }
.total-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.total-big { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 5.4vw, 68px); letter-spacing: -0.04em; line-height: 1.02; margin: 6px 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.total-big small { font-size: 0.4em; color: var(--muted); -webkit-text-fill-color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.total-usd { font-family: var(--mono); color: var(--text); font-size: 17px; }
.total-sub { color: var(--muted); font-size: 14px; margin-top: 14px; line-height: 1.8; }
.total-sub b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.stack { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: rgba(148, 163, 184, 0.12); margin-bottom: 18px; }
.stack i { display: block; height: 100%; transition: width 0.9s var(--ease); width: 0; }
.lines { display: grid; gap: 2px; }
.line { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.line:last-child { border-bottom: 0; }
.line .sw { width: 12px; height: 12px; border-radius: 4px; }
.line .l-name small { display: block; color: var(--dim); font-size: 12px; }
.line .l-sol { font-family: var(--mono); font-weight: 600; text-align: right; }
.line .l-pct { font-family: var(--mono); color: var(--muted); font-size: 13px; min-width: 52px; text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 20px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; margin: 6px 0 4px; }
.kpi small { color: var(--dim); font-size: 12.5px; line-height: 1.5; display: block; }
.kpi.warn b { color: var(--amber); }
.kpi.bad b { color: var(--red); }
.kpi.good b { color: var(--green); }
.verdict { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; margin: 20px 0; border: 1px solid; }
.verdict.bad { background: rgba(255, 107, 129, 0.07); border-color: rgba(255, 107, 129, 0.28); }
.verdict.warn { background: rgba(255, 194, 102, 0.07); border-color: rgba(255, 194, 102, 0.28); }
.verdict.good { background: rgba(94, 240, 168, 0.06); border-color: rgba(94, 240, 168, 0.26); }
.verdict.neutral { background: rgba(148, 163, 184, 0.06); border-color: var(--line-2); }
.verdict .v-icon { font-size: 22px; line-height: 1; flex: none; margin-top: 2px; }
.verdict b { font-size: 16px; display: block; margin-bottom: 3px; }
.verdict p { margin: 0; color: var(--muted); font-size: 14.5px; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preset { padding: 18px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.preset.rec { border-color: rgba(78, 200, 255, 0.45); box-shadow: 0 0 0 1px rgba(78, 200, 255, 0.15), 0 20px 50px -25px rgba(78, 200, 255, 0.5); }
.preset h4 { margin: 0 0 2px; font-family: var(--display); font-size: 18px; display: flex; align-items: center; justify-content: space-between; }
.preset h4 small { font-family: var(--mono); font-size: 11.5px; color: var(--dim); font-weight: 500; }
.preset .tag { font-size: 10.5px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.preset dl { margin: 12px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; }
.preset dt { color: var(--muted); }
.preset dd { margin: 0; font-family: var(--mono); font-weight: 600; text-align: right; }
.table-wrap { overflow-x: auto; margin-top: 14px; border-radius: 14px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
th, td { padding: 11px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(5, 7, 11, 0.5); position: sticky; top: 0; }
td { font-family: var(--mono); }
tbody tr:hover { background: rgba(148, 163, 184, 0.05); }
tbody tr:last-child td { border-bottom: 0; }
td a { color: var(--cyan); }
td a:hover { text-decoration: underline; }
.side { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; font-family: var(--font); }
.side.buy { color: var(--green); background: rgba(94, 240, 168, 0.1); }
.side.sell { color: var(--red); background: rgba(255, 107, 129, 0.1); }
.r-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; color: var(--dim); font-size: 13px; }
.empty { text-align: center; padding: 44px 26px; }
.empty .e-icon { font-size: 40px; margin-bottom: 8px; }
.empty h3 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 auto; max-width: 520px; }
.notes { color: var(--dim); font-size: 13px; line-height: 1.7; margin: 0; padding-left: 18px; }
.sub-h { font-family: var(--display); font-size: 19px; margin: 0; }

/* ── CA ── */
.ca { padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ca-left { display: flex; gap: 18px; align-items: center; }
.ca-left .kicker { margin-bottom: 4px; }
.ca-title { font-family: var(--display); font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.ca-left .hint { margin-top: 4px; }
.ca-right { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; justify-content: flex-end; }
.ca-value { font-family: var(--mono); font-size: 14.5px; padding: 11px 16px; border-radius: 12px; background: rgba(5, 7, 11, 0.7); border: 1px solid var(--line-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 520px; color: var(--muted); }
.ca-value.set { color: var(--text); }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: var(--line-2); background: rgba(18, 24, 37, 0.85); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

/* ── Final CTA ── */
.final { padding: 140px 0 0; }
.final-card { position: relative; overflow: hidden; text-align: center; padding: 90px 28px; border-radius: 34px; border: 1px solid var(--line-2); background: radial-gradient(80% 120% at 50% 0%, rgba(78, 200, 255, 0.14), transparent 60%), rgba(10, 14, 22, 0.8); isolation: isolate; }
.final-ring { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: conic-gradient(from var(--ang), transparent, rgba(78, 200, 255, 0.35), transparent 30%, rgba(162, 124, 255, 0.35), transparent 60%, rgba(140, 255, 217, 0.3), transparent); filter: blur(60px); animation: spinang 14s linear infinite; z-index: -1; opacity: 0.8; }
.final-logo { margin: 0 auto 24px; filter: drop-shadow(0 10px 40px rgba(78, 200, 255, 0.6)); animation: bob 6s ease-in-out infinite; }
.final h2 { font-family: var(--display); font-size: clamp(42px, 7vw, 92px); letter-spacing: -0.05em; line-height: 1; margin: 0 0 18px; }
.final p { color: var(--muted); font-size: 18px; margin: 0 0 34px; }

/* ── Footer ── */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); background: rgba(5, 7, 11, 0.75); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.f-brand p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; max-width: 380px; }
.f-links { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: flex-start; }
.f-links a { color: var(--muted); font-size: 14.5px; }
.f-links a:hover { color: var(--text); }
.f-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; color: var(--dim); font-size: 13px; }
.f-bottom a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #111827; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 14px; font-weight: 500; transition: opacity 0.25s, transform 0.25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 14px; text-align: center; background: #2a1520; color: #fff; z-index: 200; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(34px) scale(0.98); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.tile.reveal.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Legal page ── */
.legal { padding: 64px 0 0; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.05; }
.legal .updated { color: var(--dim); font-family: var(--mono); font-size: 13px; }
.legal-body { padding: 34px; margin-top: 32px; }
.legal-body h2 { font-family: var(--display); font-size: 21px; margin: 30px 0 10px; letter-spacing: -0.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15.5px; }
.legal-body ul { padding-left: 20px; }
.legal-body strong { color: var(--text); }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.back-link:hover { color: var(--text); }

/* ═════════ Responsive ═════════ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero { min-height: 0; padding-top: 40px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual { max-width: 520px; order: -1; margin-bottom: 0; }
  .scroll-cue { display: none; }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-copy { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.t-wide, .tile.t-full { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .how { margin-top: 110px; }
  .how-track { height: auto; }
  .how-sticky { position: static; height: auto; overflow: visible; display: block; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-steps, .how-copy .how-progress { display: none; }
  .stack3d { height: auto; perspective: none; display: grid; gap: 16px; }
  .scard { position: relative; inset: auto; min-height: 0; padding: 28px; }
  .mock { margin-top: 22px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: rgba(5, 7, 11, 0.97); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s; backdrop-filter: blur(16px); }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .burger { display: block; }
  .board-head { align-items: flex-start; }
  .board-controls { width: 100%; }
  .tabs { flex: 1; overflow-x: auto; }
  .tab { flex: 1; }
  .tiers, .skeleton-rows { grid-template-columns: 1fr; }
  .skeleton-rows i { height: 110px; }
  .receipt { grid-template-columns: 1fr; }
  .presets { grid-template-columns: 1fr; }
  .section { padding-top: 100px; }
  .tile.t-wide, .tile.t-full { flex-direction: column-reverse; align-items: stretch; }
  .tile.t-full .viz { width: 100%; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero-title { font-size: clamp(44px, 13vw, 60px); }
  .hero-visual { max-width: 380px; margin-bottom: 8px; }
  .chip { font-size: 11.5px; padding: 7px 11px; }
  .chip.live-chip { padding: 8px 12px; }
  .chip.live-chip b { font-size: 13px; }
  .c1, .c2, .c3, .c4 { display: none; }
  .c5 { left: 0; top: auto; bottom: 0; } .c6 { right: 0; bottom: 0; }
  .board { padding: 20px; }
  .board-stats { grid-template-columns: 1fr; gap: 8px; }
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 24px; }
  .viz { min-height: 120px; }
  .viz-bars .bars { height: 150px; }
  .p90-line { bottom: 84px; }
  .viz-curve { height: 180px; min-height: 180px; }
  .calc { grid-template-columns: 1fr; padding: 24px; }
  .calc-out { text-align: left; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }
  .options { grid-template-columns: 1fr; }
  .audit, .r-card { padding: 20px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 16px; }
  .kpi b { font-size: 22px; }
  .tab { font-size: 12px; padding: 8px 6px; }
  .line { grid-template-columns: 12px 1fr auto; }
  .line .l-pct { display: none; }
  .ca { padding: 20px; }
  .ca-right { justify-content: stretch; width: 100%; }
  .ca-value { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-body { padding: 22px; }
  .adv-row { flex-wrap: wrap; }
  .adv-row input { flex-basis: 100%; }
  .final-card { padding: 64px 20px; }
  .mock-input .type { font-size: 12px; }
}
@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .curve { stroke-dashoffset: 0; } .curve-fill, .mk { opacity: 1; transform: none; }
}
