/* ============================================
   BNB6900 — The BNB That Broke the Calculator
   ============================================ */

:root {
  --yellow: #f0b90b;
  --yellow-bright: #ffd84a;
  --yellow-deep: #c99708;
  --gold: #f3ba2f;
  --black: #050505;
  --black-2: #0a0a0a;
  --black-3: #101410;
  --offwhite: #f3eee3;
  --muted: #9a9588;
  --green: #3cff6e;
  --green-soft: #7cff9a;
  --green-dim: #16351c;
  --green-dark: #07140a;
  --line: rgba(240, 185, 11, 0.16);
  --line-green: rgba(60, 255, 110, 0.18);
  --header-h: 76px;
  --radius: 18px;
  --font-display: "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --mx: 0;
  --my: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--offwhite);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

code {
  font-family: var(--font-mono);
}

::selection {
  background: var(--yellow);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--yellow);
  color: #000;
  padding: 8px 14px;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Atmosphere ---------- */

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: transparent;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px var(--yellow);
}

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  display: none;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 95;
  border-radius: 50%;
  transform: translate(-100px, -100px);
  will-change: transform;
}

body.has-cursor .cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}

body.has-cursor .cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(240, 185, 11, 0.55);
  transition: width 0.18s var(--ease), height 0.18s var(--ease), margin 0.18s var(--ease), border-color 0.18s;
}

body.has-cursor .cursor-ring.is-hot {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--green);
}

/* ---------- Layout ---------- */

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.kicker-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid var(--line-green);
  color: var(--yellow);
  letter-spacing: 0.08em;
  background: rgba(60, 255, 110, 0.05);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}

.gold-text {
  background: linear-gradient(180deg, #ffe56b 0%, #f0b90b 48%, #c99409 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 48px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }
.reveal[data-delay="5"] { --d: 5; }
.reveal[data-delay="6"] { --d: 6; }
.reveal[data-delay="7"] { --d: 7; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-lg {
  min-height: 54px;
  padding: 0 26px;
}

.btn-gold {
  background: linear-gradient(180deg, var(--yellow-bright), var(--yellow) 55%, var(--yellow-deep));
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 216, 74, 0.35), 0 8px 28px rgba(240, 185, 11, 0.28);
}

.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 216, 74, 0.55), 0 12px 36px rgba(240, 185, 11, 0.42);
}

.btn-gold:hover::before {
  transform: translateX(130%);
}

.btn-ghost {
  border: 1px solid rgba(240, 185, 11, 0.45);
  color: var(--yellow);
  background: rgba(240, 185, 11, 0.05);
}

.btn-ghost:hover {
  background: rgba(240, 185, 11, 0.14);
  box-shadow: 0 0 22px rgba(240, 185, 11, 0.18);
  transform: translateY(-2px);
}

.btn-copy {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-copy:hover {
  background: rgba(60, 255, 110, 0.12);
}

.btn-copy.is-copied {
  color: #000;
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.04);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 72;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(240, 185, 11, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--offwhite);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 72;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--offwhite);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 28px 0 0;
  min-height: 100vh;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(60, 255, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 255, 110, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 10px));
  animation: gridShift 28s linear infinite;
  mask-image: radial-gradient(ellipse at 40% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

@keyframes gridShift {
  to { background-position: 56px 56px; }
}

.hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  font-family: var(--font-mono);
  color: rgba(60, 255, 110, 0.55);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  animation: floatY 9s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * var(--depth, 12px)), calc(var(--my) * var(--depth, 12px)), 0);
}

.fi-1 { top: 18%; left: 6%; --depth: 14px; animation-delay: 0s; }
.fi-2 { top: 28%; right: 8%; color: rgba(240, 185, 11, 0.7); --depth: -18px; animation-delay: -1.4s; font-weight: 700; }
.fi-3 { top: 62%; left: 10%; --depth: 20px; animation-delay: -2.2s; }
.fi-4 { top: 14%; right: 28%; font-size: 1.6rem; color: rgba(243, 186, 47, 0.45); --depth: -12px; animation-delay: -3s; }
.fi-5 { bottom: 28%; right: 12%; --depth: 16px; animation-delay: -4s; }
.fi-6 { top: 48%; left: 42%; font-size: 1.4rem; color: var(--yellow); --depth: -10px; animation-delay: -1s; }
.fi-7 { bottom: 18%; left: 22%; --depth: 9px; animation-delay: -5s; }
.fi-8 { top: 36%; right: 38%; color: rgba(255, 80, 80, 0.55); --depth: -22px; animation-delay: -2.8s; }

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 12px;
}

