/* Section: Base Tokens */
:root {
  --bg: #0b0014;
  --bg-2: #140028;
  --text: #e9e0f7;
  --muted: #b9b1c9;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --accent: #ff00c8;     /* fuchsia */
  --accent-2: #ffd400;    /* cyber yellow */
  --glow: 0 0 12px rgba(255, 0, 200, 0.6);
}

/* Section: Layout & Global */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans"; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 208, 0.25) 0 60px, transparent 60px),
    radial-gradient(circle at 75% 40%, rgba(255, 255, 0, 0.20) 0 80px, transparent 80px),
    linear-gradient(135deg, rgba(10,0,20,0.75), rgba(0,0,0,0.85)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Subtle scroll-friendly motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Typography Helpers */
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1rem; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* Section: Structural Elements */
header, main, article, footer, aside, nav { display: block; }

/* Section: Containers & Grids */
.container { width: 100%; max-width: clamp(320px, 82vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Glass Panels (with fallback) */
.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}
@supports not (backdrop-filter: blur(8px)) {
  .content { background: rgba(255,255,255,0.18); }
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(255, 0, 200, 0.25);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  line-height: 1;
}

/* Section: Imagery */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.15);
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Section: Header & Nav Styling */
header {
  text-align: center;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(6,0,12,0.82), rgba(6,0,12,0.60) 60%, rgba(6,0,12,0.0));
  border-bottom: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: saturate(1.2) blur(6px);
}
header h1 { font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: .4px; margin-bottom: .25rem; }
header .meta { font-size: .9rem; color: var(--muted); }

/* Section: Main Content & Typography Scaling */
main { padding: 1rem; display: grid; place-items: center; }
article { max-width: clamp(520px, 92vw, 820px); }

/* Section: Footer / Ad Blocks */
.product-ad, .sponsored-page { display: block; text-align: center; margin: .5rem 0; }
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: var(--glow);
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Section: Links & Buttons (General Utilities) */
button, .btn, .cta {
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  padding: .65rem 1.05rem;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn.secondary, .cta {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.45);
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
button:active, .btn:active, .cta:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Section: Print (basic readability) */
@media print {
  body { background: white; color: black; }
  header, nav, footer { display: none; }
  article { max-width: 100%; }
}
