:root {
  --board: #1b2924;
  --board-2: #213129;
  --chalk: #ece8dc;
  --chalk-soft: #ece8dcb3;
  --chalk-dim: #ece8dc66;
  --yellow: #f2c14e;
  --line: #ece8dc1f;
}
* { box-sizing: border-box; }
.no-demo .demo-only { display: none !important; }
html, body { height: 100%; margin: 0; overscroll-behavior: none; }
body {
  background-color: var(--board);
  /* manchas de tiza borrada */
  background-image:
    radial-gradient(circle at 18% 14%, #ece8dc0d, #0000 30%),
    radial-gradient(circle at 82% 18%, #f2c14e08, #0000 26%),
    radial-gradient(circle at 46% 62%, #ece8dc0a, #0000 36%),
    radial-gradient(ellipse at 50% 120%, #0000002e, #0000 60%);
  overflow: hidden;
  color: var(--chalk);
}
canvas { position: fixed; inset: 0; width: 100%; height: 100%; }
.ui { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }

/* cinta superior */
.ticker {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #1b292499, #1b292466);
  backdrop-filter: blur(2px);
}
.ticker::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, var(--board), #0000 12% 88%, var(--board));
}
.ticker-track {
  position: relative; overflow: hidden; height: 28px;
  color: var(--chalk-soft); letter-spacing: .12em; text-transform: uppercase;
  font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace;
}
.ticker-item { position: absolute; top: 50%; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.t-coin { color: var(--chalk); font-weight: 600; }
.t-ch { font-size: 11px; }
.t-ch.up { color: #8fd3a7; } .t-ch.down { color: #f08a76; }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.spark.up polyline { stroke: #8fd3a7b3; } .spark.down polyline { stroke: #f08a76b3; }
.ticker-dot { opacity: .42; }

/* portada */
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: clamp(2rem, 4vw, 4rem); width: 100%; max-width: 1480px; margin: 0 auto;
  padding-right: clamp(1.5rem, 5vw, 4rem);
}
.hero { display: grid; place-items: center; padding: 6rem 1.5rem 3rem; }
.hero-copy { text-align: center; max-width: 900px; text-wrap: balance; }
.hero-wordmark { display: block; width: clamp(18rem, 58vw, 34rem); height: auto; margin: 0 auto; filter: drop-shadow(0 0 1px #ece8dc40); }
.wordmark-cursor { animation: blink 1.1s step-end infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }

.lede {
  position: relative; text-align: left; width: clamp(18rem, 58vw, 34rem);
  margin: .6rem auto 0; transform: translateX(20px);
  color: var(--chalk-soft); font: 500 clamp(1rem, 2.2vw, 1.35rem)/1.45 Inter, system-ui, sans-serif;
  letter-spacing: -.005em;
  text-shadow: 0 0 4px var(--board), 0 0 10px var(--board), 0 0 18px #1b2924aa;
}
/* el cursor amarillo que salta de línea en línea */
.lede::before {
  content: ""; position: absolute; left: -14px; top: 0; margin-top: 1.18em;
  width: .55em; height: .15em; background: var(--yellow);
  animation: lede-cursor 4.4s step-end infinite;
}
@keyframes lede-cursor {
  0% { opacity: 1; top: 0; } 12.5% { opacity: 0; top: 0; }
  25% { opacity: 1; top: 1.45em; } 37.5% { opacity: 0; top: 1.45em; }
  50% { opacity: 1; top: 2.9em; } 62.5% { opacity: 0; top: 2.9em; }
  75% { opacity: 1; top: 4.35em; } 87.5% { opacity: 0; top: 4.35em; }
  100% { opacity: 0; top: 4.35em; }
}

.actions {
  display: flex; flex-wrap: wrap; gap: .9rem; width: clamp(18rem, 58vw, 34rem);
  margin: 1.5rem auto 0; padding: 0 20px;
}
.action {
  display: inline-flex; align-items: center; justify-content: center; min-width: 132px;
  padding: .8rem 1rem; color: #ece8dcd9; text-decoration: none;
  letter-spacing: .16em; text-transform: uppercase; font: 500 12px/1 Inter, system-ui, sans-serif;
  background: #1b292470; border: 1px solid #ece8dc38; backdrop-filter: blur(2px);
  transition: background .18s, border-color .18s, color .18s;
}
.action::before { content: "["; opacity: .55; margin-right: .6rem; }
.action::after { content: "]"; opacity: .55; margin-left: .6rem; }
.action:hover { color: var(--chalk); background: #ece8dc12; border-color: #ece8dc66; }
.action:active { transform: translateY(1px); }
.action[aria-disabled="true"] { pointer-events: none; color: #ece8dc59; border-color: #ece8dc24; padding-block: .35rem; }
.action-stack { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; line-height: 1; }
.action-soon { color: #f2c14ea6; font: 500 7px/1 Inter, system-ui, sans-serif; letter-spacing: .18em; }
.demo-note {
  width: clamp(18rem, 58vw, 34rem); margin: 1rem auto 0; padding: 0 20px; text-align: left;
  color: var(--chalk-dim); font: 400 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em;
}

.hero-shot { display: grid; place-items: center; width: clamp(360px, 38vw, 620px); padding: 6rem 0 3rem; }
.hero-shot img {
  display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #ece8dc2e;
  box-shadow: 0 24px 50px -20px #000000a0, 0 6px 18px -8px #00000070;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.hero-shot:hover img { transform: translateY(-3px); }

@media (width <= 1000px) {
  body { overflow-y: auto; }
  .hero-row { grid-template-columns: 1fr; gap: 0; padding-right: 0; align-content: start; }
  .hero { padding-top: clamp(1.5rem, 3.5vh, 2.5rem); }
  .hero-shot { order: -1; width: auto; padding: clamp(1.5rem, 3.5vh, 2.5rem) clamp(2rem, 8vw, 5rem) 0; }
  .hero-shot img { max-width: 560px; margin: 0 auto; }
}
@media (width <= 700px) {
  .ticker-track { height: 26px; font-size: 11px; letter-spacing: .1em; }
  .hero { padding: 1.5rem 1.2rem 2.2rem; }
  .hero-shot img { max-width: 440px; }
  .hero-wordmark, .lede, .actions, .demo-note { width: clamp(14rem, 82vw, 22rem); }
  .actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark-cursor, .lede::before { animation: none; }
}
.action-x { min-width: 0; padding-inline: 1.1rem; }
.action-x svg { display: block; }
.action-x[aria-disabled="true"] { padding-block: .8rem; }
.action-token:not([aria-disabled]) .action-soon { color: var(--yellow); }
