/* Base tokens */
:root {
  --bg: #050708;
  --bg-2: #0a0f12;
  --surface: rgba(8, 26, 20, 0.60);
  --glass: rgba(8, 180, 90, 0.16);
  --text: #eafff5;
  --muted: #9ef2c0;
  --accent: #ff2bd4;
  --accent-2: #2fff8a;
  --shadow: 0 8px 22px rgba(0,0,0,0.4);
  --ring: 2px solid var(--accent);
}

/* Reset & basics */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
  background: 
    linear-gradient(135deg, #041018 0%, #041018 60%, #041018 100%),
    linear-gradient(to bottom, rgba(0,255,122,0.08), rgba(0,0,0,0));
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
* { -webkit-text-size-adjust: 100%; }

 /* Layered background: subtle scanlines + noise (pure CSS) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.25;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 2px 2px;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.08;
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(6, 22, 18, 0.6);
  border: 1px solid rgba(0, 255, 180, 0.35);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(6, 22, 18, 0.75); }
}

header, main, article, aside, footer {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(3, 8, 12, 0.34);
  border: 1px solid rgba(0, 255, 180, 0.28);
  margin: 0.75rem 0;
}
header { text-align: center; }
footer { padding-top: 0.75rem; }

/* Typography & hero */
header h1 {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 4rem);
  margin: 0.25rem 0;
  color: var(--text);
  text-shadow: 0 0 8px rgba(255,0,180,0.6);
}
header .meta {
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  color: var(--muted);
}
h2, h3 { color: var(--text); margin: 0.5rem 0 0.25rem; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.8rem); }

/* Images */
.image-frame, .featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Content wrapper & lists */
.content { padding: 0; }
ul { padding-left: 1.25rem; margin: 0.5rem 0; }
li { margin: 0.25rem 0; }

/* Links & buttons (interactive) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--ring);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Button variants */
.btn {
  display: inline-block;
  padding: 0.75em 1.25em;
  border-radius: 999px;
  border: 1px solid rgba(255,0,180,0.65);
  background: linear-gradient(135deg, rgba(255,0,180,0.95), rgba(0,255,122,0.9));
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,0,180,0.75);
  color: var(--text);
}
.btn--outline:hover {
  background: rgba(255,0,180,0.25);
}
.cta {
  display: inline-block;
  padding: 0.75em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(0,255,150,0.6);
  background: linear-gradient(135deg, rgba(0,255,150,0.9), rgba(0,170,255,0.8));
  color: #041014;
}
.cta:hover { filter: brightness(1.05); }

/* Utility visuals for content sections that mimic HUD panels */
.glass { background: rgba(8, 28, 22, 0.38); border: 1px solid rgba(0,255,180,0.32); border-radius: 12px; padding: 0.75rem; }

/* Layout helpers */
.main { padding: 0; margin: 0; }
.product-ad { padding: 0.75rem; border-radius: 12px; background: rgba(5,15,12,0.5); border: 1px solid rgba(0,255,180,0.4); text-align: center; }
.product-ad a { display: block; padding: 0.5rem; color: var(--text); text-decoration: none; }
.product-ad a:hover { text-decoration: underline; }

/* Print readability */
@media print {
  body { background: #fff; color: #000; }
  a, button { text-decoration: underline; }
  header, main, footer { background: transparent; border: 0; box-shadow: none; }
}

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

/* Nav/typography fallbacks (no explicit nav in markup, but ready) */
nav { display: block; }

/* Section wrappers for semantic clarity (no extra HTML required) */
main { display: block; }
article { display: block; }

/* Focus visibility baseline for keyboard users on all interactive controls */
:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }