/* Bansun: landing page sections. */

main { position: relative; z-index: 3; }
.scene { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px max(7vw, 32px) 120px; display: flex; align-items: center; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mono { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; }

/* ---------- hero ---------- */

.hero { align-items: center; }
.hero::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -10%; width: 70vw; height: 90vh; transform: translateX(-35%);
  background: radial-gradient(closest-side, rgba(70, 200, 80, 0.32), rgba(30, 120, 50, 0.12) 55%, transparent);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; }
.hero-inner > .label { margin-bottom: 26px; }
.hero-title { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0 4vw; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-left, .hero-right { display: block; will-change: transform, opacity; transition: opacity 0.2s linear; }
.hero-right { padding-top: 0.92em; justify-self: end; text-align: left; }
.hero-desc { position: absolute; right: 0; top: 12px; max-width: 250px; }
.hero-cta { margin-top: 34px; }
.token-contract { position: relative; isolation: isolate; width: 100%; max-width: 960px; box-sizing: border-box; margin: 44px auto 0; padding: 16px 0; border: 0; background: transparent; box-shadow: none; text-align: center; }
.token-contract-heading { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }
.token-contract-heading strong { color: var(--accent); font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -.03em; }
.token-contract-heading span { color: #c4cec4; }
.token-address { display: block; width: 100%; min-height: 52px; margin: 16px 0 20px; padding: 10px 4px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: #edf5eb; transition: color .2s; }
.token-address:hover { color: var(--accent); background: transparent; }
.token-address:focus-visible, .token-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.token-contract code { display: block; font-size: clamp(15px, 2.5vw, 26px); line-height: 1.6; overflow-wrap: anywhere; color: inherit; user-select: all; }
.token-contract-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 12px; }
.token-action { display: inline-flex; justify-content: center; align-items: center; gap: 10px; box-sizing: border-box; min-width: 156px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.3; text-decoration: none; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.token-action-copy { background: var(--accent); color: #0a1807; }
.token-action-copy:hover { background: #b0ff7e; }
.token-action-copy::before { content: ''; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1807' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='13' height='13' rx='2'/%3E%3Cpath d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") center / contain no-repeat; }
.token-action-explorer { background: transparent; color: #d3ddd1; }
.token-action-explorer:hover { color: var(--accent); }
.token-action svg { width: 16px; height: 16px; flex: none; }
.token-action:active { transform: translateY(1px); }
@media (max-width: 480px) {
  .token-contract-actions { gap: 8px; }
  .token-action { min-width: 0; padding: 12px 16px; }
}
.token-copy-status { display: block; min-height: 18px; margin-top: 14px; color: #c4cec4; font-size: 12px; }
.token-copy-particles { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.token-copy-particle { position: absolute; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px rgba(141, 255, 74, .7); animation: token-copy-burst 850ms ease-out forwards; }
.token-copy-particle:nth-child(3n) { width: 3px; height: 3px; background: #f1ffe9; }
@keyframes token-copy-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(.15); }
}
@media (prefers-reduced-motion: reduce) {
  .token-copy-particle { animation: none; display: none; }
  .token-address, .token-action { transition: none; }
  .token-action:active { transform: none; }
}

/* ---------- drift ---------- */

.drift { justify-content: center; min-height: 80vh; }
.drift-inner { display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 900px; }
.drift-line {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15;
  font-size: clamp(26px, 3.6vw, 48px); color: var(--text); text-align: center; text-wrap: balance;
  min-height: 2.4em; margin: 0; width: 100%;
}
.drift-line .w { display: inline-block; white-space: pre-wrap; opacity: 0; transform: translateY(0.45em); filter: blur(8px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.drift-line.is-in .w { opacity: 1; transform: none; filter: none; }
.drift-line.is-out .w { opacity: 0; transform: translateY(-0.4em); filter: blur(8px); transition-duration: 0.45s; transition-delay: calc(var(--i) * 18ms); }
.drift-line .hl { color: var(--accent); }
.drift-dots { display: flex; gap: 8px; }
.drift-dots button { width: 22px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: var(--line-strong); cursor: pointer; transition: background 0.4s, width 0.4s var(--ease-out); }
.drift-dots button[aria-selected='true'] { width: 38px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

/* ---------- live scam check ---------- */

.beam-scene { overflow: hidden; align-items: flex-start; padding-top: 150px; min-height: 100vh; }
.beam-grid { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.beam-grid .h2 { margin-bottom: 30px; max-width: 640px; }
.beam-side { padding-top: 120px; max-width: 440px; justify-self: end; }
.beam-side .small { margin: 14px 0 18px; }
.mini-check { padding: 14px; display: grid; gap: 10px; }
.mini-check textarea {
  width: 100%; resize: vertical; min-height: 78px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35); padding: 11px 12px; font-size: 13.5px; outline: none; transition: border-color 0.3s;
}
.mini-check textarea:focus { border-color: rgba(141, 255, 74, 0.45); }
.mini-result { min-height: 24px; font-size: 13px; }
.risk { display: grid; gap: 8px; }
.risk-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.risk-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; transition: width 0.8s var(--ease-out), background 0.4s; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.risk[data-level='medium'] .risk-bar i { background: var(--warn); box-shadow: 0 0 12px rgba(255, 207, 74, 0.6); }
.risk[data-level='high'] .risk-bar i { background: var(--danger); box-shadow: 0 0 12px rgba(255, 107, 90, 0.6); }
.risk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.risk-head strong { font-weight: 500; }
.risk ul { margin: 0; padding-left: 16px; color: var(--text-2); }
.risk li { margin: 2px 0; }

/* ---------- privacy robe scan ---------- */

.robe-grid { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.robe-copy .h2 { margin: 18px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 13.5px; color: var(--text-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--accent); box-shadow: 0 0 8px var(--glow); }
/* Scan card: an instrument screen, graph-paper grid, wireframe face, mosaic anonymisation.
   Deliberately a different visual language from the starry particle background. */
.scan-card {
  position: relative; aspect-ratio: 4 / 3.4; max-width: 100%; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(40, 110, 60, 0.22), transparent 70%),
    linear-gradient(rgba(170, 255, 180, 0.045) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(170, 255, 180, 0.045) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(160deg, rgba(10, 26, 15, 0.92), rgba(3, 10, 6, 0.96));
}
.scan-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-hud { position: absolute; top: 20px; right: 22px; display: grid; justify-items: end; gap: 6px; }
.scan-state { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.scan-state b { font-weight: 500; }
.scan-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px rgba(255, 207, 74, 0.8); animation: blink 1s steps(2) infinite; }
.scan-state[data-phase='anonymised'] i { background: var(--accent); box-shadow: 0 0 10px var(--glow); animation: none; }
.scan-state[data-phase='idle'] i { background: var(--muted); box-shadow: none; animation: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.scan-meta { position: absolute; left: 22px; bottom: 20px; display: grid; gap: 2px; }
.scan-status { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.scan-stored { color: var(--accent); }

/* ---------- helix + floating cards ---------- */

.helix-scene { flex-direction: column; justify-content: center; gap: 60px; min-height: 120vh; }
.helix-scene .h2 { max-width: 760px; }
.float-cards { width: 100%; max-width: 1240px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.float-card {
  padding: 22px 22px 24px; display: grid; gap: 12px; align-content: start; min-height: 210px;
  transform-style: preserve-3d; animation: float 7s var(--ease-in-out) infinite; animation-delay: calc(var(--fx) * -2s);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s;
}
.float-card:nth-child(2) { margin-top: 70px; }
.float-card:hover { border-color: rgba(141, 255, 74, 0.35); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 40px -12px var(--glow); }
@keyframes float { 50% { translate: 0 -12px; } }

/* ---------- bento: live product previews ---------- */

.bento-scene { flex-direction: column; justify-content: center; gap: 46px; }
.bento-head { display: grid; gap: 14px; max-width: 760px; }
.bento {
  width: 100%; max-width: 1240px; display: grid; gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto);
}
.tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate; min-width: 0;
  border-radius: var(--radius-card); border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, rgba(16, 34, 21, 0.82), rgba(5, 13, 8, 0.92));
  padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.5s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.tile::before {
  /* spotlight that follows the pointer */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(141, 255, 74, 0.1), transparent 60%);
}
.tile:hover::before { opacity: 1; }
a.tile:hover { border-color: rgba(141, 255, 74, 0.35); transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), 0 0 40px -20px var(--glow); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-copy { display: grid; gap: 6px; margin-top: auto; }
.tile-copy .h3 { font-size: clamp(18px, 1.6vw, 22px); text-wrap: balance; }
.tile-copy .small { margin: 0; max-width: 46ch; }
.demo { position: relative; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28); padding: 14px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.tile-a { grid-column: span 7; }
.tile-b { grid-column: span 5; }
.tile-c { grid-column: span 4; grid-row: span 2; }
.tile-d { grid-column: span 4; }
.tile-e { grid-column: span 4; }
.tile-f { grid-column: span 8; }

/* 1.0 simplifier: before → after */
.demo-simplify { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.ds-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ds-tag.ok { color: var(--accent); }
.ds-before p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.ds-before mark { background: rgba(255, 207, 74, 0.12); color: #ffe6a3; border-radius: 3px; padding: 0 2px; }
.ds-arrow { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(141, 255, 74, 0.12); color: var(--accent); }
.ds-arrow svg { width: 14px; height: 14px; transform: rotate(45deg); }
.ds-after ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ds-after li { font-size: 12.5px; color: var(--text); padding-left: 14px; position: relative; animation: ds-in 7s var(--ease-out) infinite; animation-delay: calc(var(--k) * 0.45s); }
.ds-after li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ds-after li.warn { color: #ffe6a3; }
.ds-after li.warn::before { background: var(--warn); }
.ds-after b { font-weight: 500; }
@keyframes ds-in { 0%, 4% { opacity: 0; transform: translateX(-6px); filter: blur(3px); } 12%, 88% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; } }

/* 2.0 local AI chat */
.demo-chat { display: grid; gap: 10px; }
.dc-user { justify-self: end; max-width: 80%; padding: 7px 11px; border-radius: 12px 12px 3px 12px; background: rgba(141, 255, 74, 0.12); border: 1px solid rgba(141, 255, 74, 0.25); color: var(--text); }
.dc-ai { position: relative; display: grid; gap: 8px; padding: 9px 11px; border-radius: 12px 12px 12px 3px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); min-height: 78px; }
.dc-typing { position: absolute; left: 12px; top: 12px; display: flex; gap: 4px; animation: dc-typing 6s infinite; }
.dc-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); animation: dot 0.9s infinite; }
.dc-typing i:nth-child(2) { animation-delay: 0.15s; }
.dc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { opacity: 0.2; transform: translateY(-2px); } }
@keyframes dc-typing { 0%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
.dc-text, .dc-conf { animation: dc-show 6s infinite; }
.dc-text { color: var(--text); line-height: 1.5; }
@keyframes dc-show { 0%, 24% { opacity: 0; transform: translateY(4px); } 32%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.dc-conf { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.dc-conf b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.dc-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dc-bar i { display: block; height: 100%; width: 82%; background: var(--accent); box-shadow: 0 0 8px var(--glow); transform-origin: left; animation: dc-bar 6s var(--ease-out) infinite; }
@keyframes dc-bar { 0%, 30% { transform: scaleX(0); } 45%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.dc-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(141, 255, 74, 0.3); }
.dc-chip svg { width: 12px; height: 12px; }

/* 3.0 data receipts */
.demo-receipts { display: grid; gap: 8px; background: none; border: 0; padding: 0; }
.dr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 13px; border-radius: 12px; border: 1px dashed var(--line-strong); background: rgba(0, 0, 0, 0.3); animation: dr-focus 7.5s infinite; animation-delay: calc(var(--k) * 2.5s); }
.dr-src { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dr strong { grid-row: 2; font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.dr span:not(.dr-src) { grid-column: 1 / -1; font-size: 11.5px; }
.dr em { grid-row: 1; grid-column: 2; font-style: normal; font-size: 10.5px; color: var(--accent); }
@keyframes dr-focus { 0%, 30% { border-color: rgba(141, 255, 74, 0.45); box-shadow: 0 0 24px -10px var(--glow); } 36%, 100% { border-color: var(--line-strong); box-shadow: none; } }

/* 4.0 scam gauge */
.demo-gauge { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.demo-gauge svg { grid-row: span 2; width: 96px; height: 96px; transform: rotate(-90deg); }
.g-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; }
.g-val { fill: none; stroke: var(--danger); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; filter: drop-shadow(0 0 6px rgba(255, 107, 90, 0.6)); animation: gauge 6s var(--ease-out) infinite; }
@keyframes gauge { 0%, 8% { stroke-dashoffset: 314; } 40%, 92% { stroke-dashoffset: 25; } 100% { stroke-dashoffset: 314; } }
.dg-num { position: absolute; left: 14px; top: 14px; width: 96px; height: 96px; display: grid; place-items: center; align-content: center; text-align: center; }
.dg-num strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--text); }
.dg-num span { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--danger); }
.dg-reasons { display: grid; gap: 6px; }
.dg-reasons span { font-size: 11.5px; padding: 4px 9px; border-radius: 8px; border: 1px solid rgba(255, 107, 90, 0.3); background: rgba(255, 107, 90, 0.07); color: #ffc3ba; justify-self: start; }

/* 5.0 vault cipher */
.demo-cipher { display: grid; gap: 12px; }
.dv-line { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text); min-height: 2.6em; overflow-wrap: anywhere; }
.dv-line svg { width: 16px; height: 16px; flex: none; color: var(--accent); filter: drop-shadow(0 0 6px var(--glow)); }
.dv-line.is-cipher span { color: var(--accent); }
.dv-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-meta span { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }

/* 6.0 ledger */
.demo-ledger { display: grid; gap: 9px; }
.dl-row { display: grid; grid-template-columns: 118px 1fr 40px; gap: 12px; align-items: center; font-size: 12px; color: var(--text); }
.dl-row b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.dl-row:first-child b { color: var(--accent); }
.dl-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.dl-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transform-origin: left; animation: dl-grow 6s var(--ease-out) infinite; animation-delay: calc(var(--k) * 0.15s); }
@keyframes dl-grow { 0%, 6% { transform: scaleX(0); } 30%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.dl-note { font-size: 10.5px; color: var(--muted); }

/* ---------- story ---------- */

.story-grid { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; align-items: start; padding-top: 18vh; }
.story-grid .h2 { margin: 16px 0 18px; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.story-list li { display: grid; grid-template-columns: 80px 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.story-list p { margin: 0; font-size: 15px; }
.story-list em { grid-column: 2; font-style: normal; color: var(--accent); font-size: 13px; }

/* ---------- how ---------- */

.how-grid { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5vw; }
.how-grid .h2 { margin-top: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { padding: 20px 22px; display: grid; gap: 8px; }
.steps p { margin: 0; }
.who { grid-column: 1 / -1; display: grid; gap: 12px; }

/* ---------- cta ---------- */

.cta { justify-content: center; text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 22px; padding-top: 24vh; max-width: 820px; }
.cta-title { font-size: clamp(42px, 6.6vw, 96px); }

/* ---------- footer ---------- */

.footer { flex-direction: column; justify-content: center; align-items: stretch; gap: 90px; overflow: hidden; }
.footer-grid { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.footer-brand { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols > div { display: grid; gap: 10px; align-content: start; }
.footer-cols a { font-size: 14px; color: var(--text-2); transition: color 0.3s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { width: 100%; max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-bottom: 60px; }
.footer-glow { position: absolute; left: 50%; bottom: -20%; width: 40vw; height: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(141, 255, 74, 0.28), transparent); filter: blur(30px); pointer-events: none; }

/* ---------- tools popover ---------- */

.tools-menu {
  position: fixed; z-index: 56; left: 50%; bottom: calc(var(--frame-inset) + 78px); transform: translateX(-50%);
  padding: 8px; display: grid; gap: 2px; min-width: 250px; animation: pop 0.35s var(--ease-out);
}
.tools-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); transition: background 0.25s, color 0.25s; }
.tools-menu a:hover { background: rgba(141, 255, 74, 0.08); color: var(--text); }
.tools-menu svg { width: 16px; height: 16px; color: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px) scale(0.98); } }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .beam-grid, .robe-grid, .story-grid, .how-grid, .footer-grid { grid-template-columns: 1fr; }
  .beam-side { padding-top: 0; justify-self: start; }
  .float-cards { grid-template-columns: 1fr; max-width: 520px; }
  .float-card:nth-child(2) { margin-top: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: span 2; grid-row: auto; }
  .tile-c { grid-column: span 1; } .tile-d { grid-column: span 1; }
  .hero-desc { position: static; margin-top: 26px; }
}
@media (max-width: 760px) {
  .scene { padding: 96px 20px 110px; }
  .hero-title { grid-template-columns: 1fr; }
  .hero-right { padding-top: 0; justify-self: start; }
  .hero-title .line { white-space: normal; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: span 1; }
  .demo-simplify { grid-template-columns: minmax(0, 1fr); }
  .ds-arrow svg { transform: rotate(135deg); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .story-list li { grid-template-columns: 1fr; }
  .story-list em { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-after li, .dc-text, .dc-conf, .dr, .dl-bar i, .dc-bar i { animation: none !important; opacity: 1; transform: none; filter: none; }
  .dc-typing { display: none; }
  .g-val { animation: none; stroke-dashoffset: 25; }
}

/* ---------- token section ---------- */
.token-scene { align-items: center; }
.token-wrap { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.token-wrap .h2 { margin: 14px 0 18px; }
.token-wrap .small { max-width: 460px; }
.token-warn { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; max-width: 460px; margin: 18px 0 26px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 107, 90, 0.4); background: rgba(255, 107, 90, 0.07); color: #ffc3ba; font-size: 13.5px; line-height: 1.5; }
.token-warn svg { width: 18px; height: 18px; color: var(--danger); margin-top: 1px; }
.token-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.token-uses li { padding: 18px; display: grid; gap: 6px; align-content: start; }
.token-uses li:last-child { grid-column: span 2; }
.token-uses .h3 { margin: 0; font-size: 18px; }
.token-uses p { margin: 0; }
.mono-text { font-family: var(--font-mono); font-size: 11.5px; word-break: break-all; line-height: 1.6; }
.dl-row.bad .dl-bar i { background: var(--danger); box-shadow: 0 0 10px rgba(255, 107, 90, 0.5); }
@media (max-width: 900px) {
  .token-wrap { grid-template-columns: 1fr; gap: 28px; }
  .token-uses { grid-template-columns: 1fr; }
  .token-uses li:last-child { grid-column: auto; }
}
.dl-row.bad b { color: var(--danger); }

/* ---------- responsive hardening ---------- */
@media (max-width: 1000px) {
  .hero-title { grid-template-columns: 1fr; gap: 16px; font-size: clamp(38px, 8.5vw, 78px); }
  .hero-left, .hero-right { min-width: 0; }
  .hero-title .line { white-space: normal; }
  .hero-inner { padding-bottom: 110px; }
  .stage-canvas { opacity: 0.5; }
}
body.landing { overflow-x: hidden; }
.landing h1, .landing h2, .landing h3, .landing p, .landing li { overflow-wrap: break-word; }
.landing .display { font-size: clamp(38px, 11vw, 124px); }
@media (max-width: 760px) {
  .landing .topbar-actions { gap: 6px; }
  .landing .topbar .pill { font-size: 12.5px; }
}
