/* TOKENS */
:root {
  --bg: #0a0a0e;
  --bg-2: #11131a;
  --text: #f9fbff;
  --muted: #cbd6e6;
  --accent: #6df0ff;
  --accent-2: #ffd6a5;
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.22);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.4);
  --focus: 2px solid #fff;
}

/* LAYERED BACKGROUND (gradient + subtle scanlines/noise) */
html, body { height: 100%; }
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 0.4vw + 12px, 18px);
  color: var(--text);
  background: radial-gradient( circle at 20% -10%, rgba(255,255,255,.08), transparent 40% ),
              linear-gradient(135deg, #0a0a0e 0%, #0b0b14 60%, #0a0a0e 100%);
}
body {
  margin: 0;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  position: relative;
  isolation: isolate;
  opacity: 0;
  transform: translateY(6px);
  animation: reveal .6s ease forwards;
}
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  /* soft glow patterns */
  background:
    radial-gradient(circle at 15% 12%, rgba(110,255,255,.08), transparent 40%),
    radial-gradient(circle at 70% 28%, rgba(255,255,255,.04), transparent 40%);
  background-blend-mode: screen;
  opacity: .85;
}
body::after {
  /* subtle scanlines */
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  opacity: .25;
  mix-blend-mode: overlay;
  z-index: -1;
}
@media (prefers-color-scheme: light) {
  html { background: #f7f7fb; color: #0d1020; }
  :root {
    --bg: #f7f7fb;
    --bg-2: #ffffff;
    --text: #0b1020;
    --muted: #4b5563;
    --accent: #0a58a2;
    --accent-2: #a25900;
    --card: rgba(255,255,255,.9);
    --card-strong: rgba(255,255,255,.98);
    --border: rgba(0,0,0,.15);
  }
  body::before { opacity: .6; }
  body::after { opacity: .25; }
}
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; opacity: 1; transform: none; }
}

/* GLOBAL LAYERS & UTILITIES */
* { box-sizing: border-box; }
.container {
  width: 100%;
  max-width: clamp(720px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--text);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}
ul { margin: .75rem 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* HEADER / HERO */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
header h1 {
  font-size: clamp(1.4rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
main { display: grid; place-items: center; padding: 1rem 0 2rem; }

/* IMAGE FRAME */
.image-frame {
  width: min(90%, 720px);
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: 0 6px 28px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}

/* GLASS PANELS (with fallback) */
.backdrop {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .backdrop { background: rgba(255,255,255,.18); }
}

/* FOOTER / CTAs / ADS */
footer {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  grid-template-columns: 1fr;
}
.product-ad a, .sponsored-page a, a.btn, .cta {
  color: var(--text);
  text-decoration: none;
}
.product-ad, .sponsored-page {
  display: block;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); text-decoration: underline; }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* LINKS / BUTTONS / ACCESSIBILITY */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .btn, .cta {
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.14);
  color: var(--text);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn--solid {
  background: linear-gradient(135deg, rgba(0,255,255,.95), rgba(0,200,255,.95));
  border: 1px solid rgba(255,255,255,.7);
  color: #001018;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
}
a.btn, button.btn { display: inline-block; }

/* CONTENT AREA / NAV / ASIDE (styling for completeness) */
nav { display: none; } /* optional hidden nav for single-page feel */
aside { display: block; }

/* TYPOGRAPHY / CONTENT PANEL */
.content {
  color: var(--text);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 60ch;
}
.content p { margin: 0.75rem 0; color: var(--muted); }

/* LAYOUT UTILITIES (responsive) */
@media (min-width: 640px) {
  footer { grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }
}
@media (prefers-color-scheme: light) {
  /* ensure legibility on light by adjusting text contrasts if needed */
  .card { border-color: rgba(0,0,0,.15); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* PRINT */
@media print {
  body { background: #fff; color: #000; }
  nav, aside { display: none; }
}
