:root {
  --bio-dark: #0D1A0D;
  --bio-darker: #080F08;
  --culture: #132613;
  --virus-green: #4A8C3F;
  --toxic-lime: #8BDB4A;
  --cell-white: #F0F5EC;
  --spore: #4D6B4D;

  --line-faint: rgba(74, 140, 63, 0.06);
  --line-soft: rgba(74, 140, 63, 0.10);
  --line-mid: rgba(74, 140, 63, 0.16);
  --bg-glass: rgba(13, 26, 13, 0.9);
  --tile: rgba(74, 140, 63, 0.08);
  --tile-bd: rgba(74, 140, 63, 0.12);
  --lime-glow: rgba(139, 219, 74, 0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bio-dark); color: var(--cell-white); }
html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 140, 63, 0.05) 0%, rgba(74, 140, 63, 0.02) 35%, transparent 65%),
    var(--bio-dark);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============== background micro-organisms ============== */
.organisms {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.micro {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: var(--virus-green);
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(0.5px);
  animation: drift var(--d, 30s) ease-in-out infinite;
}
.micro:nth-child(2n) { animation-direction: reverse; opacity: 0.06; }
.micro:nth-child(3n) { opacity: 0.10; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, -30px); }
  50% { transform: translate(-25px, 35px); }
  75% { transform: translate(30px, 20px); }
}

/* ============== nav ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-left, .nav-right { z-index: 2; }
.nav-left {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--virus-green);
  letter-spacing: 0.5px;
}
.nav-ca {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Ubuntu Mono', monospace;
  font-size: 11px;
  color: var(--spore);
  cursor: pointer;
  letter-spacing: 0.5px;
  user-select: none;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  text-align: center;
  z-index: 1;
}
.nav-ca:hover { color: var(--toxic-lime); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--cell-white);
  transition: color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--toxic-lime); transform: translateY(-1px); }
.icon-btn[aria-label="community"]:hover { color: var(--virus-green); }
.btn-buy-nav {
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: var(--virus-green);
  border: 1px solid var(--virus-green);
  padding: 6px 18px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.btn-buy-nav:hover {
  background: rgba(74, 140, 63, 0.1);
  color: var(--toxic-lime);
  border-color: var(--toxic-lime);
}

/* ============== hero ============== */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  width: 100%;
  overflow: hidden;
  background: var(--bio-dark);
}

.petri {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.virus {
  position: absolute;
  width: var(--vsize, 200px);
  height: var(--vsize, 200px);
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.3s;
  transform-origin: center;
  opacity: var(--vop, 1);
}
.virus svg {
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.50))
    drop-shadow(0 0 16px rgba(139, 219, 74, 0.22))
    hue-rotate(var(--virus-hue, 0deg))
    brightness(var(--virus-bri, 1));
  animation: levitate var(--lev-dur, 5.5s) cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: var(--lev-delay, 0s);
  pointer-events: none;
  transition: filter 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.virus:hover svg {
  filter:
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 30px rgba(139, 219, 74, 0.85))
    drop-shadow(0 0 14px rgba(139, 219, 74, 0.55))
    hue-rotate(var(--virus-hue, 0deg))
    brightness(calc(var(--virus-bri, 1) * 1.18));
}
.virus.spawning svg {
  animation: levitate var(--lev-dur, 5.5s) cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite,
             spawn 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.virus.popped svg {
  animation: levitate var(--lev-dur, 5.5s) cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite,
             click-pop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

@keyframes levitate {
  0%   { transform: translate(-3px, -8px) rotate(-2deg); }
  25%  { transform: translate( 2px, -2px) rotate( 1deg); }
  50%  { transform: translate( 3px,  8px) rotate( 2deg); }
  75%  { transform: translate(-2px,  2px) rotate(-1deg); }
  100% { transform: translate(-3px, -8px) rotate(-2deg); }
}
@keyframes spawn {
  0%   { transform: scale(0)    rotate(-40deg); opacity: 0; }
  60%  { transform: scale(1.18) rotate( 10deg); opacity: 1; }
  100% { transform: scale(1)    rotate(  0deg); opacity: 1; }
}
@keyframes click-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* connection lines — drawn from clicked point to each new virus, BEHIND viruses */
.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.link-line {
  stroke: var(--toxic-lime);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter:
    drop-shadow(0 0 4px rgba(139, 219, 74, 0.95))
    drop-shadow(0 0 10px rgba(139, 219, 74, 0.65))
    drop-shadow(0 0 20px rgba(139, 219, 74, 0.35));
  animation: link-flash 1.05s cubic-bezier(0.3, 0.7, 0.4, 1) forwards;
  opacity: 0;
}
@keyframes link-flash {
  0%   { stroke-dashoffset: 1; opacity: 0;    stroke-width: 1; }
  18%  { stroke-dashoffset: 0; opacity: 1;    stroke-width: 3; }
  40%  { stroke-dashoffset: 0; opacity: 1;    stroke-width: 2; }
  70%  { stroke-dashoffset: 0; opacity: 0.85; stroke-width: 2.5; }
  100% { stroke-dashoffset: 0; opacity: 0;    stroke-width: 1; }
}

/* glow pulse left at click point */
.pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
  animation: pulse-fade 0.55s ease-out forwards;
}
@keyframes pulse-fade {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-hint {
  position: absolute;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  z-index: 8;
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: var(--spore);
  letter-spacing: 0.5px;
  animation: hint-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.5s ease;
}
.hero-hint.hidden {
  opacity: 0;
  pointer-events: none;
  animation: none;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.95; }
}

.btn-buy {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  background: var(--virus-green);
  color: var(--bio-dark);
  padding: 12px 32px;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(74, 140, 63, 0.25);
}
.btn-buy:hover {
  background: var(--toxic-lime);
  box-shadow: 0 8px 30px var(--lime-glow);
  transform: translateX(-50%) translateY(-1px);
}

/* ============== sections ============== */
.section { position: relative; padding: 80px 24px; z-index: 2; }
.section.spread { background: var(--culture); }
.section.word { background: var(--bio-dark); }
.section.buy { background: var(--culture); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.container.center { text-align: center; }

.kicker {
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker.lime { color: var(--toxic-lime); }
.kicker.green { color: var(--virus-green); }

.h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--cell-white);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.h2.small { font-size: 28px; }

/* spread */
.spread .lore {
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  color: var(--cell-white);
  line-height: 1.75;
  margin-top: 24px;
  opacity: 0.92;
}
.tweet-embed {
  margin-top: 64px;
  width: 100%;
  text-align: center;
}
.spread .lore { text-align: center; }
.tweet-embed .twitter-tweet,
.tweet-embed .twitter-tweet-rendered,
.tweet-embed iframe {
  margin: 0 auto !important;
  display: block !important;
  max-width: 100% !important;
}
.pull-quote {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--toxic-lime);
  border-left: 3px solid var(--toxic-lime);
  padding-left: 20px;
  margin-top: 28px;
  line-height: 1.4;
}
.stats {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 180px;
  background: var(--tile);
  border: 1px solid var(--tile-bd);
  padding: 24px 16px;
  text-align: center;
  border-radius: 6px;
  transition: border-color 0.25s, transform 0.25s;
}
.stat:hover {
  border-color: rgba(139, 219, 74, 0.25);
  transform: translateY(-2px);
}
.stat-num {
  font-family: 'Rubik', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--toxic-lime);
  text-shadow: 0 0 14px var(--lime-glow);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--spore);
  letter-spacing: 0.5px;
}

