:root{
  /* TOKENS: deep plum + sky blue palette */
  --bg: #4b003e;
  --bg-2: #2a0030;
  --text: #eaf6ff;
  --muted: #cbd6f0;
  --accent: #49d3ff;      /* sky blue */
  --accent-2: #7ab6ff;     /* lighter sky blue for accents */
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --focus: 0 0 0 3px rgba(88,214,255,.65);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: clamp(320px, 90vw, 1200px);
  --gap: 1rem;
}

/* GLOBAL */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  min-height: 100%;
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background:
    radial-gradient(circle at 15% 15%, rgba(88,214,255,.15), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(60,170,255,.12), transparent 28%),
    linear-gradient(135deg, #2a0038 0%, #1b0032 60%, #0a0012 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  padding: 0;
  margin: 0;
}

/* LAYOUT STRUCTURE */
header, nav, main, article, aside, section, footer { display: block; }

/* CONTAINER & UTILITIES */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid { display: grid; gap: var(--gap); }
.grid.auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
}
.content {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle glow */
  filter: saturate(1.05);
}
ul { margin: 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* GLASS PANEL TREATMENTS (fallback-friendly) */
.section-glass, .card, .content, .product-ad {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.section-glass { padding: 1rem; }

/* HERO / TYPOGRAPHY */
header {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
main { padding: 1rem 0 2rem; }

/* FOOTER / ADS */
footer { padding: 1rem; text-align: center; color: var(--muted); }
.product-ad { margin: .75rem 0; }
.product-ad a { display: block; padding: .75rem; border-radius: 10px; color: var(--text);
  background: linear-gradient(135deg, rgba(0,40,70,.6), rgba(0,0,0,.2));
  border: 1px solid rgba(100,180,255,.6);
  text-decoration: none;
}
.product-ad a:hover { text-decoration: underline; }

/* LINKS & BUTTONS (interactive states) */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
button, .btn, .cta {
  font-family: inherit;
  font-size: 1rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  color: #00121b;
}
.btn {
  display: inline-block;
  padding: .75em 1.25em;
  background: #7ad8ff;
  color: #04121b;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(88,214,255,.9);
}
.cta { display: inline-block; }

/* IMAGE STYLES (frameed content) */
.image-frame { /* already defined above; ensure mobile-friendly sizing */ }

/* NAV / SUPPLEMENTARY LAYOUTS (if present) */
nav { display: flex; justify-content: center; gap: .75rem; padding: .5rem 1rem; }

/* PRINT */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .section-glass { background: #fff; border: 1px solid #ccc; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
