:root {
  --green-950: #00140c;
  --green-900: #002216;
  --green-800: #003d28;
  --green-700: #0a5c3a;
  --green-500: #00c853;
  --green-400: #39e67a;
  --green-300: #7dffb0;
  --green-100: #d4ffe6;
  --ink: #e8fff1;
  --muted: #9bc4ad;
  --line: rgba(57, 230, 122, 0.18);
  --glass: rgba(0, 34, 22, 0.72);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background: var(--green-950);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 20, 12, 0.55) 0%, rgba(0, 20, 12, 0.82) 55%, rgba(0, 20, 12, 0.95) 100%),
    url("../assets/bg-nasdaq.png") center / cover no-repeat;
  animation: bgPulse 14s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(57, 230, 122, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 230, 122, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes bgPulse {
  from { transform: scale(1); filter: saturate(1); }
  to { transform: scale(1.06); filter: saturate(1.15); }
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

/* Ticker */
.ticker {
  position: relative;
  z-index: 20;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 50, 30, 0.85);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-400);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 0.55rem 0;
  animation: marquee 32s linear infinite;
}

.ticker-track span::before {
  content: "▲ ";
  color: var(--green-500);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-500);
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.45);
  animation: logoPulse 2.8s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(0, 200, 83, 0); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: var(--green-400);
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.header-links {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green-300);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.icon-link:hover {
  background: rgba(0, 200, 83, 0.12);
  transform: translateY(-2px);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-300);
  transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 26, 16, 0.95);
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  color: var(--green-100);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none !important;
}

@media (min-width: 860px) {
  .nav,
  .header-links {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), #00a844);
  color: #002216;
  box-shadow: 0 8px 28px rgba(0, 200, 83, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(0, 200, 83, 0.4);
}

.btn-ghost {
  border: 1px solid var(--green-500);
  color: var(--green-300);
  background: rgba(0, 200, 83, 0.06);
}

.btn-ghost:hover {
  background: rgba(0, 200, 83, 0.14);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-400);
}

.hero-brand {
  margin: 0 0 1rem;
  line-height: 0.92;
}

.hero-token {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 14vw, 7.5rem);
  letter-spacing: 0.04em;
  color: var(--green-400);
  text-shadow: 0 0 40px rgba(0, 200, 83, 0.35);
  animation: brandGlow 3.5s ease-in-out infinite alternate;
}

.hero-subbrand {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.92;
}

@keyframes brandGlow {
  from { text-shadow: 0 0 24px rgba(0, 200, 83, 0.25); }
  to { text-shadow: 0 0 48px rgba(57, 230, 122, 0.55); }
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 32rem;
}

.stat {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--green-300);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}

.hero-glow {
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.35), transparent 70%);
  filter: blur(30px);
  animation: glowBreath 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: floatY 5.5s ease-in-out infinite;
}

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

.float-chip {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--green-500);
  background: rgba(0, 34, 22, 0.9);
  color: var(--green-300);
  backdrop-filter: blur(8px);
  animation: chipBob 3.8s ease-in-out infinite;
}

.chip-up {
  top: 8%;
  right: -2%;
  color: var(--green-400);
}

.chip-dex {
  bottom: 12%;
  left: -4%;
  animation-delay: -1.4s;
}

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

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 1.5rem;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.token-panel h2,
.record-banner h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 400;
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.timeline {
  max-width: 42rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--green-400);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.timeline p {
  color: var(--muted);
}

.timeline blockquote,
.big-quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  color: var(--ink);
  font-style: italic;
}

.timeline cite,
.big-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--green-400);
}

.record-banner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-500);
}

.record-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-400);
}

.record-banner p:last-child {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* Portfolio */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .stock-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.stock {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0.85rem;
  border-top: 1px solid var(--line);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.stock:hover {
  background: rgba(0, 200, 83, 0.08);
  transform: translateY(-3px);
}

.ticker-sym {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.stock .name {
  font-size: 0.78rem;
  color: var(--muted);
}

.pct.up {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green-400);
}

.portfolio-note {
  margin: 2rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

/* Showdown meters */
.vs-meters {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 42rem;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.meter-raven .meter-label {
  color: var(--green-300);
}

.meter-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  overflow: hidden;
}

.meter-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-700), var(--green-400));
  transition: width 1.4s var(--ease);
}

.meter-bar.in-view i {
  width: var(--w);
}

.meter-raven .meter-bar i {
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  box-shadow: 0 0 18px rgba(0, 200, 83, 0.55);
}

/* Token */
.token {
  padding-bottom: 5rem;
}

.token-panel {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.token-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-500);
  animation: logoPulse 2.8s ease-in-out infinite;
}

.token-copy {
  color: var(--muted);
  margin: 1rem auto 1.75rem;
}

.ca-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 40, 26, 0.55);
}

.ca-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}

.ca-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--green-300);
  word-break: break-all;
}

.ca-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.token-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  color: var(--green-300);
}

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

.disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(155, 196, 173, 0.65);
  max-width: 36rem;
  margin-inline: auto;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stock.reveal {
  transition-delay: calc(var(--i, 0) * 0.05s);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    transform: none;
  }
}
