/* Section: Base Tokens */
:root {
  --bg: #06131e;
  --bg-2: #041a2a;
  --surface: rgba(8, 20, 40, 0.22);
  --glass: rgba(10, 26, 52, 0.22);
  --glass-border: rgba(120, 240, 255, 0.25);
  --text: #e6fbff;
  --muted: #9bd6e8;
  --accent: #00e6ff;
  --accent-2: #1bd7ff;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --ring: 2px solid rgba(0, 230, 255, 0.75);
}

/* Section: Base Reboots & Layered Background */
html, body { height: 100%; }
html, body { box-sizing: border-box; }
* { box-sizing: inherit; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(135deg, #051428 0%, #041a2a 40%, #041a2a 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 210, 255, 0.12), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(0, 255, 230, 0.08), transparent 40%);
  background-blend-mode: screen;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Subtle scanlines overlay (pure CSS) */
  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, 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
}

/* Section: Layout */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  text-align: center;
  padding: 2rem 1rem 0.75rem;
}
header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.8rem, 2vw + 1rem, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
}
nav {
  margin-top: 0.5rem;
}
nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0, 230, 255, 0.14);
  border: 1px solid rgba(0, 230, 255, 0.38);
  transition: transform .2s ease;
}
nav a:hover { transform: translateY(-1px); }

main { padding: 1rem; }
.container { width: min(92vw, 1100px); margin: 0 auto; padding: 0 1rem; }

/* Section: Content & Typographic System */
article { max-width: 800px; margin: 0 auto; padding: 0.25rem 0 1rem; }
.featured-image { border-radius: 14px; overflow: hidden; border: 1px solid rgba(120, 240, 255, 0.35); box-shadow: var(--shadow); margin: 1rem 0; }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }
h2 { font-size: clamp(1.4rem, 1.2vw + 1.6rem, 2.4rem); margin: 0.75rem 0 0.5rem; color: var(--text); }
p { color: #cce5f2; margin: 0.5rem 0 1rem; }
blockquote {
  margin: 1rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #eaffff;
  background: rgba(0,0,0,.14);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; color: #d9f0fb; }
li { margin: .25rem 0; }

/* Section: Media Framing */
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(128, 255, 255, 0.38);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Section: Content Panel (glass) */
.content { padding: 1rem; }

/* Section: Cards, Grids, Tags, Utilities */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: rgba(8, 18, 38, 0.22);
  border: 1px solid rgba(100, 220, 255, 0.28);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-2px); }
.tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(0, 230, 255, 0.15);
  color: #eaffff;
  border: 1px solid rgba(0, 230, 255, 0.38);
}

/* Section: Interactive Elements (buttons/links) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}
a:hover, button:hover, .btn:hover, .cta:hover { text-decoration: underline; color: #eaffff; }

a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.product-ad {
  margin: 1rem 0;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(14, 26, 52, 0.22);
  border: 1px solid rgba(110, 230, 255, 0.28);
  text-align: center;
}
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: .75rem; border-radius: 8px; background: rgba(0, 200, 255, 0.15); border: 1px solid rgba(0, 200, 255, 0.38); }
.product-ad a:hover { background: rgba(0, 200, 255, 0.25); }

.sponsored-page {
  margin: .5rem 0 1rem;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(12, 28, 52, 0.22);
  border: 1px solid rgba(80, 210, 255, 0.25);
  text-align: center;
}

footer { padding: 1rem; text-align: center; color: #b8d6e6; }

/* Section: Utilities & Print */
ul, li { list-style: disc inside; }

/* Section: Responsive Helpers */
.container, .grid, .card, .tag { /* no-op, included for token consistency if used by page */ }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (min-width: 700px) {
  header { padding: 2rem 0 1rem; }
  main { padding: 2rem; }
}
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(8, 20, 40, 0.60); }
  .image-frame { border-color: rgba(128, 255, 255, 0.4); }
}