.hero-title {
  margin: 8px 0 18px;
}

.hero-bnb,
.hero-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 14vw, 10.5rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-bnb {
  color: var(--offwhite);
}

.hero-num {
  font-style: italic;
  background: linear-gradient(180deg, #ffe56b 0%, #f0b90b 42%, #d4a00a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(240, 185, 11, 0.35));
  animation: goldGlitch 7.5s steps(2, end) infinite;
}

@keyframes goldGlitch {
  0%, 90%, 100% { filter: none; }
  92% { filter: drop-shadow(-2px 0 var(--green)) drop-shadow(2px 0 var(--yellow)); }
  94% { filter: drop-shadow(2px 0 var(--green)); }
}

.hero-sub {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.blink-cursor {
  display: inline-block;
  width: 12px;
  height: 1.05em;
  margin-left: 6px;
  background: var(--green);
  vertical-align: -0.12em;
  animation: blink 1.05s steps(1) infinite;
  box-shadow: 0 0 10px var(--green);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-lead {
  font-size: 1.14rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.equation-chip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  width: min(100%, 420px);
  padding: 14px 18px;
  margin-bottom: 26px;
  border: 1px solid var(--line-green);
  background: linear-gradient(180deg, rgba(7, 20, 10, 0.9), rgba(5, 5, 5, 0.7));
  box-shadow: inset 0 0 24px rgba(60, 255, 110, 0.08), 0 0 30px rgba(60, 255, 110, 0.06);
  font-family: var(--font-mono);
}

.eq-left,
.eq-op {
  color: var(--green-soft);
  font-size: 1.05rem;
}

.eq-err {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.14em;
  animation: errPulse 1.8s ease-in-out infinite;
}

@keyframes errPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.eq-sub {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.contract-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.contract-label {
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.contract-addr {
  color: var(--green-soft);
  user-select: all;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-coin {
  width: min(380px, 100%);
  animation: coinFloat 6.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(240, 185, 11, 0.28));
}

.hero-coin img {
  width: 100%;
  border-radius: 50%;
}

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.terminal-panel,
.token-panel {
  width: 100%;
  border: 1px solid var(--line-green);
  background: rgba(7, 20, 10, 0.86);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.terminal-bar,
.token-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tb-dots {
  display: flex;
  gap: 5px;
}

.tb-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.tb-dots i:nth-child(1) { background: #ff5f57; }
.tb-dots i:nth-child(2) { background: #febc2e; }
.tb-dots i:nth-child(3) { background: #28c840; }

.terminal-body {
  padding: 14px 16px 16px;
  min-height: 132px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--green);
  line-height: 1.7;
}

.term-line {
  min-height: 1.7em;
}

.term-line.is-warn {
  color: var(--yellow);
}

.hero-banner-frame {
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto 0;
  position: relative;
  z-index: 2;
}

.banner-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--green);
}

.hud-bracket {
  width: 42px;
  height: 10px;
  border-left: 2px solid var(--yellow);
  border-top: 2px solid var(--yellow);
}

.hud-bracket-r {
  border-left: 0;
  border-right: 2px solid var(--yellow);
}

.banner-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(240, 185, 11, 0.35);
  box-shadow:
    0 0 0 1px rgba(60, 255, 110, 0.12),
    0 0 40px rgba(240, 185, 11, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.banner-viewport img {
  width: 100%;
  aspect-ratio: 2172 / 724;
  object-fit: cover;
  object-position: center;
}

.banner-crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0, 0, 0, 0.12) 3px, rgba(0, 0, 0, 0.12) 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.28) 100%);
  opacity: 0.55;
}

/* ---------- Marquee ---------- */

.marquee-wrap {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #070707;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-a {
  background: var(--yellow);
  color: #111;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.marquee-b {
  background: var(--green-dark);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  border-top: 1px solid rgba(60, 255, 110, 0.2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-shrink: 0;
  padding: 12px 1.4rem 12px 0;
  animation: marquee 28s linear infinite;
}

.marquee-b .marquee-track {
  animation-duration: 36s;
  animation-direction: reverse;
  padding: 9px 0;
}

.marquee-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- About ---------- */

.about {
  padding: 120px 0 100px;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 40%, rgba(240, 185, 11, 0.07), transparent 50%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.about-body {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 46ch;
}

.ask-list {
  margin: 16px 0 22px;
}

.ask-list li {
  font-family: var(--font-mono);
  color: var(--offwhite);
  padding: 6px 0 6px 18px;
  position: relative;
}

.ask-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--green);
}

.about-then {
  margin-top: 8px;
}

.about-punch {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.about-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.about-orbit {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border: 1px dashed rgba(240, 185, 11, 0.25);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.about-orbit::after {
  content: "6900";
  position: absolute;
  top: -10px;
  left: 50%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--yellow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.about-logo {
  width: min(360px, 100%);
  border-radius: 50%;
  animation: coinFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(240, 185, 11, 0.3));
  position: relative;
  z-index: 1;
}

.about-caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Math / Calculator ---------- */

.math {
  padding: 40px 0 120px;
  background:
    linear-gradient(180deg, transparent, rgba(7, 20, 10, 0.65) 20%, rgba(7, 20, 10, 0.65) 80%, transparent);
}

.math-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.math-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.math-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.7);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.math-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 28px rgba(240, 185, 11, 0.12);
  transform: translateY(-3px);
}

.math-card-wide {
  grid-column: 1 / -1;
}

.math-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--green);
}

.math-card p {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--offwhite);
}

