/* Section: Tokens & Base
   Mobile-first defaults with a blue/cyan cyberpunk palette */
:root {
  --bg: #0a1220;
  --bg-2: #0b1a2b;
  --text: #e8fbff;
  --muted: #a6cbdc;
  --accent: #00e6ff;
  --accent-2: #2bd4ff;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --ring: 3px solid #fff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  /* Layered background: gradient + subtle scanlines/noise via CSS */
  background:
    linear-gradient(135deg, rgba(0, 180, 255, 0.08), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 20% -10%, rgba(0, 230, 255, 0.15), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,255,255,0.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,255,255,0.04) 0 1px, transparent 1px 2px);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  min-height: 100%;
  background: transparent;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

/* Section: Base elements */
html, body, header, nav, main, article, aside, footer { display: block; }

/* Section: Layout primitives
   Centered, responsive container and grid helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1120px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: .75rem; box-shadow: var(--shadow); }

/* Section: Hero & typography */
header { padding: 1.25rem 0; text-align: center; }
header h1 { font-size: clamp(1.8rem, 4vw + 0.5rem, 2.6rem); margin: 0; letter-spacing: .2px; line-height: 1.15; color: var(--text); }
main { padding: 1rem 0; display: block; }

/* Section: Image frame styling
   aspect-ratio, object-fit, glow/border */
.image-frame {
  width: min(720px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  /* Subtle glow hint on the image */
  box-shadow: inset 0 0 12px rgba(0,255,255,0.15);
}

/* Section: Content blocks */
.content { padding: 0.75rem 0 0.25rem; color: var(--muted); }

/* Section: Links & interactive controls
   Focus visible for accessibility; high contrast on glass */
a, button, .btn, .cta {
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 214, 192, 0.75);
  background: rgba(0, 214, 192, 0.9);
  color: #041a1a;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 214, 192, 0.8);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Section: Glass panels (with fallback)
   Frosted glass panels for card-like sections */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: .75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.4);
  }
}

/* Section: Utility classes
   .container, .grid, .card, .tag as requested tokens */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0, 230, 255, 0.25);
  color: #eaffff;
  border: 1px solid rgba(0, 230, 255, 0.6);
}
.aside { /* reserved for potential side content */ }

/* Section: Footer content (product ads, sponsorships)
   Glassy blocks with clear hierarchy */
footer {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}
.product-ad, .sponsored-page {
  padding: .75rem;
}
.product-ad a, .sponsored-page a { display: block; text-align: center; }
.product-ad { background: rgba(2, 170, 255, 0.12); border: 1px solid rgba(66, 166, 255, 0.4); border-radius: 12px; text-decoration: none; color: var(--text); }

/* Section: Misc elements for completeness */
ul { padding-left: 1rem; margin: .25rem 0; }
li { margin: .25rem 0; }

/* Section: Print styles (basic readability) */
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; }
  .glass { background: #fff; border-color: #ccc; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}