/* Section: Tokens */
:root{
  --bg: #041e1a;
  --bg-2: #062c2c;
  --text: #eaffff;
  --muted: #b7efe4;
  --accent: #1ee8a7;
  --accent-2: #2ff0c0;
  --card: rgba(255,255,255,0.08);
  --card-2: rgba(255,255,255,0.14);
  --border: rgba(0,255,230,0.42);
  --shadow: 0 8px 22px rgba(0,0,0,0.25);
  --ring: rgba(0,255,208,0.95);
}

/* Section: Base */
html, body { height: 100%; }
html { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #041b16 0%, #062b2b 60%, #041b16 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  position: relative;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Subtle iridescent scanlines / noise-like texture */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.0) 0 0),
    repeating-linear-gradient(to bottom,
      rgba(0, 255, 200, 0.045) 0px, rgba(0, 255, 200, 0.045) 1px,
      transparent 1px, transparent 2px);
  mix-blend-mode: overlay;
  z-index: -1;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,230,0.55);
  color: var(--text);
  background: rgba(0,255,230,0.15);
}

/* Section: Elements styling */
html, body, header, nav, main, article, footer, aside {
  background-clip: padding-box;
}

/* Section: Glass panels (fallback included) */
header, main, footer, aside, article {
  background: rgba(12, 28, 28, 0.22);
  border: 1px solid rgba(0, 255, 230, 0.40);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(8px)) and not (-webkit-backdrop-filter: blur(8px)) {
  header, main, footer, aside, article {
    background: rgba(6, 20, 20, 0.75);
    border-color: rgba(0, 255, 230, 0.65);
  }
}

/* Section: Header / Hero typography */
header h1 {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem);
  line-height: 1.04;
  margin: 0 0 0.25rem;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  font-size: clamp(0.8rem, 0.6vw + 0.8rem, 1rem);
  color: var(--muted);
  margin: 0 0 0.5rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0,255,230,0.6);
}
nav a:hover { background: rgba(0,255,230,0.12); text-decoration: underline; text-underline-offset: 2px; }

/* Section: Image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 230, 0.40);
  box-shadow: 0 6px 20px rgba(0, 255, 230, 0.35);
  background: #0a0f0f;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.02);
}
.featured-image { margin: 0 0 1rem; }

/* Section: Content & typography */
.content { padding: 0.25rem 0; color: var(--text); }
.content p { margin: .75rem 0; }
.content h2, .content h3 { margin: .75rem 0; }

/* Section: Lists */
ul { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }

/* Section: Links & buttons */
a, button, .btn, .cta {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(0,255,230,0.65);
  padding: 0.55em 1em;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  background: rgba(0,255,230,0.15);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
button:active, .btn:active, .cta:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

/* Section: Utilities / responsive helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Footer / brand cards */
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: 0.75rem;
}
.product-ad p, .sponsored-page p { margin: 0; }

/* Section: Accessibility / motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Print */
@media print {
  body { background: white; color: black; }
  header, main, footer, aside, article { background: transparent; border: 0; box-shadow: none; }
}

/* Section: Structural selectors (explicit targets) */
html, body, header, nav, main, article, footer, aside { /* structural reset scope kept lean */ }
.image-frame, .image-frame img { }

/* End of stylesheet */