:root {
  --bg-deep: #060a12;
  --bg-surface: #0c1220;
  --bg-elevated: #111827;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(163, 230, 53, 0.35);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --lime: #a3e635;
  --lime-bright: #bef264;
  --lime-dim: #65a30d;
  --lime-glow: rgba(163, 230, 53, 0.25);
  --white: #ffffff;
  --pill-white: #f8fafc;
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow--left {
  top: -200px;
  left: -200px;
  background: rgba(163, 230, 53, 0.08);
}

.glow--right {
  bottom: -200px;
  right: -200px;
  background: rgba(163, 230, 53, 0.05);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(12px);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand__logo {
  border-radius: 50%;
  object-fit: cover;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lime-bright);
}

.live-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title-accent {
  color: var(--lime-bright);
  text-shadow: 0 0 40px var(--lime-glow);
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--lime);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--lime-glow);
}

.btn--primary:hover {
  background: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 32px var(--lime-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

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

.btn--ghost:hover {
  border-color: var(--border-accent);
  background: rgba(163, 230, 53, 0.05);
}

.btn--lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 1rem;
}

/* Contract box */
.ca-box {
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
}

.ca-box__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ca-box__address {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--lime-bright);
  word-break: break-all;
  line-height: 1.5;
}

/* Bounce arena */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bounce-arena {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
}

.bounce-arena__label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  background: var(--bg-deep);
  padding: 4px 12px;
  border-radius: 4px;
  z-index: 2;
}

#bounce-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-accent);
  background: var(--bg-surface);
  box-shadow:
    0 0 0 1px rgba(163, 230, 53, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(163, 230, 53, 0.03);
}

.corner-hit {
  position: absolute;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--lime);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
  text-shadow: 0 0 8px var(--lime-glow);
}

.corner-hit--tl { top: 8px; left: 8px; }
.corner-hit--tr { top: 8px; right: 8px; }
.corner-hit--bl { bottom: 8px; left: 8px; }
.corner-hit--br { bottom: 8px; right: 8px; }

.corner-hit.flash {
  opacity: 1;
  animation: cornerFlash 0.6s ease-out;
}

@keyframes cornerFlash {
  0% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1); }
}

/* Mechanics */
.mechanics {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
}

.mechanics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(163, 230, 53, 0.2);
  transform: translateY(-4px);
}

.card--highlight {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.08) 0%, var(--bg-surface) 60%);
  box-shadow: 0 0 40px rgba(163, 230, 53, 0.06);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__icon--bounce {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.card__icon--buyback {
  background: rgba(163, 230, 53, 0.15);
  color: var(--lime);
}

.card__icon--airdrop {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lime-bright);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.card__text strong {
  color: var(--text);
}

/* Stream CTA */
.stream-cta {
  position: relative;
  z-index: 1;
  padding: 0 24px 80px;
}

.stream-cta__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(163, 230, 53, 0.08);
}

.stream-cta__logo {
  border-radius: 50%;
  filter: drop-shadow(0 0 20px var(--lime-glow));
}

.stream-cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stream-cta__desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 420px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lime-bright);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 40px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .ca-box {
    margin-left: auto;
    margin-right: auto;
  }

  .mechanics__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .stream-cta__inner {
    padding: 32px 24px;
  }
}
