/* Geist font family — ClawBank aesthetic */
@font-face {
  font-family: 'Geist Pixel Square';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://unpkg.com/geist@1.7.0/dist/fonts/geist-pixel/GeistPixel-Square.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://unpkg.com/geist@1.7.0/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://unpkg.com/geist@1.7.0/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://unpkg.com/geist@1.7.0/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://unpkg.com/geist@1.7.0/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://unpkg.com/geist@1.7.0/dist/fonts/geist-mono/GeistMono-Medium.woff2') format('woff2');
}

:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --text: #ffffff;
  --muted: #888888;
  --border: #222222;
  --accent: #00ff88;
  --green-bright: #00ffaa;
  --green-mint: #5dffb8;
  --green-soft: #00ff88;
  --green-muted: rgba(0, 255, 170, 0.85);
  --green-dim: rgba(0, 255, 170, 0.7);
}

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

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

body {
  font-family: 'Geist Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.grid-pulses {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-pulse { position: absolute; opacity: 0.5; }

.grid-pulse--h {
  height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.08) 70%, transparent);
}

.grid-pulse--v {
  width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.08) 70%, transparent);
}

.grid-pulse--h.pulse-ltr { animation: pulseTravelH 2.5s linear infinite; }
.grid-pulse--h.pulse-rtl { animation: pulseTravelHRev 2.5s linear infinite; }
.grid-pulse--v.pulse-ttb { animation: pulseTravelV 2.5s linear infinite; }
.grid-pulse--v.pulse-btt { animation: pulseTravelVRev 2.5s linear infinite; }

@keyframes pulseTravelH { from { transform: translateX(-100px); } to { transform: translateX(calc(100vw + 100px)); } }
@keyframes pulseTravelHRev { from { transform: translateX(calc(100vw + 100px)); } to { transform: translateX(-100px); } }
@keyframes pulseTravelV { from { transform: translateY(-100px); } to { transform: translateY(calc(100vh + 100px)); } }
@keyframes pulseTravelVRev { from { transform: translateY(calc(100vh + 100px)); } to { transform: translateY(-100px); } }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header nav */
.header-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-nav .nav-links { display: flex; gap: 1.5rem; }

.header-nav a {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--green-bright);
  text-shadow: 0 0 18px rgba(0, 255, 170, 0.6);
}

.back-link {
  font-size: 1rem;
  color: var(--green-bright);
  text-shadow: 0 0 28px rgba(0, 255, 170, 0.6);
}

.back-link:hover {
  color: var(--green-mint);
  text-shadow: 0 0 36px rgba(0, 255, 170, 0.8);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animate bars into X when open */
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .header-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .header-nav .nav-links.open {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 7rem 0 4rem;
  text-align: center;
}

.hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 28px rgba(0, 255, 170, 0.4));
}

.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(0, 255, 170, 0.35);
}

.hero .subtext {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.typing-title {
  min-height: 1.5rem;
}

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: cursor-blink 1s step-end infinite;
}

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

/* ASCII section */
.ascii-section {
  padding: 2rem 0 3rem;
}

.ascii-player-wrap {
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin: 0 auto;
  background: transparent;
  overflow: hidden;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .ascii-player-wrap {
    width: 100%;
    max-width: 320px;
    height: 320px;
  }
}

/* Install block */
.install-block {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.install-block:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.3);
}

.install-block code { color: var(--green-mint); }

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-family: 'Geist Pixel Square', monospace;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.copy-btn:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: 'Geist Pixel Square', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background: var(--muted);
  border-color: var(--muted);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.25);
}

/* Ticker */
.ticker-section {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  animation: tickerScroll 25s linear infinite;
}

.ticker-item {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* Frameworks */
.frameworks-section {
  padding: 3rem 0;
}

.frameworks-label {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.frameworks-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.framework-badge {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.framework-badge:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.25);
}

/* Sections */
section {
  padding: 3rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* How it works */
.how-section .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.3);
}