.math-card span {
  color: var(--yellow);
}

.math-card strong {
  color: var(--green-soft);
}

.math-card .err {
  color: #ff6b6b;
}

.calc {
  background: linear-gradient(180deg, #161616, #0c0c0c);
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 22px;
  padding: 16px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.calc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 8px 12px;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
}

.calc-brand {
  color: var(--yellow);
  font-size: 1.3rem;
}

.calc-model {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.calc-screen {
  background: #04180b;
  border-radius: 10px;
  padding: 16px 18px;
  min-height: 118px;
  border: 1px solid rgba(60, 255, 110, 0.25);
  box-shadow: inset 0 0 24px rgba(60, 255, 110, 0.08);
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
}

.calc-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0, 0, 0, 0.12) 2px, rgba(0, 0, 0, 0.12) 3px);
  pointer-events: none;
}

.calc-status {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(124, 255, 154, 0.7);
  margin-bottom: 8px;
}

.calc-eq {
  color: var(--green-soft);
  font-size: 0.92rem;
}

.calc-out {
  color: var(--yellow);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 6px;
}

.lcd-blink {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--green);
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}

.calc.is-glitch .calc-screen {
  animation: lcdHit 0.35s ease;
}

@keyframes lcdHit {
  0%, 100% { filter: none; }
  30% { filter: hue-rotate(40deg) brightness(1.4); }
  60% { filter: invert(0.08); }
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.calc-keys button {
  min-height: 48px;
  border-radius: 10px;
  background: #1a1a1a;
  color: var(--offwhite);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #2a2a2a;
  box-shadow: 0 3px 0 #050505;
  touch-action: manipulation;
  transition: transform 0.08s, background 0.15s, color 0.15s;
}

.calc-keys button:hover {
  background: #242424;
  color: var(--yellow);
}

.calc-keys button:active,
.calc-keys button.is-pressed {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #050505;
}

.key-op { color: var(--yellow); }
.key-err { color: #ff6b6b; }
.key-eq {
  background: linear-gradient(180deg, var(--yellow-bright), var(--yellow));
  color: #111;
  border-color: var(--yellow-deep);
}
.key-wide { grid-column: span 2; }

.calc-keys button[data-key="6900"] {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ---------- Prophecy ---------- */

.prophecy {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(240, 185, 11, 0.08), transparent 55%);
}

.prophecy-field {
  position: absolute;
  inset: -8%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 18px 32px;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  color: var(--green);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  animation: fieldDrift 40s linear infinite;
}

@keyframes fieldDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

.prophecy-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.prophecy-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--offwhite);
}

.prophecy-number {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(5.4rem, 26vw, 20rem);
  line-height: 0.8;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--yellow);
  text-shadow: 0 0 48px rgba(240, 185, 11, 0.4);
}

.prophecy-number span {
  display: inline-block;
  will-change: transform;
}

