/* Section: Base Tokens */
:root {
  --bg: #0a0a14;
  --bg-2: #0b1020;
  --text: #e9eaff;
  --muted: #a6b2d9;
  --accent: #7b5cff;
  --accent-2: #00f0ff;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.25);
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --focus: 2px solid rgba(0, 255, 255, 0.9);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg);
  /* Layered background: gradient + faint uv flare + scanlines (pure CSS) */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(123,92,255,.25) 0 20%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0,240,255,.25) 0 25%, transparent 40%),
    linear-gradient(135deg, rgba(10,6,18,.95) 0%, rgba(6,4,12,.97) 60%, rgba(4,3,8,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: screen, screen, normal, overlay;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

/* Section: Layout & typography (mobile-first) */
.header, header, main, article, footer, aside { /* glassy panels by default */ }
header, main, footer, aside, article {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, article {
    background: rgba(255,255,255,.18);
  }
}
.container { width: 100%; max-width: clamp(720px, 90vw, 1120px); margin: 0 auto; padding: 0 1rem; }

/* Section: Typography scales */
h1 { font-size: clamp(1.75rem, 2.2rem + 1vw, 3.5rem); line-height: 1.08; margin: .25rem 0 .5rem; letter-spacing: .2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 18px rgba(123,92,255,.25);
}
h2 { font-size: clamp(1.25rem, 1.1rem + 1vw, 2rem); margin: 0.75rem 0 0.5rem; }
h3 { font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem); margin: .75rem 0; }
p { font-size: clamp(0.95rem, 0.9rem + .4vw, 1.15rem); margin: .5rem 0; color: var(--text); }
.meta { color: var(--muted); font-size: clamp(0.9rem, 0.4vw + 0.9rem, 1.05rem); }

/* Section: Content wrapper */
.content { padding: 0.25rem 0 0; }

/* Section: Imagery frame (image-frame) */
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Generic cards / grid utilities */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* Section: SLG (glass panels) helpers for specific areas */
.product-ad, .sponsored-page { display: block; text-decoration: none; color: inherit; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Section: Links & buttons (interactive states) */
a, button, .btn, .cta {
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: var(--accent-2); }
button, .btn, .cta {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 0.65em 1.15em;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(123,92,255,.95), rgba(0,240,255,.95));
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .95; }
.btn.outline {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.55);
  color: var(--text);
}
.cta { padding: .75em 1.15em; }

/* Focus rings for accessibility (focus-visible) */
:focus-visible { outline: 2px solid rgba(0, 255, 255, 0.95); outline-offset: 2px; border-radius: 8px; }

/* Section: List styling */
ul { margin: .5rem 0; padding-left: 1.1rem; }
li { margin: .35rem 0; }

/* Section: Utilities (layout) */
.container--center { display: grid; place-items: center; }

/* Section: Misc elements in content */
blockquote { border-left: 3px solid rgba(123,92,255,.6); padding-left: .75rem; color: var(--muted); font-style: italic; margin: .75rem 0; }

/* Section: Print readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, footer, aside { background: transparent; border: none; box-shadow: none; }
  a, .btn, .cta { color: #000; }
}

/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