.step-num {
  display: block;
  font-family: 'Geist Pixel Square', monospace;
  font-size: 1.5rem;
  color: var(--green-bright);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.step-card h3 {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 1.5rem;
  color: var(--green-bright);
  text-shadow: 0 0 24px rgba(0, 255, 170, 0.5);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Token */
.token-section {
  padding-top: 0.1rem;
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.token-card:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.4);
}

.token-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 28px rgba(0, 255, 170, 0.4));
}

.token-name {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--green-bright);
  text-shadow: 0 0 32px rgba(0, 255, 170, 0.7);
}

.token-tagline {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.token-address {
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 1rem;
}

.token-address a {
  color: inherit;
  text-decoration: none;
}

.token-address a:hover {
  text-decoration: underline;
}

.token-address code {
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  font-family: 'Geist Mono', monospace;
}

.token-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
}

.token-card .btn {
  margin: 0 0.5rem 0 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.3);
}

.feature-card h3 {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Get started */
.getstarted-steps {
  margin-bottom: 2rem;
}

.getstarted-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.getstarted-step .step-num {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 1rem;
  color: var(--green-bright);
  min-width: 1.5rem;
}

.getstarted-step h3 {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.getstarted-step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Code block */
.code-block {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.code-block:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.2);
}

.code-filename {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.code-block .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}

.code-block pre {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.85rem;
  color: var(--green-mint);
}

.getstarted-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.getstarted-split .code-block {
  margin-bottom: 0;
}

.cli-preview {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cli-preview:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.2);
}

.cli-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cli-img.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .getstarted-split {
    grid-template-columns: 1fr;
  }

  .cli-preview {
    aspect-ratio: 16 / 10;
  }
}

.code-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Inspired / Tweet */
.inspired-section {
  padding: 2rem 0;
}

.inspired-label {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tweet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.tweet-embed {
  display: block;
  padding: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tweet-embed:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 32px rgba(0, 255, 170, 0.3);
}

.tweet-embed blockquote {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tweet-embed cite {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 640px) {
  .tweet-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  font-family: 'Geist Pixel Square', monospace;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--green-bright);
}

.faq-item p {
  margin-top: 0.75rem;
  padding-left: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sweeper Functions */
.sweeper-content {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.sweeper-desc {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.sweeper-desc:last-of-type {
  margin-bottom: 0;
}

.sweeper-svg {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.sweeper-svg-object {
  max-width: 900px;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Roadmap */
.roadmap-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.roadmap-list:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(0, 255, 170, 0.4);
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.roadmap-item:last-child {
  border-bottom: none;
}

.roadmap-phase {
  font-family: 'Geist Pixel Square', monospace;
  color: var(--text);
  font-weight: 400;
  min-width: 140px;
}

.roadmap-desc {
  color: var(--text);
  font-family: 'Geist Mono', monospace;
  min-height: 1.4em;
}

.roadmap-item.complete .roadmap-phase::after {
  content: ' ✓';
  color: var(--green-bright);
}

.roadmap-item.complete .roadmap-desc {
  text-decoration: line-through;
  color: var(--muted);
}

.roadmap-item.current .roadmap-phase {
  color: var(--green-bright);
  text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.roadmap-item.current .roadmap-desc {
  color: var(--green-bright);
}

.roadmap-desc.decrypting {
  color: rgba(255, 255, 255, 0.5);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 4rem 0;
}

.cta-section .section-subtitle { margin-bottom: 1.5rem; }

.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

.waitlist-input {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input::placeholder { color: var(--muted); }

.waitlist-input:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

.waitlist-btn {
  flex-shrink: 0;
  cursor: pointer;
}

.waitlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.form-msg.success { color: var(--green-bright); }
.form-msg.error { color: #ff6b6b; }

@media (max-width: 480px) {
  .form-row { flex-direction: column; }
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--text);
  text-decoration: none;
}

footer a:hover {
  color: var(--green-bright);
  text-decoration: underline;
  text-shadow: 0 0 16px rgba(0, 255, 170, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .how-section .steps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-row { gap: 2rem; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .install-block { flex-direction: column; align-items: stretch; }
  .roadmap-item { gap: 0.75rem; }
  .roadmap-phase { min-width: auto; }
  .token-card .btn { margin: 0.25rem; }
}
