/* Base tokens */
:root {
  --bg: #0b0a14;
  --bg-2: #14101f;
  --text: #e9e0ff;
  --muted: #b5a7c5;
  --accent: #7c5cff;     /* violet */
  --accent-2: #d4af37;   /* gold */
  --panel: rgba(18, 12, 28, 0.28);
  --panel-2: rgba(18, 12, 28, 0.45);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(124, 92, 255, 0.6);
  --card-radius: 14px;
  --gap: 1rem;
}

/* Section: Global reset & layout foundations */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 12% 0%, rgba(199, 142, 255, .25), transparent 40%),
    linear-gradient(135deg, #0b0a15 0%, #1a0e2a 60%, #0b0a15 100%);
  background-blend-mode: overlay, normal;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background-attachment: fixed;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle scanline / noise vibe (pure CSS) */
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .25;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4f8;
    --bg-2: #ffffff;
    --text: #1a1a1a;
    --muted: #555;
    --panel: rgba(255, 255, 255, 0.75);
    --panel-2: rgba(255, 255, 255, 0.9);
    --border: rgba(0,0,0,.15);
  }
  body {
    background: linear-gradient(135deg, #f6f4f8 0%, #ffffff 60%, #f6f4f8 100%);
  }
  body::before { opacity: .28; }
}

/* Section: Layout helpers & utilities */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding-block: 0.75rem;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.content { padding: 1rem; }

/* Section: Header / Hero styling */
header {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
  font-weight: 700;
}
nav { display: none; }

/* Section: Media / image frame */
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #0b0b12;
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
main { display: grid; place-items: center; padding: 1rem 0 2rem; }

/* Section: Links / CTA styling */
a, button, .btn, .cta {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
  outline: none;
}
a:hover { text-decoration: underline; }
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,.7);
  background: rgba(124,92,255,.28);
  color: #fff;
  font-weight: 600;
}
.btn:hover, .cta:hover {
  background: rgba(124,92,255,.5);
  transform: translateY(-1px);
}
.btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(124,92,255,.85);
  color: var(--text);
}
.btn--solid {
  background: var(--accent);
  border: 1px solid rgba(0,0,0,.25);
  color: white;
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(124,92,255,.28);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

/* Section: Footer / product ad blocks */
footer {
  padding: 2rem 1rem 3rem;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.product-ad, .sponsored-page {
  display: inline-block;
  width: min(90vw, 520px);
  padding: 1rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(10,6,18,.28);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }
footer p { color: var(--muted); font-size: .875rem; text-align: center; }

/* Section: Generic primitives & accessibility helpers */
ul, li { list-style: none; padding: 0; margin: 0; }
li { margin-bottom: .25rem; }

/* Section: Navigation helpers (if added later) */
@media (min-width: 720px) {
  .container { padding-inline: 0; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Section: Typography fine-tuning (fluid typography) */
h1, h2, h3, h4 {
  line-height: 1.15;
}
p { margin: 0 0 0.75rem; }

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

/* Section: Reduced motion safeguard */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}