:root {
  /* Theme tokens: charcoal base with neon pink accents */
  --bg: #0b0f14;
  --bg-2: #141821;
  --text: #e8f0ff;
  --muted: #a6aab8;
  --accent: #ff2d9a;       /* neon pink */
  --accent-2: #00ffd5;     /* electric cyan for accents */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --focus: 0 0 0 3px rgba(255, 45, 154, 0.8);
  --radius: 14px;
  --container-max: clamp(320px, 92vw, 1100px);
}

/* Section: Base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  background: 
    /* base color layer */
    #0b0f14;
  /* layered background: soft glows + gradient hints */
  background-image:
    radial-gradient(circle at 20% -10%, rgba(255, 0, 140, 0.16), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0, 255, 213, 0.12), transparent 40%);
  background-size: 60vmin 60vmin, 60vmin 60vmin;
  background-repeat: no-repeat;
  position: relative;
  min-height: 100%;
  /* subtle global scanlines (pure CSS) via overlay layer on a separate pseudo-element */
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* scanlines */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: rgba(14, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.5); }

/* Section: Typography scale (fluid) */
h1, h2, h3 { margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); line-height: 1.04; letter-spacing: .5px; }
p { margin: 0 0 0.75rem; color: var(--muted); }
strong { color: var(--text); }

/* Section: Elements styling targets */
a, button, .btn, .cta {
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(255,255,255,.95);
  text-decoration: underline;
}
a:hover, a:focus { text-decoration: underline; }

/* Section: Header + Nav */
header {
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .25rem;
}
nav {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
}
nav a {
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.18);
  color: var(--text);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { transform: translateY(-1px); background: rgba(0,0,0,.28); }

/* Section: Media (image-frame) */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: #0a0f14;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .5s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Section: Glass panels (content blocks) */
.content {
  background: rgba(15, 20, 32, 0.18);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}
@supports not (backdrop-filter: blur(8px)) {
  .content {
    background: rgba(15, 20, 32, 0.32);
  }
}

/* Section: Product ad blocks (footer) */
.product-ad, .sponsored-page {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
}
.product-ad a, .sponsored-page a { display: block; padding: .4rem; border-radius: 999px; }
.product-ad p, .sponsored-page p { margin: 0; }

/* Section: Buttons (solid + outline variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: linear-gradient(135deg, rgba(255,45,154,.95) 0%, rgba(255,0,180,.75) 60%);
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 0, 180, .5); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.65);
  color: var(--text);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
}
.cta { padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.25); color: #fff; }

/* Section: Lists */
ul { margin: 0; padding: 0; list-style: none; }
li { margin: 0; padding: 0; }

/* Section: Utility primitives */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: var(--text);
}

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

/* Section: Layout helpers for responsiveness */
main { padding: 1rem 0; }
footer { padding: 1rem 0; text-align: center; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .content, .product-ad { background: #f5f5f5; border: 1px solid #ddd; }
}
