/* Tokens */
:root {
  --bg: #0a001a;
  --bg-2: #230028;
  --surface: rgba(255, 20, 120, 0.18);
  --surface-2: rgba(255, 20, 120, 0.28);
  --text: #f9f0ff;
  --muted: #d6bde0;
  --accent: #ff3a9f;
  --accent-2: #d1007a;
  --border: rgba(255, 255, 255, 0.32);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
}

/* Section: Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + subtle scanlines/noise (pure CSS) */
  background: linear-gradient(135deg, rgba(255,0,120,.14), rgba(102,0,102,.18) 60%, rgba(10,0,20,.25) 100%), 
              linear-gradient(#0a001a 0%, #26002a 100%);
  position: relative;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle scanlines + glassy haze */
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 20% -10%, rgba(255,0,120,.10), transparent 40%);
  mix-blend-mode: overlay;
  opacity: 0.85;
  z-index: 0;
}
*, :focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Section: Layout helpers */
.header, .content, .container, .grid, .card, .tag { z-index: 1; }
.container {
  width: min(100%, clamp(320px, 92vw, 1120px));
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Section: Typography (responsive) */
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem); line-height: 1.04; letter-spacing: .2px; }
p { margin: 0 0 0.75rem; color: var(--muted); }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* Section: Core layout primitives (header, main, footer) */
header, main, footer, aside, nav { display: block; }
header {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}
header h1 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem); margin: 0; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
main { padding: 0; }
article { display: block; }
footer { padding: 1.25rem 0 2rem; text-align: center; color: var(--muted); }

/* Section: Glass panels (with fallback) */
.glass {
  background: rgba(255, 20, 120, 0.18);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop {
  background: rgba(255,20,120,0.24);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  display: block;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@supports not (backdrop-filter: blur(12px)) {
  .image-frame { background: rgba(255,255,255,.22); }
  .image-frame img { filter: saturate(1.05); }
}

/* Section: Content & utilities */
.content {
  padding: 1rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.btn, a.btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  background: rgba(255, 0, 120, 0.6);
}
.btn:hover, a.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 0, 120, 0.8);
  border-color: rgba(255,255,255,.65);
}
.btn--outline, .cta--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline:hover, .cta--outline:hover {
  background: rgba(255,255,255,.08);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
a, button, .btn, .cta { text-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* Section: Links & navigation expectations */
nav { display: none; } /* placeholder, page has no nav in HTML; kept for completeness */
a { color: #fff; }

/* Section: Cards & grids (utility classes) */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-sm);
  padding: .9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.container > .card { padding: 1rem; }

/* Section: Product ad blocks (footer area) */
.product-ad, .sponsored-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  margin: .25rem;
  border-radius: 12px;
  background: rgba(255, 20, 120, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
}
.product-ad p, .sponsored-page p {
  margin: 0;
  padding: 0;
  font-size: .92rem;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-2px); }

/* Section: Print tweaks (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a, a:visited { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