/* word / tweet */
.tweet-card {
  margin: 32px auto 24px;
  width: 100%;
  max-width: 100%;
  background: var(--culture);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 28px 32px 30px;
  text-align: left;
  transition: border-color 0.25s;
}
.tweet-card:hover { border-color: var(--line-mid); }
.tweet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.tweet-avatar {
  width: 44px;
  height: 44px;
  background: var(--bio-darker);
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tweet-avatar svg { width: 90%; height: 90%; }
.tweet-meta { display: flex; flex-direction: column; gap: 2px; }
.tweet-name {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cell-white);
}
.tweet-handle {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--spore);
}
.tweet-body {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  color: var(--cell-white);
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.btn-spread {
  display: block;
  width: 100%;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  background: var(--toxic-lime);
  color: var(--bio-dark);
  padding: 16px 32px;
  border-radius: 0;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-top: 8px;
  box-shadow: 0 6px 22px rgba(139, 219, 74, 0.20);
}
.btn-spread:hover {
  filter: brightness(1.15);
  box-shadow: 0 8px 30px rgba(139, 219, 74, 0.40);
  transform: translateY(-1px);
}

/* how to buy */
.steps { margin-top: 28px; }
.step {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-faint);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Rubik', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: rgba(139, 219, 74, 0.5);
  min-width: 32px;
  letter-spacing: 0;
}
.step-text {
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: var(--cell-white);
  line-height: 1.5;
}

/* footer */
.footer {
  background: var(--bio-darker);
  border-top: 1px solid var(--line-faint);
  padding: 32px 24px;
}
.footer-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-left { z-index: 2; }
.footer-ca {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-virus { display: block; }
.footer-title {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--virus-green);
  letter-spacing: 0.5px;
}
.footer-ca {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 11px;
  color: var(--spore);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  user-select: none;
}
.footer-ca:hover { color: var(--toxic-lime); }

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--toxic-lime);
  color: var(--bio-dark);
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 10px 22px;
  border-radius: 4px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 30px rgba(139, 219, 74, 0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============== responsive ============== */
@media (max-width: 720px) {
  .nav { padding: 12px 16px; }
  .nav-ca { display: none; }
  .nav-right { gap: 10px; }
  .btn-buy-nav { padding: 5px 14px; font-size: 11px; }
  .hero-hint { font-size: 13px; top: 28px; padding: 0 16px; text-align: center; }
  .btn-buy { bottom: 36px; font-size: 13px; padding: 11px 26px; }
  .h2 { font-size: 24px; }
  .h2.small { font-size: 22px; }
  .spread .lore { font-size: 15px; }
  .pull-quote { font-size: 17px; padding-left: 16px; }
  .stat-num { font-size: 28px; }
  .section { padding: 56px 18px; }
  .tweet-card { padding: 20px 22px; }
  .tweet-body { font-size: 15px; }
  .step { gap: 14px; padding: 14px 0; }
  .step-num { font-size: 22px; min-width: 24px; }
  .footer-row { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .footer-ca { position: static; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .virus svg, .micro, .hero-hint { animation: none !important; }
  .virus { transition: none; }
}
