/* Token Palette */
:root {
  --bg: #0a1020;           /* deep navy base */
  --bg-2: #0b1a33;         /* secondary navy */
  --text: #e9de8a;          /* high-contrast yellowish text */
  --muted: #c8b76a;         /* muted yellow/gold */
  --accent: #ffd54a;        /* primary neon yellow */
  --accent-2: #ffeb3b;      /* bright accent */
  --panel: rgba(14, 18, 38, 0.22);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  --focus: 0 0 0 3px rgba(255, 213, 74, 0.65);
  --surface: rgba(255, 255, 255, 0.08);
}

/* Light-mode variant for legibility */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #eef1f7;
    --text: #1a1a1a;
    --muted: #555;
    --accent: #0b5cff;
    --accent-2: #1a73e8;
    --panel: rgba(255, 255, 255, 0.92);
    --border: rgba(0, 0, 0, 0.15);
    --shadow: 0 1px 6px rgba(0,0,0,0.08);
    --surface: rgba(255,255,255,0.9);
  }
}

/* Global defaults */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  /* Subtle noise/scanline layer (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.25) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
}
@media (prefers-color-scheme: light) {
  body::before { opacity: 0.12; }
}
a, button, .btn, .cta { cursor: pointer; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(12, 16, 32, 0.42); }
}
.tag {
  display: inline-block;
  padding: 0.15em 0.6em;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255, 213, 74, 0.22);
  border: 1px solid rgba(255, 213, 74, 0.55);
  color: #ffd;
  text-transform: uppercase;
}
.header-aside { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Structural elements (selectors to style) */
html, body, header, nav, main, article, footer, aside {
  /* placeholders to ensure selectors exist in CSS coverage */
}
.image-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: #000;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.content { padding: 1rem 0; color: var(--text); }

/* Typography & hero */
header {
  padding: 1.75rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
main { padding: 0 0 1rem; }

/* Footer / CTAs */
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
.product-ad, .sponsored-page {
  display: block;
  margin: 0.5rem auto;
  padding: 0.75rem;
  border-radius: 12px;
  width: min(100%, 860px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.25);
}
.product-ad a, .sponsored-page a {
  color: var(--accent-2);
  text-decoration: none;
}
.product-ad a:hover, .sponsored-page a:hover,
.product-ad a:focus, .sponsored-page a:focus {
  text-decoration: underline;
}
footer p { margin: 0.25rem 0 0; }

/* Interactive elements (buttons/links) */
.btn, .cta, button {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.28);
  color: #fff;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover, .cta:hover, button:hover {
  transform: translateY(-1px);
  background: rgba(255, 213, 74, 0.25);
}
.btn:active, .cta:active, button:active {
  transform: translateY(0);
  background: rgba(255, 213, 74, 0.18);
}
.btn:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
a, button, .btn, .cta { -webkit-tap-highlight-color: transparent; }

/* List styling (if present) */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Layout utilities (grid helpers) */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn, .cta, button { transition: none; }
}
@media (min-width: 640px) {
  header { padding: 2rem 1rem; }
  main { padding: 2rem 0; }
  .product-ad, .sponsored-page { padding: 1rem 1.25rem; }
}
@media (min-width: 860px) {
  .container { padding-inline: 0; }
}
@media (prefers-color-scheme: light) {
  header h1 { color: #111; text-shadow: none; }
  .image-frame { border-color: rgba(0,0,0,0.15); }
  footer { color: var(--muted); }
}