/* Section: Core tokens */
:root {
  --bg: #0b0f14;
  --bg-2: #0f141a;
  --text: #eafff2;
  --muted: #a6b3bd;
  --accent: #e8ff00;       /* cyber yellow */
  --accent-2: #00ff88;      /* iridescent green */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.32);
  --radius: 14px;
  --focus: 3px solid #5affb6;
}

/* Section: Base + layout primitives */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
  line-height: 1.5;
  background-color: var(--bg);
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + scanlines/noise overlay (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.80), rgba(0,0,0,.92)),
    linear-gradient(135deg, rgba(255, 235, 0, .08), rgba(0, 255, 136, .08)),
    radial-gradient( circle at 20% -10%, rgba(0,255,136,.08), transparent 25% );
  background-blend-mode: normal, overlay, overlay;
}

/* Subtle CSS noise/scanlines over the page (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(0,0,0,.0), rgba(0,0,0,.25) 60%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Utility container and responsive grid */
.container {
  max-width: clamp(320px, 90vw, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

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

/* Section: Structural elements styling (basic reset with theme) */
header, main, article, footer, aside {
  display: block;
  width: 100%;
}

header {
  padding: 1.75rem 1rem;
  text-align: center;
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
}

header .meta {
  margin: 0;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  color: var(--muted);
}

nav {
  margin-top: .75rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.22);
  transition: transform .2s ease;
  display: inline-block;
}
nav a:hover { transform: translateY(-1px); text-decoration: underline; color: var(--accent-2); }
nav a:focus-visible { outline: var(--focus); outline-offset: 2px; }

main {
  padding: 1rem 0 2rem;
}

article {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  /* glass panel with fallback */
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (prefers-reduced-motion: reduce) {
  article { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  background: #000;
  margin: 0 auto 1rem;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}
p { margin: 0 0 1rem; font-size: clamp(1rem, 0.75vw + 0.9rem, 1.125rem); color: var(--text); }
ol, ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Section: Headings within article for clear hierarchy */
h2 {
  margin: .75rem 0 .25rem;
  font-size: clamp(1.25rem, 2.6vw + .25rem, 1.75rem);
  color: var(--text);
}
blockquote {
  margin: .5rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  color: var(--text);
}

/* Glass panel variant for sections like product-ad and aside */
.product-ad {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin: .5rem 0;
  box-shadow: var(--shadow);
}
.product-ad a { color: var(--text); text-decoration: none; display: block; }
.product-ad a:hover { text-decoration: underline; color: var(--accent-2); }

/* Section: Product/ad and sponsored areas styling (footer) */
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
footer p { color: var(--muted); margin: .25rem 0; }

/* Utility class: .content for potential inner wrappers */
.content { padding: .75rem; color: var(--text); }

/* Utility classes requested */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(232,255,0,.15);
  color: var(--text);
  border: 1px solid rgba(232,255,0,.4);
  margin-right: .25rem;
}

/* Typography helpers for links and CTAs */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }
.btn, .cta {
  display: inline-block;
  padding: .72rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn { background: var(--accent); color: #0a0a0a; }
.btn:hover { background: #d6ff00; transform: translateY(-1px); }
.btn:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* Outline variant for CTAs */
.btn--outline, .cta--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.45);
}
.btn--outline:hover, .cta--outline:hover { color: var(--accent-2); border-color: rgba(0,255,136,.8); }

/* Image framing inside content if used elsewhere */
.image-frame--fallback { width: 100%; height: auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }

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

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, nav, footer { display: none; }
  article { background: #fff; border: none; box-shadow: none; padding: 0; }
}
