:root {
  --ink: #070604;
  --ink-2: #110e0b;
  --panel: rgba(18, 14, 11, 0.78);
  --cream: #f4e2c8;
  --cream-2: #ffe7c4;
  --amber: #e7b56a;
  --muted: #b7a38c;
  --line: rgba(244, 226, 200, 0.22);
  --glow: 0 0 32px rgba(255, 214, 160, 0.35);
  --display: "Luckiest Guy", "Bangers", cursive;
  --burst: "Bangers", "Luckiest Guy", cursive;
  --body: "Comic Neue", "Luckiest Guy", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  font-family: var(--body);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(255, 214, 160, 0.14), transparent 60%),
    radial-gradient(700px 480px at 100% 100%, rgba(231, 181, 106, 0.08), transparent 55%),
    var(--ink);
}
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.dither {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(rgba(244, 226, 200, 0.18) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  animation: dither 8s linear infinite;
  mix-blend-mode: screen;
}
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: scan 9s linear infinite;
  opacity: 0.45;
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
}
.spotlight {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 228, 190, 0.16), transparent 68%);
  left: 50%;
  top: 30%;
  transition: left 0.12s linear, top 0.12s linear;
}
.circuits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(244, 226, 200, 0.28);
}
.trace {
  stroke-dasharray: 8 14;
  animation: dash 18s linear infinite;
}
.t2 { animation-duration: 26s; animation-direction: reverse; }
.t3, .t5 { animation-duration: 12s; }
.nodes rect { animation: blink-node 2.8s steps(2) infinite; }
.nodes rect:nth-child(2) { animation-delay: 0.4s; }
.nodes rect:nth-child(3) { animation-delay: 0.9s; }
.nodes rect:nth-child(4) { animation-delay: 1.3s; }

.ticker {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 4, 0.72);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 0.45rem 0;
  animation: marquee 28s linear infinite;
  font-family: var(--burst);
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--amber);
}
.ticker-track span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 2.5rem;
  background: var(--cream);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(7, 6, 4, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--glow);
  animation: float 4.5s ease-in-out infinite;
}
.nav nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--burst);
  letter-spacing: 0.08em;
}
.nav nav a {
  text-decoration: none;
  position: relative;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav nav a:hover::after { transform: scaleX(1); }
.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-family: var(--burst);
  letter-spacing: 0.08em;
}
.nav-x img, .btn img, .text-link img, .chart-top img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(93%) sepia(18%) saturate(380%) hue-rotate(330deg) brightness(1.04);
}

main { position: relative; z-index: 1; }

.hero { padding: 4.5rem 6vw 2rem; }
.terminal {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--glow);
  overflow: hidden;
  position: relative;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 236, 210, 0.06) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--burst);
  letter-spacing: 0.12em;
}
.dots { display: flex; gap: 6px; }
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  display: block;
  opacity: 0.75;
}
.dots i:nth-child(2) { animation: blink 1.6s steps(2) infinite; }
.term-title { color: var(--muted); flex: 1; }
.term-chip {
  border: 1px solid var(--line);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  color: var(--amber);
}
.term-body { padding: 1.4rem 1.4rem 1.8rem; }
.boot {
  min-height: 1.4rem;
  font-family: var(--burst);
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 0.6rem;
}
.boot .caret {
  display: inline-block;
  width: 9px;
  height: 1em;
  background: var(--cream);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
.hero-core {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.logo-halo {
  position: relative;
  display: grid;
  place-items: center;
}
.logo-halo::before {
  content: "";
  position: absolute;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 170, 0.55), transparent 68%);
  filter: blur(8px);
  animation: pulse 3.4s ease-in-out infinite;
}
.hero-logo {
  width: min(280px, 70vw);
  position: relative;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 214, 160, 0.45));
}
.eyebrow {
  font-family: var(--burst);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.3rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(255, 214, 160, 0.35);
}
.symbol {
  font-family: var(--burst);
  letter-spacing: 0.18em;
  font-size: 1.4rem;
  margin: 0.4rem 0 0.6rem;
}
.ca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 236, 214, 0.04);
  color: var(--cream);
  font-family: var(--body);
  cursor: pointer;
}
.ca span {
  font-family: var(--burst);
  letter-spacing: 0.12em;
  color: var(--amber);
}
.ca code {
  font-family: var(--body);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tagline {
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 38rem;
  margin: 0 0 1.2rem;
  color: var(--cream-2);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-family: var(--burst);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn.solid { background: var(--cream); color: #1a120c; }
.btn.solid img { filter: brightness(0) saturate(100%); }
.btn.ghost { background: rgba(255, 236, 214, 0.04); }

.section { padding: 4.2rem 6vw; max-width: 1180px; margin: 0 auto; }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 0.95; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card, .step, .chart-frame, .join-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
}
.card {
  padding: 1.3rem 1.2rem 1.4rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--glow); }
.card::after, .step::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 226, 200, 0.08);
  border-radius: 12px;
  pointer-events: none;
}
.card-index, .step-no {
  font-family: var(--burst);
  color: var(--amber);
  letter-spacing: 0.12em;
}
.card h3, .step h3 { font-size: 1.7rem; margin: 0.35rem 0 0.45rem; }
.card p, .step p, .about-line, .join-copy p, .footer p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--cream-2);
}
.about-line { margin-top: 1.2rem; max-width: 46rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  align-items: start;
}
.step-no {
  font-size: 1.8rem;
  animation: pulse 3s ease-in-out infinite;
}
.step:nth-child(2) .step-no { animation-delay: 0.4s; }
.step:nth-child(3) .step-no { animation-delay: 0.8s; }
.step:nth-child(4) .step-no { animation-delay: 1.2s; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-family: var(--burst);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--amber);
}
.text-link:hover { color: var(--cream); }

.chart-frame { padding: 0.8rem; }
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.4rem 0.7rem;
  font-family: var(--burst);
  letter-spacing: 0.1em;
}
.chart-top a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--amber);
}
.chart-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: 12px;
  background: #0b0b0b;
}

.join-panel { overflow: hidden; }
.banner {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  animation: banner-glow 4.5s ease-in-out infinite;
}
.join-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem 1.25rem;
}
.join-copy p { max-width: 36rem; }

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer strong {
  font-family: var(--display);
  color: var(--cream);
  font-size: 1.3rem;
  margin-right: 0.6rem;
}
.footer span { font-family: var(--burst); letter-spacing: 0.08em; }
.footer p { max-width: 36rem; font-size: 0.98rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}
.about-grid .reveal:nth-child(2) { animation-delay: 0.12s; }
.about-grid .reveal:nth-child(3) { animation-delay: 0.24s; }
.steps .reveal:nth-child(2) { animation-delay: 0.1s; }
.steps .reveal:nth-child(3) { animation-delay: 0.2s; }
.steps .reveal:nth-child(4) { animation-delay: 0.3s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes blink-node {
  50% { opacity: 0.25; }
}
@keyframes dash {
  to { stroke-dashoffset: -280; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes scan {
  to { background-position: 0 40px; }
}
@keyframes dither {
  to { background-position: 24px 12px; }
}
@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
@keyframes banner-glow {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.08) brightness(1.08); }
}

@media (max-width: 860px) {
  .nav nav { display: none; }
  .hero-core, .about-grid, .join-copy, .footer { grid-template-columns: 1fr; display: grid; }
  .hero { padding-top: 2rem; }
  .chart-frame iframe { height: 420px; }
  .section { padding: 3rem 5vw; }
}
