/* ════════════════════════════════════════════════
   apuuty - apu with a booty
   pro 4chan / early-internet aesthetic
   ════════════════════════════════════════════════ */

:root {
  --bg: #0e0f10;
  --bg-2: #18191b;
  --paper: #f1f4ec;
  --ink: #0e0f10;
  --pepe: #6fbb52;
  --pepe-deep: #2f7a3a;
  --pepe-bright: #b6e88a;
  --booty: #ffadd6;     /* baby pink, the apuuty signature */
  --booty-deep: #ff5fa2;
  --green-text: #789922;
  --4chan-bg: #ffffee;
  --rule: rgba(241,244,236,.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
a { color: var(--pepe-bright); text-decoration: none; }
a:hover { color: var(--booty); }

/* ════ ca bar ════ */
.ca-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: #000;
  color: var(--paper);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  font-family: 'VT323', monospace;
  font-size: 17px;
}
.ca-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--booty);
}
.ca-input {
  flex: 1; min-width: 240px;
  background: #0a0b0c;
  color: var(--pepe-bright);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: .03em;
}
.ca-copy {
  background: var(--booty);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .12s, transform .08s;
}
.ca-copy:hover { background: var(--booty-deep); color: #fff; transform: translateY(-1px); }
.ca-copy.copied { background: var(--pepe-bright); }
.foot-ca {
  margin-top: 18px;
  background: #0c0c0c;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
}

/* ════ marquee ════ */
.marquee {
  background: #000;
  color: var(--pepe-bright);
  border-bottom: 2px solid var(--pepe);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  padding: 9px 0;
  white-space: nowrap;
  animation: marq 30s linear infinite;
}
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════ topbar ════ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(14,15,16,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--paper); }
.brand-mark {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--pepe-bright);
  letter-spacing: .02em;
}
.brand-tag {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--booty);
}
.nav { display: flex; gap: 22px; }
.nav a {
  font-size: 14px; font-weight: 600;
  color: var(--paper);
}
.nav a:hover { color: var(--booty); }
.x-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.x-link:hover { background: var(--booty); color: var(--ink); }
.socials { display: flex; gap: 8px; align-items: center; }
.sock-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  transition: background .12s, transform .12s;
}
.sock-link:hover { background: var(--booty); color: var(--ink); transform: translateY(-2px); }

@media (max-width: 700px) {
  .nav { display: none; }
}

/* ════ HERO ════ */
.hero {
  position: relative;
  padding: 56px 24px 64px;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(255,173,214,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(111,187,82,.18), transparent 60%),
    linear-gradient(180deg, #0e0f10 0%, #15171a 100%);
}
.hero-inner { max-width: 1180px; margin: 0 auto; }
.hero-head { text-align: center; margin-bottom: 36px; }
.ribbon {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  background: var(--booty);
  color: var(--ink);
  padding: 8px 16px;
  margin-bottom: 18px;
  transform: rotate(-1deg);
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  margin: 0 auto 16px;
  color: var(--paper);
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--booty);
  text-decoration: underline wavy var(--booty-deep);
  text-underline-offset: 8px;
}
.hero-tag {
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--paper);
  margin: 0 auto;
  max-width: 640px;
}

/* ════ generator ════ */
.gen-grid {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 36px;
  align-items: start;
}
.preview-wrap { display: flex; flex-direction: column; gap: 16px; }
.preview {
  position: relative;
  width: 100%; aspect-ratio: 1;
  background: #fff;
  border: 4px solid var(--paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--booty);
}
.preview .layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.preview-actions { display: flex; gap: 10px; }
.preview-actions .btn { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  border: 3px solid var(--paper);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .1s;
  text-decoration: none;
  background: transparent;
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--pepe-deep);
}
.btn-primary { background: var(--booty); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--booty-deep); }
.btn-primary:hover { background: var(--booty-deep); color: #fff; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-export { background: var(--pepe-bright); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--pepe-deep); }
.btn-export:hover { background: var(--pepe); color: var(--ink); }
.btn-cool { background: #1a8cd8; color: #fff; border-color: var(--ink); }
.btn-cool:hover { background: #0e6ec0; }
.btn:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--pepe-deep); }
.btn:active { transform: translateY(2px); box-shadow: 2px 2px 0 var(--pepe-deep); }

.controls { display: flex; flex-direction: column; gap: 12px; }
.control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 2px solid var(--rule);
  border-radius: 10px;
}
.control:hover { border-color: var(--booty); }
.control-row { display: flex; flex-direction: column; gap: 6px; }
.control-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--booty);
}
.control select {
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #0a0b0c;
  color: var(--paper);
  cursor: pointer;
  width: 100%;
}
.lock-btn {
  background: var(--bg);
  color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: background .1s;
}
.lock-btn[aria-pressed="true"] { background: var(--booty); color: var(--ink); }

.export-row {
  margin-top: 28px;
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.export-status {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--pepe-bright);
  margin-top: 12px;
  min-height: 1.4em;
}
.export-status.error { color: #ff7a8a; }

@media (max-width: 880px) {
  .gen-grid { grid-template-columns: 1fr; gap: 24px; }
  .preview-wrap { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* ════ STEPS ════ */
.steps {
  padding: 80px 0;
  background:
    linear-gradient(180deg, #15171a 0%, #0e0f10 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-h {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 36px;
  text-align: center;
  letter-spacing: -.01em;
  color: var(--paper);
}
.section-h.light { color: var(--paper); }
.step-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step-card {
  position: relative;
  padding: 22px;
  background: var(--bg-2);
  border: 2px solid var(--rule);
  border-radius: 16px;
  transition: transform .15s, border-color .15s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--booty); }
.step-num {
  position: absolute; top: -14px; left: 18px;
  background: var(--booty);
  color: var(--ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}
.step-h {
  font-weight: 800;
  font-size: 22px;
  margin: 12px 0 8px;
  color: var(--paper);
}
.step-card p {
  font-family: 'VT323', monospace;
  font-size: 19px;
  color: var(--paper);
  margin: 0 0 14px;
  opacity: .9;
}
.step-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 60%, rgba(255,173,214,.18), transparent 60%),
    var(--bg);
  border-radius: 12px;
  margin-top: 6px;
}

/* ════ LORE / GREENTEXT ════ */
.lore {
  padding: 80px 0;
  background: var(--bg);
}
.lore-lead {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: var(--paper);
  margin: 0 auto 28px;
  max-width: 640px;
  font-style: italic;
}
.greentext {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  background: var(--4chan-bg);
  color: var(--green-text);
  padding: 20px 24px;
  margin: 0 auto;
  border: 1px solid #d9bfb7;
  white-space: pre-wrap;
  line-height: 1.55;
  max-width: 720px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #b9967a;
}
.greentext .hl {
  color: var(--booty-deep);
  font-weight: bold;
  font-size: 18px;
}
.lore-out {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 22px;
  margin-top: 28px;
  color: var(--paper);
}
.lore-out strong { color: var(--booty); }

/* ════ FOOTER ════ */
.footer {
  padding: 50px 0 36px;
  background: #000;
  border-top: 2px solid var(--pepe);
  text-align: center;
  color: var(--paper);
}
.foot-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--booty);
  margin: 0 0 14px;
}
.foot-links {
  font-family: 'VT323', monospace;
  font-size: 18px;
  margin-bottom: 18px;
}
.foot-links a { color: var(--paper); }
.foot-links a:hover { color: var(--booty); }
.foot-links span { color: var(--rule); margin: 0 8px; }
.disclaimer {
  font-size: 13px;
  color: rgba(241,244,236,.45);
  margin: 0;
  font-family: 'VT323', monospace;
}
