/* Grumpy's Movies — storefront (1980s video store + CRT window) */
@import url("theme-crt.css");

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(232, 184, 109, 0.35), 0 0 14px rgba(196, 120, 58, 0.3);
}

.brand .brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}

.brand .brand-wordmark em {
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 13px;
}

.brand .brand-wordmark .domain {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: lowercase;
  margin-top: 2px;
}

nav.top .links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

nav.top .links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

nav.top .links a:hover { color: var(--accent-2); }

nav.top .links a.nav-donate {
  color: #1a100c;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  padding: 7px 14px;
  border-radius: 2px;
  font-weight: 700;
  border: 1px solid rgba(240, 230, 212, 0.35);
  box-shadow: 0 0 14px rgba(232, 184, 109, 0.25);
}

nav.top .links a.nav-donate:hover {
  color: #1a100c;
  filter: brightness(1.08);
}

nav.top .nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(196, 120, 58, 0.12);
  border: 1px solid var(--border);
  color: var(--accent-2);
  border-radius: 2px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.hero {
  padding: 0;
  max-width: none;
  margin: 0 0 48px;
  text-align: center;
}

.hero-bezel {
  position: relative;
  border: 3px solid #3a2a20;
  border-radius: 6px;
  background: #0a0706;
  box-shadow:
    inset 0 0 0 2px #1c1410,
    0 0 0 1px rgba(232, 184, 109, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.hero-bezel::before {
  content: "CH 03  ·  STOREFRONT  ·  OPEN";
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  background: rgba(10, 7, 6, 0.72);
  padding: 4px 8px;
  border: 1px solid var(--border);
  pointer-events: none;
}

.hero-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(232, 184, 109, 0.08), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero-art {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.05) saturate(0.95);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 22px 20px 28px;
  background: linear-gradient(180deg, rgba(16, 12, 10, 0.2), rgba(16, 12, 10, 0.92));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-ok, #7a9e5a);
  box-shadow: 0 0 0 4px rgba(122, 158, 90, 0.18), 0 0 10px #7a9e5a;
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 400;
  color: var(--text);
  text-shadow: 0 0 24px rgba(232, 184, 109, 0.25);
}

h1.hero-title .grad {
  color: var(--accent-2);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 42ch;
  margin: 0 auto;
  font-family: var(--font-mono);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  justify-content: center;
}

.btn {
  --b: var(--panel);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 2px;
  background: var(--b);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(232, 184, 109, 0.35); }
.btn:active { transform: translateY(1px); }
.btn .meta { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: none; }
.btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn.ghost { background: transparent; }

section { margin-top: 72px; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(232, 184, 109, 0.2);
}

h2 + .sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
  font-family: var(--font-mono);
  font-size: 14px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 184, 109, 0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 20px rgba(196, 120, 58, 0.12);
}

.card .head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: rgba(196, 120, 58, 0.12);
  border: 1px solid var(--border);
  color: var(--accent-2);
}

.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0; font-size: 18px; font-family: var(--font-display); letter-spacing: 0.03em; font-weight: 400; }
.card .desc { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .ver { color: var(--muted); font-size: 12px; }

.card .badge-no-ads {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(232, 184, 109, 0.12);
  border: 1px solid rgba(232, 184, 109, 0.35);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.card .btn { width: 100%; justify-content: center; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 26px;
  position: relative;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep));
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 184, 109, 0.38);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(196, 120, 58, 0.12);
}

.feature .icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(196, 120, 58, 0.14);
  color: var(--accent-2);
  margin-bottom: 12px;
}

.feature .icon svg { width: 20px; height: 20px; }
.feature h4 { margin: 0 0 6px; font-size: 16px; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.03em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.install {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.install .tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.install .tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}

.install .tab:hover { color: var(--text); }

.install .tab.active {
  color: #1a100c;
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  animation: channel-tune 0.45s ease-out 1;
}

.install .panel { display: none; }
.install .panel.active { display: block; }
.install ol { margin: 0; padding-left: 20px; color: var(--muted); }
.install ol li { margin: 6px 0; }

.install code {
  background: rgba(0,0,0,0.35);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-2);
}

details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}

details + details { margin-top: 0; }

details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s ease;
}

details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 880px) {
  .downloads { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  nav.top .links { display: none; }
  nav.top .nav-toggle { display: inline-flex; }
  nav.top .links.mobile-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .hero-art { max-height: 52vh; }
  .hero-bezel::before { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature:hover,
  .card:hover,
  .btn:hover {
    transform: none;
  }
  .install .tab.active {
    animation: none;
  }
}
