/* THE PUMPERS — variance 7, motion 4, density 6.
   One accent (toxic green), one radius system (14px / pill buttons), dark theme. */

:root {
  --bg: #060907;
  --bg-2: #0b120c;
  --ink: #e8f2e9;
  --muted: #93a996;
  --green: #3ffb62;
  --green-dim: #1d7a33;
  --line: #1b2a1d;
  --radius: 14px;
  --display: "Unbounded", sans-serif;
  --body: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
  background: rgba(6, 9, 7, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; }
.brand img { border-radius: 6px; }
.topnav { display: flex; gap: 18px; margin-left: auto; color: var(--muted); font-size: 0.92rem; }
.topnav a:hover { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-buy { background: var(--green); color: #06210c; box-shadow: 0 0 22px rgba(63, 251, 98, 0.35); }
.btn-buy:hover { box-shadow: 0 0 34px rgba(63, 251, 98, 0.55); }
.btn-ghost { border-color: var(--green-dim); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: 32px; max-width: 1120px; margin: 0 auto; padding: 72px 24px 48px;
}
.eyebrow { color: var(--green); letter-spacing: 0.35em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; line-height: 0.98;
  text-shadow: 0 0 40px rgba(63, 251, 98, 0.25);
}
.sub { color: var(--muted); font-size: 1.08rem; max-width: 42ch; margin: 18px 0 26px; }

.ca-bar {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer; user-select: none; max-width: 100%;
}
.ca-bar:hover { border-color: var(--green-dim); }
.ca-label { color: var(--green); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.15em; }
.ca-value { font-size: 0.92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.ca-copy { color: var(--muted); font-size: 0.8rem; border-left: 1px solid var(--line); padding-left: 12px; }
.ca-bar.copied .ca-copy { color: var(--green); animation: pop 0.4s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }

.cta-row { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

/* the signature: breathing radioactive hood */
.hero-art { position: relative; display: grid; place-items: center; }
.glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 251, 98, 0.5) 0%, rgba(63, 251, 98, 0.14) 45%, transparent 70%);
  filter: blur(28px);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}
.pumper-img {
  position: relative; width: min(420px, 82vw); border-radius: 22px;
  border: 1px solid rgba(63, 251, 98, 0.25);
  box-shadow: 0 0 60px rgba(63, 251, 98, 0.2), 0 30px 60px rgba(0, 0, 0, 0.6);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.marquee-track {
  display: flex; width: max-content;
  font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--green);
  padding: 12px 0; animation: slide 28s linear infinite;
}
.marquee-track span { padding-right: 2ch; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- generator ---------- */
.machine { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.machine-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.machine-head p { color: var(--muted); margin: 10px 0 34px; max-width: 60ch; }

.machine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel-tag { color: var(--green); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 14px; }

.dropzone {
  display: grid; place-items: center; position: relative; overflow: hidden;
  aspect-ratio: 1; border: 2px dashed var(--green-dim); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--green); background: rgba(63, 251, 98, 0.05); }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dz-hint { text-align: center; padding: 20px; position: relative; z-index: 1; }
.dropzone.has-img .dz-hint { background: rgba(6, 9, 7, 0.72); border-radius: 10px; }
.dz-big { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 8px; }
.dz-small { color: var(--muted); font-size: 0.85rem; }

.btn-gen {
  width: 100%; margin-top: 16px; padding: 16px;
  background: var(--green); color: #06210c; font-family: var(--display); font-size: 1.05rem;
  box-shadow: 0 0 26px rgba(63, 251, 98, 0.3);
}
.btn-gen:hover:not(:disabled) { box-shadow: 0 0 40px rgba(63, 251, 98, 0.55); }
.gen-status { min-height: 1.4em; margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.gen-status.err { color: #ff7a6b; }
.gen-status.busy::after { content: ""; display: inline-block; width: 1ch; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.result-frame { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.result-frame img { width: 100%; height: 100%; object-fit: cover; }
.result-frame img.dimmed { opacity: 0.25; filter: saturate(0.6); }
.result-frame.cooking img { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; filter: saturate(1.4); } }
.result-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 0.95rem; color: var(--muted); text-align: center; padding: 20px;
}
.result-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.fresh { margin-top: 40px; }
.fresh-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.fresh-row img {
  width: 108px; height: 108px; border-radius: 12px; flex: none; scroll-snap-align: start;
  border: 1px solid var(--line);
}

/* ---------- lore ---------- */
.lore { max-width: 1120px; margin: 0 auto; padding: 24px 24px 72px; }
.lore h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 30px; }
.lore-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.lore-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lore-a { grid-column: span 4; }
.lore-b { grid-column: span 2; border-color: rgba(63, 251, 98, 0.35); }
.lore-c { grid-column: span 6; display: grid; align-items: center; background: linear-gradient(100deg, var(--bg-2), rgba(63, 251, 98, 0.07)); }
.lore-block h3 { font-size: 1rem; color: var(--green); margin-bottom: 10px; }
.lore-block p { color: var(--muted); }

/* ---------- chart ---------- */
.chart { max-width: 1120px; margin: 0 auto; padding: 0 24px 72px; }
.chart h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 24px; }
.chart-slot {
  display: grid; place-items: center; min-height: 220px;
  border: 1px dashed var(--green-dim); border-radius: var(--radius); background: var(--bg-2);
}
.chart-slot iframe { width: 100%; height: 480px; border: 0; border-radius: var(--radius); }
.chart-note { color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 24px 44px; text-align: center; }
.foot-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; }
.foot-links a { color: var(--green); font-weight: 700; }
.foot-note { color: var(--muted); font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; order: 2; }
  .hero-art { order: 1; }
  .machine-grid { grid-template-columns: 1fr; }
  .lore-a, .lore-b, .lore-c { grid-column: span 6; }
  .topnav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, .pumper-img, .marquee-track, .result-frame.cooking img, .gen-status.busy::after { animation: none; }
  html { scroll-behavior: auto; }
}
