/* =============================================================================
   Llama's Ass — site theme
   Retro (classic Winamp / early-2000s) meets modern (winamp.com, foobar2000.org).
   Palette comes straight from the branding kit (docs/palette.json).
   ========================================================================== */

:root {
  /* Brand palette */
  --retroOrange: #FF6A00;
  --electricOrange: #FF8C2A;
  --uiBlack: #0A0A0A;
  --deepGraphite: #1A1A1F;
  --chromeSilver: #C7C7C7;
  --llamaWhite: #F4F4F4;
  --eyeGold: #FFB300;
  --retroGreen: #00FF66;
  --spectrumBlue: #1EA7FF;

  /* Derived surfaces */
  --bg: #07070A;
  --bg-2: #0E0F14;
  --panel: #14151B;
  --panel-2: #1B1D25;
  --panel-line: #2A2D38;
  --ink: var(--llamaWhite);
  --ink-dim: #A7ACBB;
  --ink-faint: #6C7183;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;

  --mono: ui-monospace, "Cascadia Mono", "Consolas", "Courier New", monospace;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --glow-orange: 0 0 24px rgba(255,106,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(255,106,0,.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0, rgba(30,167,255,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--electricOrange); text-decoration: none; }
a:hover { color: var(--eyeGold); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(12,13,18,.96), rgba(10,11,15,.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
  box-shadow: 0 1px 0 rgba(255,106,0,.35);
}
.site-header .bar {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .wordmark {
  font-weight: 800; letter-spacing: .5px; font-size: 18px; color: var(--llamaWhite);
}
.brand .ver {
  font-family: var(--mono); font-size: 11px; color: var(--retroGreen);
  border: 1px solid rgba(0,255,102,.4); border-radius: 999px; padding: 1px 8px;
}
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a {
  color: var(--ink-dim); font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 8px; letter-spacing: .3px;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--llamaWhite); background: rgba(255,255,255,.04); }
.nav a.active {
  color: var(--llamaWhite);
  background: linear-gradient(180deg, rgba(255,106,0,.20), rgba(255,106,0,.05));
  border-color: rgba(255,106,0,.5);
}
.nav-toggle { display: none; }

/* ------------------------------------------------------------------ Ticker */
.ticker {
  background: linear-gradient(180deg, #0b0c10, #060608);
  border-bottom: 1px solid var(--panel-line);
  overflow: hidden; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; color: var(--retroGreen);
}
.ticker .track {
  display: inline-block; padding: 8px 0;
  animation: scroll-left 34s linear infinite;
}
.ticker:hover .track { animation-play-state: paused; }
.ticker .track span { padding: 0 2.5rem; }
.ticker .track span::before { content: "\25B8"; color: var(--retroOrange); padding-right: .6rem; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .track { animation: none; white-space: normal; }
}

/* -------------------------------------------------------------------- Hero */
.hero { padding: 64px 0 40px; }
.hero .grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--eyeGold); margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 16px;
  letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff, #cdd2df);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--ink-dim); margin: 0 0 26px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

/* Beveled "app window" frame around the screenshot */
.app-window {
  border-radius: 10px; overflow: hidden;
  border: 1px solid #000;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    var(--shadow), var(--glow-orange);
  background: #0b0c11;
}
.app-window .titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px;
  background: linear-gradient(180deg, #23252e, #0d0e13);
  border-bottom: 1px solid #000;
  font-size: 12px; color: var(--chromeSilver); font-family: var(--mono);
}
.app-window .titlebar .dot { width: 9px; height: 9px; border-radius: 50%; background: #444; }
.app-window .titlebar .dot.o { background: var(--retroOrange); }
.app-window .titlebar .dot.g { background: var(--retroGreen); }
.app-window .titlebar .t { margin-left: 6px; letter-spacing: .5px; }
.app-window img { width: 100%; display: block; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: .3px;
  padding: 12px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #180a00;
  background: linear-gradient(180deg, var(--electricOrange), var(--retroOrange));
  box-shadow: 0 6px 20px rgba(255,106,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { color: #180a00; box-shadow: 0 8px 30px rgba(255,106,0,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  color: var(--llamaWhite);
  background: rgba(255,255,255,.04);
  border-color: var(--panel-line);
}
.btn-ghost:hover { color: #fff; border-color: var(--chromeSilver); background: rgba(255,255,255,.07); }
.btn .sz { font-family: var(--mono); font-size: 12px; color: rgba(24,10,0,.7); font-weight: 600; }
.btn-ghost .sz { color: var(--ink-faint); }

/* ---------------------------------------------------------------- Sections */
section.block { padding: 46px 0; }
.section-head { margin-bottom: 26px; }
.section-head .kicker {
  font-family: var(--mono); letter-spacing: 3px; text-transform: uppercase;
  font-size: 12px; color: var(--retroOrange); margin: 0 0 6px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; letter-spacing: -.3px; }
.section-head p { color: var(--ink-dim); margin: 8px 0 0; max-width: 62ch; }

/* Retro divider line with center gem */
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--panel-line), transparent); margin: 8px 0 0; }

/* ------------------------------------------------------------------ Panels */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* Feature grid */
.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  padding: 20px; border-radius: var(--radius);
}
.feature .ic {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(255,140,42,.35), rgba(255,106,0,.08));
  border: 1px solid rgba(255,106,0,.35); color: var(--eyeGold);
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-dim); font-size: 14px; }

/* Feature spec (features.html) */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spec .feature { display: flex; gap: 16px; }
.spec .feature .ic { flex: 0 0 auto; }
.spec .feature p { font-size: 15px; }

/* ------------------------------------------------------------------- News */
.news-list { display: grid; gap: 14px; }
.news-item { padding: 18px 20px; border-radius: var(--radius); }
.news-item .date { font-family: var(--mono); font-size: 12px; color: var(--retroGreen); }
.news-item h3 { margin: 4px 0 6px; font-size: 18px; }
.news-item p { margin: 0; color: var(--ink-dim); }

/* --------------------------------------------------------------- Downloads */
.dl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.dl-card { padding: 26px; border-radius: var(--radius); }
.dl-card h3 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.dl-card .note { color: var(--ink-dim); font-size: 14px; margin: 0 0 18px; }
.dl-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim);
  border: 1px solid var(--panel-line); border-radius: 999px; padding: 3px 10px;
}
.req-list, .steps { margin: 0; padding-left: 18px; color: var(--ink-dim); }
.req-list li, .steps li { margin: 6px 0; }
.changelog h4 { font-family: var(--mono); color: var(--eyeGold); margin: 18px 0 6px; }
.changelog ul { margin: 0 0 8px; padding-left: 18px; color: var(--ink-dim); }

