/* Section: Base tokens */
:root {
  --bg: #0a0f14;
  --bg-2: rgba(0, 255, 230, 0.08);
  --text: #e6fffe;
  --muted: #9bdad6;
  --accent: #00e6d2;
  --accent-2: #ff2a2a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --surface: rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.4);
  --radius: 12px;
  --focus: 2px solid var(--accent-2);
}

/* Section: Light mode tweaks */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --bg-2: rgba(0, 100, 100, 0.08);
    --text: #0b1115;
    --muted: #495159;
    --accent: #0a8f8f;
    --accent-2: #b00020;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.15);
    --surface: rgba(0, 0, 0, 0.08);
    --shadow: 0 6px 18px rgba(0,0,0,.08);
  }
}

/* Section: Base layout + layered background (gradient + scanlines) */
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.6)),
    linear-gradient(to bottom right, rgba(0, 255, 230, 0.12), rgba(255,0,0,0.12)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

/* Section: Layout primitives */
.container { max-width: clamp(320px, 90vw, 1100px); width: 100%; margin-inline: auto; padding: 0 1rem; }

/* Section: Element selectors (targeted by HTML) */
html, body, header, nav, main, article, footer, aside { box-sizing: border-box; }

/* Section: Sectioning elements styling */
header { text-align: center; padding: 1.75rem 0 1rem; }
header h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.8rem); line-height: 1.15; margin: 0; letter-spacing: .4px; }

/* Section: Main content area */
main { padding: 0; }
article { padding: 0; display: block; }

/* Section: Image frame styling */
.image-frame { width: 100%; max-width: 860px; margin: 0 auto; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.2);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.image-frame img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

/* Section: Glass panels (fallback friendly) */
.product-ad, .sponsored-page {
  display: block;
  margin: .75rem auto;
  max-width: 860px;
  border-radius: var(--radius);
  text-align: center;
  padding: .75rem;
  background: rgba(8, 15, 22, 0.40);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.product-ad a, .sponsored-page a { display: inline-flex; align-items: center; justify-content: center; width: 100%; color: #fff; text-decoration: none; padding: .75rem; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; font-size: 1rem; }

/* Section: Link & button styles */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Button-like utility classes */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.2rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  background: rgba(0, 230, 210, 0.95); color: #041414; text-decoration: none; font-weight: 600;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(0, 230, 210, 1); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Section: Card & tag utilities */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { padding: .9rem; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.tag { display: inline-block; padding: .15rem .5rem; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25); color: #eaffff; }

/* Section: List resets */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Section: Glassy content container (optional wrapper) */
.content { padding: 0; }

/* Section: Footer */
footer { padding: 1.25rem; text-align: center; color: var(--muted); }

/* Section: High-quality motion control */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn, .cta { transition: none; }
}

/* Section: Responsive tweaks */
@media (max-width: 640px) {
  header { padding-block: 1.5rem; }
  .image-frame { border-radius: 10px; }
}
 
/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; -webkit-print-color-adjust: exact; }
  .image-frame, .product-ad, .sponsored-page { box-shadow: none; border: none; background: transparent; }
  a { color: #000; text-decoration: underline; }
}