:root {
  --bg: #050607;
  --panel: rgba(10, 12, 14, .76);
  --panel-2: rgba(17, 19, 23, .88);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --white: #f4f7f8;
  --muted: #9da7ad;
  --red: #ff334f;
  --red-soft: rgba(255, 51, 79, .18);
  --green: #00a483;
  --green-soft: rgba(0, 164, 131, .16);
  --cyan: #00eef5;
  --max: 1180px;
  --shadow: 0 28px 100px rgba(0, 0, 0, .44);
  --radius-xl: 34px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,51,79,.14), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(0,164,131,.10), transparent 26%),
    linear-gradient(135deg, #030404 0%, #0b0d0f 44%, #050607 100%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

#chart-rain {
  position: fixed;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  opacity: .56;
}
.grid {
  position: fixed;
  inset: 0;
  z-index: -6;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 45% 18%, black, transparent 85%);
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: .10;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 100% 4px;
}
.glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -6;
}
.glow-red {
  width: 520px;
  height: 520px;
  left: -150px;
  top: 160px;
  background: rgba(255,51,79,.10);
}
.glow-green {
  width: 430px;
  height: 430px;
  right: -120px;
  top: 46vh;
  background: rgba(0,164,131,.10);
}

.shell {
  width: min(calc(100% - 42px), var(--max));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 16px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 7, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-dot {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #f6f6f6);
  color: #060606;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}
.brand strong { display: block; line-height: 1; font-size: 15px; }
.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.links {
  justify-self: center;
  display: flex;
  gap: 6px;
}
.links a,
.nav-cta {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: .22s ease;
}
.links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff7385);
  box-shadow: 0 16px 44px rgba(255,51,79,.20);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 74px 0 42px;
}
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px var(--red);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(56px, 8vw, 106px);
  line-height: .88;
  letter-spacing: -.075em;
}
h1 span {
  display: block;
  color: var(--red);
  text-shadow: 0 0 28px rgba(255,51,79,.18);
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: .94;
  letter-spacing: -.058em;
}
h3 {
  margin-bottom: 10px;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.04em;
}
.lede,
.body-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}
.lede strong { color: var(--white); }
.lede.muted { color: #c4cbd0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button.danger {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff7788);
  border-color: transparent;
  box-shadow: 0 18px 50px rgba(255,51,79,.22);
}
.button.ghost {
  color: var(--white);
  background: rgba(255,255,255,.05);
}

.ticker-strip {
  max-width: 720px;
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,.38);
}
.ticker-strip span {
  color: #fff;
  background: var(--red);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}
.ticker-strip code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d8dde0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.hero-art { position: relative; }
.terminal-card,
.reaction-card,
.glass {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.terminal-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-top span:nth-child(1) { background: var(--red); }
.terminal-top span:nth-child(2) { background: #f7c948; }
.terminal-top span:nth-child(3) { background: var(--green); }
.terminal-top strong {
  margin-left: auto;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
}
.chart-wrap {
  position: relative;
  overflow: hidden;
}
.chart-wrap img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  filter: contrast(1.08) brightness(.9);
}
.price-alert {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  color: var(--red);
  font-size: clamp(32px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: .04em;
  text-shadow: 0 0 22px rgba(255,51,79,.18);
}
.reaction-card {
  position: absolute;
  right: -10px;
  bottom: -64px;
  width: min(280px, 45%);
  overflow: hidden;
  border-radius: 28px;
}
.reaction-card img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
}
.reaction-card div {
  padding: 14px;
  background: rgba(5,6,7,.86);
}
.reaction-card span {
  display: block;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}
.reaction-card strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,51,79,.06);
}
.marquee-track {
  width: max-content;
  display: flex;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  position: relative;
  padding: 18px 34px;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "↓";
  position: absolute;
  right: -5px;
  color: rgba(255,255,255,.26);
}

.section { padding: 96px 0; }
.section-head { max-width: 860px; margin-bottom: 30px; }
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head.center p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) .85fr;
  gap: 18px;
}
.big-chart {
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.big-chart img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}
.stats {
  display: grid;
  gap: 14px;
}
.stat {
  padding: 26px;
  border-radius: 26px;
}
.stat span,
.lore-card span {
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stat strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}
.stat p,
.lore-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cope-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 20%, rgba(255,51,79,.14), transparent 28%),
    var(--panel-2);
}
.cope-output {
  padding: 26px;
  border-radius: 28px;
  background: rgba(0,0,0,.38);
  border: 1px solid var(--line);
}
#cope-line {
  min-height: 150px;
  display: grid;
  place-items: center;
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 900;
  text-align: center;
}
.meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.meter-head strong { color: var(--red); }
.meter-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.meter-bar i {
  display: block;
  width: 87%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--red));
  transition: width .35s ease;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lore-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 26px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 52px;
  border-top: 1px solid var(--line);
}
.footer p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: .62s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 80px);
  opacity: 0;
  z-index: 80;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  transition: .22s ease;
}
.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

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

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }
  .links {
    justify-self: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-cta {
    text-align: center;
  }
  .hero,
  .evidence-grid,
  .cope-panel {
    grid-template-columns: 1fr;
  }
  .reaction-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
  }
  .reaction-card img {
    height: 100%;
  }
  .lore-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    flex-direction: column;
  }
  .footer p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 22px), var(--max)); }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  h2 { font-size: clamp(34px, 11vw, 48px); }
  .hero { padding-top: 48px; }
  .ticker-strip {
    grid-template-columns: 1fr;
  }
  .lore-grid {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
  }
}
