/* Base & Tokens */
:root{
  --bg: #0a0f2a;
  --bg-2: #0a1b3a;
  --text: #eaf3ff;
  --muted: #a6b5d4;
  --accent: #ff4dab;
  --accent-2: #ff2d95;
  --card: rgba(255,255,255,.10);
  --card-border: rgba(255,255,255,.28);
  --surface: rgba(255,255,255,.10);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; color: var(--text); background: transparent; }

body{
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 20% 10%, rgba(65,105,225,.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,20,140,.25), transparent 40%),
    linear-gradient(135deg, rgba(9,15,50,.95) 0%, rgba(14,6,40,.95) 60%, rgba(6,0,12,.95) 100%);
  background-blend-mode: screen, screen, normal;
  color-scheme: dark;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Subtle scanline texture (pure CSS) */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  opacity: .55;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce){
  body::before{ display: none; }
}

/* Layout Utilities */
.container{ width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid{ display: grid; gap: 1rem; }
.card{ padding: .75rem; border-radius: 12px; background: var(--card); border:1px solid var(--card-border); box-shadow: var(--shadow); }
.tag{ display:inline-block; padding:.25rem .5rem; border-radius:999px; font-size:.75rem; color:#fff; background: rgba(255,77,168,.28); border:1px solid rgba(255,255,255,.35); }

/* Global Glass Panels (fallback-aware) */
header, main, footer, article{ 
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)){
  header, main, footer, article{
    background: rgba(255,255,255,.14);
  }
}
a, button, .btn, .cta{ cursor: pointer; text-decoration: none; display: inline-block; font: inherit; }

/* Typography & Hero */
header{ padding: 1rem 1rem; text-align: center; }
header h1{ font-size: clamp(1.6rem, 2.6vw + 1rem, 2.9rem); line-height: 1.15; margin: .25rem 0 0.5rem; letter-spacing:.2px; color: var(--text); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
nav{ display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top:.25rem; }
nav a{ color: #fff; padding:.4rem .75rem; border-radius: 8px; border:1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.25); }
nav a:hover, nav a:focus-visible{ text-decoration: underline; text-underline-offset: 3px; outline: none; }

/* Hero content (where .content would sit if present) */
.content{ color: var(--muted); }

/* Image framing */
.image-frame{ width: min(100%, 720px); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin: 0 auto; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.15); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Main content flow */
main{ padding: 1rem 0; }
article{ display: block; }

/* Links & CTAs */
a{ color: #eaf3ff; }
a:hover, a:focus{ text-decoration: underline; text-underline-offset: 3px; outline: none; }
a:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* Buttons variants */
.btn{ padding: .55rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.38); background: var(--accent); color: #fff; transition: transform .15s ease, background-color .2s ease; }
.btn.secondary{ background: transparent; color: var(--text); border-color: rgba(255,255,255,.38); }
.btn:hover{ transform: translateY(-1px); }
.btn:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Product ad blocks (footer) */
.product-ad, .sponsored-page{ padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); text-align: center; }
.product-ad a, .sponsored-page a{ display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(0,0,0,.25); }
.product-ad a:hover, .sponsored-page a:hover{ background: rgba(0,0,0,.35); }

/* Footer layout & content blocks */
footer{ padding: 1rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px){
  footer{ grid-template-columns: 1fr 1fr; }
}
footer p{ margin: .25rem 0 0; text-align: center; color: var(--muted); }

/* Lists (generic) */
ul{ margin: 0; padding-left: 1.25rem; color: var(--muted); }
li{ margin: .25rem 0; }

/* Utilities (expected token components) */
.grid.auto{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card{ display: block; }

/* Print-friendly (basic readability) */
@media print{
  body{ background: #fff; color: #000; }
  header, main, footer{ background: #fff; border: none; box-shadow: none; }
  a{ color: #000; text-decoration: underline; }
}
