/* Section: Baseline & Theme Tokens */
:root {
  --bg: #0a0f1a;
  --bg-2: #050713;
  --text: #eaf6ff;
  --muted: #a7d0ff;
  --accent: #39ff14;      /* Glowstick green */
  --accent-2: #00a6ff;     /* Electric blue */
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.25);
  --glass: rgba(10,14,28,0.40);
  --glass-backup: rgba(10,12,28,0.85);
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 12px;
  --gap: 1rem;
}

/* Section: Global Reset & Utilities */
* { 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"; }
body {
  margin: 0;
  color: var(--text);
  background: 
    /* Subtle glow planes */
    radial-gradient(circle at 15% 20%, rgba(0, 170, 255, 0.22), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(57, 255, 20, 0.18), transparent 40%),
    /* Core gradient backdrop */
    linear-gradient(135deg, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0.75) 50%, rgba(2,6,23,0.95) 100%);
  /* Layered scanlines to evoke a "techno" feel */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0, 170, 255, 0.22), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(57, 255, 20, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0.75) 50%, rgba(2,6,23,0.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, screen, normal, overlay;
  min-height: 100vh;
  padding: 0;
  font-size: clamp(14px, 0.8vw + 12px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* Section: Layout Primitives */
header, main, aside, footer { padding: 1rem; border-radius: var(--radius); }

/* Centered container with responsive width */
.container { width: 100%; max-width: clamp(320px, 90vw, 1120px); margin-inline: auto; padding-inline: 0; }

/* Grid utility */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

/* Card utility */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Tag utility */
.tag { display: inline-block; padding: .25em .6em; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #eafffb; }

/* Section: Glassy surfaces (fallback-friendly) */
header, main, footer, aside { background: rgba(10,12,28,0.40); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Fallback for no backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside { background: rgba(10,12,28,0.85); }
}

/* Section: Core typography blocks */
h1, h2, h3 { line-height: 1.25; margin: .25em 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 3.5vw + 0.5rem, 3rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.4rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw + 0.4rem, 1.6rem); }

/* Section: content blocks */
.content { padding-block: 1rem; color: var(--text); }

/* Image frame with aspect ratio, subtle glow */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.4), 0 0 18px rgba(0, 175, 255, 0.25);
  background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.05));
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Links & interactive controls */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Buttons (solid + outline) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.3);
  background: var(--accent-2); color: #001018; cursor: pointer; font-weight: 600;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #1191ff; }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: rgba(57,255,20,.08); border-color: var(--accent); }

/* Form controls (basic) */
input, textarea, select {
  width: 100%; padding: .6rem .8rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: var(--text); font: inherit;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Layout primitives for sections */
header { text-align: center; padding: 2rem 1rem; margin: 0 auto; max-width: 960px; }
header h1 { margin-bottom: .25rem; }
header .meta { color: var(--muted); font-size: .95rem; }

/* Main content grid (if multiple panels) */
main { display: block; padding: 1rem; }

article { padding: 1rem; }

/* Footer panels as compact glass cards */
footer { display: grid; gap: 1rem; padding: 1rem; justify-items: center; }
footer .product-ad, footer .sponsored-page { min-width: 240px; text-align: center; padding: .75rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); text-decoration: none; color: var(--text);
}
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; color: #000; }
}
  
/* Section: Responsive helpers */
@media (min-width: 640px) {
  .container { padding-inline: 0; }
}
  
/* Motion preferences: gentle, GPU-friendly */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}