/* 4663 Stonks — Robinhood Chain lime #ccff00 */
:root {
  --lime: #ccff00;
  --lime-dim: rgba(204, 255, 0, 0.12);
  --lime-glow: rgba(204, 255, 0, 0.45);
  --black: #050505;
  --ink: #0a0a0a;
  --surface: #101010;
  --muted: #8a8f80;
  --text: #f2f5e8;
  --line: rgba(204, 255, 0, 0.18);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
  mix-blend-mode: overlay;
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 20%, transparent 75%);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 5, 5, 0.9);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  z-index: 2;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 20px var(--lime-glow);
}

.nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

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

.site-header > .btn-sm {
  display: none;
  margin-left: 0.5rem;
}

.menu-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

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

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

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 5, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.04em;
}

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

.mobile-nav a:hover {
  color: var(--lime);
}

.mobile-nav .btn {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  margin-top: 1rem;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }
  .site-header > .btn-sm {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  background: var(--lime);
  color: #0a0a0a;
}

.btn-sm:hover {
  box-shadow: 0 0 28px var(--lime-glow);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--lime);
  color: #0a0a0a;
  box-shadow: 0 0 0 0 transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--lime-glow);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(204, 255, 0, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--lime);
  background: var(--lime-dim);
  color: var(--lime);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* Hero — one composition */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-h) + 1.5rem) 1.25rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  animation: hero-ken 28s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.35) 40%, rgba(5, 5, 5, 0.92) 100%),
    radial-gradient(ellipse 60% 50% at 50% 40%, transparent 0%, rgba(5, 5, 5, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  animation: hero-in 1s var(--ease-out) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}

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

/* Logo flip — 3D coin */
.logo-flip-stage {
  position: relative;
  width: min(220px, 48vw);
  height: min(220px, 48vw);
  margin-bottom: 1.5rem;
  perspective: 1000px;
}

.logo-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: coin-flip 4.5s ease-in-out infinite;
}

.logo-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
}

.logo-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-back {
  transform: rotateY(180deg);
}

.logo-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 65%);
  filter: blur(18px);
  opacity: 0.7;
  animation: glow-breathe 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes coin-flip {
  0% { transform: rotateY(0deg) rotateX(4deg); }
  40% { transform: rotateY(180deg) rotateX(-2deg); }
  50% { transform: rotateY(180deg) rotateX(-2deg); }
  90% { transform: rotateY(360deg) rotateX(4deg); }
  100% { transform: rotateY(360deg) rotateX(4deg); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.logo-flip-stage:hover .logo-flip {
  animation-duration: 1.8s;
}

.hero-brand {
  font-family: var(--font-display);
  line-height: 0.85;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.brand-num {
  display: block;
  font-size: clamp(4.5rem, 16vw, 8rem);
  color: var(--lime);
  text-shadow:
    0 0 40px var(--lime-glow),
    0 4px 0 #000;
  animation: brand-flicker 5s ease-in-out infinite;
}

.brand-name {
  display: block;
  font-size: clamp(3rem, 11vw, 5.5rem);
  color: var(--text);
  letter-spacing: 0.12em;
}

@keyframes brand-flicker {
  0%, 92%, 100% { opacity: 1; filter: brightness(1); }
  94% { opacity: 0.85; filter: brightness(1.3); }
  96% { opacity: 1; }
}

.hero-ticker {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--lime);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.hero-chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-chart 2.8s var(--ease-out) 0.4s forwards;
  filter: drop-shadow(0 0 6px var(--lime));
}

.chart-fill {
  fill: url(#none);
  fill: rgba(204, 255, 0, 0.08);
  opacity: 0;
  animation: fade-fill 1.5s ease 1.8s forwards;
}

@keyframes draw-chart {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-fill {
  to { opacity: 1; }
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(204, 255, 0, 0.04);
  padding: 0.85rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
  padding-right: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--lime);
  animation: marquee 28s linear infinite;
}

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

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feature-list li {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.feat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--lime);
  border: 1px solid var(--line);
  background: var(--lime-dim);
}

.feature-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-list span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tokenomics */
.tokenomics {
  background:
    linear-gradient(180deg, transparent, rgba(204, 255, 0, 0.03), transparent);
}

.tok-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

.tok-item {
  background: var(--ink);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tok-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tok-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.04em;
  color: var(--lime);
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--line);
  background: rgba(204, 255, 0, 0.03);
}

.ca-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ca-row code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
}

.copy-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.copy-btn:not(:disabled):hover {
  color: var(--lime);
  border-color: var(--lime);
  background: var(--lime-dim);
}

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

@media (min-width: 640px) {
  .tok-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Buy steps */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  counter-reset: none;
}

.steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--lime);
  letter-spacing: 0.04em;
  line-height: 1;
  min-width: 2.5rem;
}

.steps strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.98rem;
}

.steps a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Community */
.community-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community .section-copy {
  margin-left: auto;
  margin-right: auto;
}

.x-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08), transparent 60%);
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.x-link:hover {
  border-color: var(--lime);
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.15);
  transform: translateY(-3px);
}

.x-link svg {
  flex-shrink: 0;
  color: var(--lime);
}

.x-link span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.x-link strong {
  font-size: 1.1rem;
}

.x-link em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.x-arrow {
  font-size: 1.25rem;
  color: var(--lime);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

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

.footer-brand img {
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.footer-brand span {
  font-size: 0.8rem;
  color: var(--muted);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 36rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

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

@media (min-width: 720px) {
  .site-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .disclaimer {
    order: 3;
    flex-basis: 100%;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-flip,
  .logo-glow,
  .hero-bg img,
  .brand-num,
  .pulse-dot,
  .chart-line,
  .chart-fill,
  .marquee-track {
    animation: none !important;
  }
  .chart-line { stroke-dashoffset: 0; }
  .chart-fill { opacity: 1; }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .logo-flip {
    transform: none;
  }
}
