:root {
  --bg: #030704;
  --panel: #07110b;
  --line: #16361f;
  --green: #00ff88;
  --green-dim: #1b7a4a;
  --mint: #86efac;
  --text: #d7ffe8;
  --muted: #6f9a80;
  --danger: #ff4d6d;
  --shadow: 0 0 40px rgba(0, 255, 136, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

a {
  color: var(--green);
}

img {
  max-width: 100%;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scanlines,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 40%, #000 100%);
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #010302;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-log {
  width: min(720px, 90vw);
  color: var(--green);
  font-family: "Share Tech Mono", monospace;
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 0 8px var(--green);
}

.ticker {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: #041009;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  padding: 10px 0;
  animation: marquee 28s linear infinite;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.nav,
main,
.foot {
  position: relative;
  z-index: 3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 4, 0.72);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-brand picture {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--green);
  box-shadow: var(--shadow);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  text-decoration: none;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.btn-buy {
  background: var(--green);
  color: #03140b;
  box-shadow: var(--shadow);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.btn-ghost,
.btn-copy {
  background: transparent;
  color: var(--green);
}

.btn.lg {
  padding: 14px 22px;
}

.btn.xl {
  padding: 18px 28px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 72px 6vw 40px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  letter-spacing: 0.16em;
  font-size: 12px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: blink 1.1s infinite;
}

h1 {
  margin: 10px 0 18px;
  font-family: Orbitron, sans-serif;
  font-size: clamp(64px, 12vw, 132px);
  line-height: 0.85;
  letter-spacing: 0.02em;
}

.glitch {
  position: relative;
  color: #effff6;
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.45);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

.glitch::before {
  color: #00ff88;
  transform: translate(2px, -1px);
  animation: glitch 2.8s infinite;
}

.glitch::after {
  color: #ff4d6d;
  transform: translate(-2px, 1px);
  animation: glitch 2.2s infinite reverse;
}

.quote {
  font-size: 20px;
  max-width: 680px;
  color: var(--mint);
}

.lede {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  width: fit-content;
}

.ca-label,
.ca-row code {
  font-size: 12px;
  color: var(--muted);
}

.btn-copy {
  border: 1px solid var(--line);
  padding: 6px 10px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.28), transparent 70%);
  filter: blur(8px);
  animation: orbit 8s ease-in-out infinite;
}

.hero-art picture {
  display: grid;
  place-items: center;
  width: 100%;
}

.mascot {
  width: min(420px, 88%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--green);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.stat-float {
  position: absolute;
  padding: 10px 12px;
  background: rgba(7, 17, 11, 0.86);
  border: 1px solid var(--line);
  min-width: 110px;
}

.stat-float small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.s1 {
  top: 8%;
  left: 0;
  animation: float 4s ease-in-out infinite;
}

.s2 {
  right: 0;
  top: 38%;
  animation: float 5.4s ease-in-out infinite reverse;
}

.s3 {
  bottom: 8%;
  left: 8%;
  animation: float 6s ease-in-out infinite;
}

.meters,
.lore-grid,
.specs,
.steps,
.tweets {
  display: grid;
  gap: 16px;
}

.meters {
  grid-template-columns: repeat(3, 1fr);
  padding: 0 6vw 40px;
}

.meters article,
.lore-grid article,
.specs div,
.tweet,
.cook-card,
.curve-wrap {
  background: rgba(7, 17, 11, 0.84);
  border: 1px solid var(--line);
  padding: 18px;
}

.meter {
  height: 8px;
  background: #102218;
  margin: 10px 0;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  box-shadow: 0 0 12px var(--green);
  transition: width 0.4s ease;
}

.panel {
  padding: 48px 6vw;
}

.section-head {
  margin-bottom: 24px;
}

.kicker {
  color: var(--green);
  letter-spacing: 0.16em;
  font-size: 12px;
}

h2 {
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.04em;
  margin: 6px 0 0;
}

.lore-grid {
  grid-template-columns: repeat(3, 1fr);
}

.lore-grid span {
  color: var(--green);
  font-size: 12px;
}

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

.tweet header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
}

.elon {
  background: radial-gradient(circle at 30% 30%, #fff, #777);
}

.grok-av {
  background: radial-gradient(circle at 30% 30%, #00ff88, #054);
}

.tweet span,
.tweet time {
  color: var(--muted);
  font-size: 12px;
}

.tweet.highlight {
  border-color: var(--green);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.tweet.highlight .big {
  font-size: 28px;
  line-height: 1.3;
}

.tweet.highlight span {
  color: var(--green);
  font-size: inherit;
}

.curve-wrap {
  position: relative;
  overflow: hidden;
}

#curve-svg {
  width: 100%;
  height: 280px;
  display: block;
}

.curve-hud {
  display: flex;
  gap: 28px;
  margin-top: 12px;
}

.curve-hud small,
.specs small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.specs {
  grid-template-columns: repeat(6, 1fr);
}

.steps {
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.steps li {
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(7, 17, 11, 0.84);
}

.steps b {
  color: var(--green);
}

.cook-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cook-card code {
  display: block;
  margin: 16px 0;
  color: var(--mint);
  word-break: break-all;
}

.cook-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.terminal {
  background: #020805;
  border: 1px solid var(--line);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.term-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-dim);
}

.term-bar span:first-child {
  background: var(--danger);
}

#term-out {
  min-height: 220px;
  padding: 14px;
  color: var(--green);
  font-family: "Share Tech Mono", monospace;
  white-space: pre-wrap;
}

.foot {
  padding: 28px 6vw 48px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbit {
  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

@keyframes glitch {
  0%,
  86%,
  100% {
    clip-path: inset(0 0 0 0);
  }
  88% {
    clip-path: inset(20% 0 40% 0);
    transform: translate(-6px, 1px);
  }
  92% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(5px, -2px);
  }
}

@keyframes pulseGlow {
  50% {
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.55);
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero,
  .lore-grid,
  .tweets,
  .specs,
  .steps,
  .cook-card,
  .meters {
    grid-template-columns: 1fr;
  }

  .tweet.highlight .big {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
