/* Tokens */
:root{
  --bg: #05060a;
  --bg-2: #0b1020;
  --text: #eaffff;
  --muted: #a9b6d6;
  --accent: #eaff00;      /* cyber yellow */
  --accent-2: #2cff66;    /* iridescent green */
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.38);
  --radius: 14px;
  --focus: 3px solid var(--accent-2);
}

/* Base & Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  position: relative;
  /* Layered background: gradient + checkerboard + subtle scanlines (pure CSS) */
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #050509;
  /* Gradient base + cyber yellow checkerboard overlay */
  background-image:
    linear-gradient(45deg, rgba(255,255,0,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,0,.25) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,0,.25) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,0,.25) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  mix-blend-mode: overlay;
  opacity: 0.6;
  filter: saturate(0.95);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* subtle scanlines */
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,.04) 0 1px,
    transparent 1px 2px);
  opacity: .25;
  mix-blend-mode: overlay;
}
.container { /* max-width clamp, mobile-first center */
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Structure selectors (required by page) */
header, nav, main, article, aside, footer { padding: 0.75rem 0; }
header { text-align: center; padding: 1.5rem 1rem; }
header h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 3rem); line-height: 1.15; margin: .25rem 0; color: var(--text); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 1.4vw, 1rem); margin-top: .25rem; }
nav a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
main { padding: 1rem; }
aside { display: block; padding: .5rem; }

/* Media blocks */
.image-frame, .featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.35); background: #000; }
.image-frame { aspect-ratio: 16/9; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels (frosted glass) */
.article-glass, article, .card, .product-ad { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
article { margin: .75rem 0; color: var(--text); }

/* Content helpers */
.content { color: var(--text); }
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* CTA & links */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button, .btn, .cta { font-family: inherit; font-weight: 700; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); padding: .65rem 1rem; cursor: pointer; background: rgba(255,255,255,.92); color: #041b0f; transition: transform .15s ease, box-shadow .2s ease; display: inline-block; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent) 0%, #ffd400 60%); color: #0a0a0a; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Utility helpers (tags) */
.tag { display: inline-block; padding: .25rem .5rem; font-size: .75rem; border-radius: .5rem; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* Footer */
footer { padding: 1rem; text-align: center; }

/* Print & accessibility */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; color: black; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}