.prophecy-note {
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

/* ---------- Memes ---------- */

.memes {
  padding: 80px 0 110px;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.meme-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #121212, #0a0a0a);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.meme-card:hover {
  border-color: rgba(240, 185, 11, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(240, 185, 11, 0.12);
}

.meme-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--green);
}

.meme-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.04em;
  margin: 12px 0 10px;
  position: relative;
  z-index: 1;
}

.meme-card p {
  max-width: 36ch;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.meme-glyph {
  position: absolute;
  right: 12px;
  bottom: -18px;
  font-family: var(--font-display);
  font-size: 7.5rem;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
  font-weight: 700;
}

.meme-card-image img:not(.meme-coin) {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 46%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.28;
  mask-image: linear-gradient(to top, #000 20%, transparent);
}

.meme-coin {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.9;
  z-index: 1;
}

.meme-card-final {
  background: radial-gradient(circle at 80% 80%, rgba(240, 185, 11, 0.16), #0a0a0a 55%);
}

/* ---------- Token ---------- */

.token {
  padding: 40px 0 110px;
}

.token-panel {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
}

.token-ok {
  margin-left: auto;
  color: var(--green);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.token-grid > div {
  padding: 26px 28px;
  border-bottom: 1px solid var(--line-green);
  border-right: 1px solid var(--line-green);
}

.token-grid > div:nth-child(2n) {
  border-right: 0;
}

.token-grid dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}

.token-grid dd {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.token-contract dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.token-contract code {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 2.4vw, 1.05rem);
  color: var(--green-soft);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 28px 26px;
}

/* ---------- Community ---------- */

.community {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  text-align: center;
}

.community-glow {
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(ellipse at center, rgba(240, 185, 11, 0.18), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
}

.community-field {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 14px 28px;
  font-family: var(--font-mono);
  color: var(--yellow);
  opacity: 0.08;
  pointer-events: none;
  animation: fieldDrift 32s linear infinite reverse;
}

.community-inner {
  position: relative;
  z-index: 1;
}

.community-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.community-lead {
  margin: 18px 0 32px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.community-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Disclaimer / Footer ---------- */

.disclaimer {
  padding: 8px 0 48px;
}

.disclaimer p {
  max-width: 72ch;
  margin: 0 auto 8px;
  text-align: center;
  font-size: 0.82rem;
  color: #6d6a62;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 56px;
}

.footer-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer-links a:hover {
  color: var(--offwhite);
}

.footer-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.8;
}

.footer-copy {
  font-size: 0.78rem;
  color: #6d6a62;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 71;
    background: rgba(5, 5, 5, 0.96);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    padding: 80px 28px 40px;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-cta {
    flex-direction: column;
    width: min(320px, 100%);
  }

  .hero-inner,
  .about-grid,
  .math-layout,
  .token-grid {
    grid-template-columns: 1fr;
  }

  .hero-coin {
    width: min(240px, 70%);
  }

  .float-item {
    opacity: 0.55;
  }

  .fi-6,
  .fi-7,
  .fi-8 {
    display: none;
  }

  .math-cards {
    grid-template-columns: 1fr;
  }

  .math-card-wide {
    grid-column: auto;
  }

  .meme-grid {
    grid-template-columns: 1fr;
  }

  .token-grid > div {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .section-shell,
  .hero-inner,
  .hero-banner-frame {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: auto;
    padding-top: 12px;
  }

  .hero-bnb,
  .hero-num {
    font-size: clamp(4.2rem, 22vw, 6.2rem);
  }

  .display-title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero-actions,
  .community-actions,
  .token-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .calc-keys button {
    min-height: 46px;
  }

  .meme-coin {
    width: 88px;
    height: 88px;
  }

  .about {
    padding: 80px 0 70px;
  }

  .prophecy {
    min-height: 70vh;
  }

  .community {
    padding: 90px 0 80px;
  }
}

@media (max-width: 420px) {
  .contract-row {
    width: 100%;
  }

  .equation-chip {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-grid,
  .marquee-track,
  .hero-coin,
  .about-logo,
  .about-orbit,
  .float-item,
  .hero-num,
  .eq-err,
  .blink-cursor,
  .lcd-blink,
  .prophecy-field,
  .community-field,
  .page-noise {
    animation: none !important;
  }

  .btn-gold::before {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}