/* LCD readout box (retro accent) */
.lcd {
  font-family: var(--mono); color: var(--retroGreen);
  background: #04120a; border: 1px solid #0c3; border-radius: 8px;
  padding: 10px 14px; letter-spacing: 1px; text-shadow: 0 0 8px rgba(0,255,102,.5);
}

/* Mini spectrum bars (decorative) */
.spectrum { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spectrum i {
  width: 6px; background: linear-gradient(180deg, var(--retroGreen), #0a5);
  animation: eq 1.1s ease-in-out infinite; border-radius: 1px;
}
@keyframes eq { 0%,100%{height:20%} 50%{height:100%} }
@media (prefers-reduced-motion: reduce){ .spectrum i{ animation: none; } }

/* ------------------------------------------------------------- Comment board */
.comments-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; }
.form-card, .board-card { padding: 22px; border-radius: var(--radius); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; background: #0b0c11; border: 1px solid var(--panel-line); color: var(--ink);
  border-radius: 8px; padding: 10px 12px; font: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--retroOrange); box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; } /* honeypot */
.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-msg.ok { color: var(--retroGreen); }
.form-msg.err { color: #ff6b6b; }
.comment {
  padding: 14px 0; border-bottom: 1px dashed var(--panel-line);
}
.comment:last-child { border-bottom: 0; }
.comment .meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.comment .who { font-weight: 700; color: var(--llamaWhite); }
.comment .when { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.comment .msg { color: var(--ink-dim); white-space: pre-wrap; word-break: break-word; }
.board-empty { color: var(--ink-faint); font-style: italic; }

/* --------------------------------------------------------------- CTA strip */
.cta-strip {
  margin: 20px 0; padding: 30px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background:
    linear-gradient(180deg, rgba(255,106,0,.14), rgba(255,106,0,.03)),
    var(--panel);
  border: 1px solid rgba(255,106,0,.35);
}
.cta-strip h2 { margin: 0; font-size: 24px; }
.cta-strip p { margin: 4px 0 0; color: var(--ink-dim); }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  margin-top: 40px; border-top: 1px solid var(--panel-line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 40px 0 20px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); margin: 0 0 12px; }
.site-footer a { color: var(--ink-dim); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--eyeGold); }
.footer-brand p { color: var(--ink-faint); font-size: 14px; max-width: 44ch; }
.hit-counter {
  display: inline-flex; gap: 3px; font-family: var(--mono); background: #000;
  border: 1px solid var(--panel-line); border-radius: 6px; padding: 4px 6px; margin-top: 10px;
}
.hit-counter b {
  background: #04120a; color: var(--retroGreen); padding: 2px 5px; border-radius: 3px;
  text-shadow: 0 0 6px rgba(0,255,102,.6); font-weight: 700;
}
.footer-legal {
  border-top: 1px solid var(--panel-line); padding: 16px 0; color: var(--ink-faint); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-legal .quip { font-style: italic; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .spec, .dl-grid, .comments-wrap { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: #0b0c10; border-bottom: 1px solid var(--panel-line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--panel-line); }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
    background: rgba(255,255,255,.05); border: 1px solid var(--panel-line); color: var(--llamaWhite);
    font-size: 18px;
  }
}
@media (max-width: 560px) {
  .grid-features { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .brand .wordmark { display: none; }
}
