:root {
  /* Palette: royal blue + bright turquoise with accessible contrasts */
  --bg: #0b1020;
  --bg-2: #091022;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: #e9f2ff;
  --muted: #a8b6d6;
  --accent: #1ee6d9;       /* bright turquoise */
  --accent-2: #00a6ff;      /* royal-ish cyan */
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 26px rgba(0,0,0,.25);
  --ring: 2px solid rgba(30, 230, 217, 0.75);
  --radius: 14px;
}

/* Base & Utilities */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark light; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(65,105,225,.25) 0%, rgba(3,8,30,.0) 50%), linear-gradient(#0b1020 0%, #0b1020 100%);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Layered background: subtle noise/scanlines (pure CSS) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 20% 15%, rgba(0,255,200,.08), transparent 40px),
    radial-gradient(circle at 80% 70%, rgba(0,120,255,.05), transparent 40px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
html::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.05), transparent 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
body { position: relative; z-index: 0; }

/* Layout helpers (centered, responsive) */
.container {
  width: 100%;
  max-width: clamp(680px, 78vw, 1140px);
  margin-inline: auto;
  padding: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography scale (fluid) */
h1 { font-size: clamp(2rem, 0.9rem + 4vw, 3.5rem); line-height: 1.06; margin: .25rem 0 .75rem; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 0.8vw + 1.1rem, 2rem); margin: .75rem 0 .5rem; color: var(--text); }
h3 { font-size: clamp(1rem, 0.6vw + 0.98rem, 1.25rem); margin: .5rem 0; }
p, li { font-size: clamp(0.95rem, 0.4vw + 0.95rem, 1.1rem); color: var(--text); }
ul, ol { padding-left: 1.25rem; }

/* Core sections (glass panels with fallback) */
header, main, article, section, footer, aside {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: .75rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header { text-align: center; padding: 1.25rem 1rem; }
nav { display: flex; justify-content: center; gap: .75rem; padding-top: .25rem; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Content region styling */
.content { padding: 0; }

/* Product ad / promo blocks (glass panels as required) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
}
.product-ad a, .sponsored-page a { color: #eaffff; text-decoration: none; display: block; }
.product-ad a:hover { text-decoration: underline; }

/* Link and button treatments (focus states + contrast) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  padding: .65em 1em;
  background: rgba(0,0,0,.0);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(100, 220, 255, 0.95); outline-offset: 2px; }

/* Primary button variation (solid) and secondary/outline variant */
.btn {
  background: linear-gradient(135deg, rgba(0, 214, 255, 0.95), rgba(30, 214, 230, 0.95));
  border: 1px solid rgba(255,255,255,.45);
  color: #041018;
  padding: .75em 1.1em;
}
.btn.primary { background: linear-gradient(135deg, rgba(0, 214, 255, 0.95), rgba(30, 214, 230, 0.95)); color: #041018; }
.btn.outline, .cta.outline, a.btn.outline {
  background: transparent;
  border: 1px solid rgba(30,214,240,.9);
  color: var(--accent-2);
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(0,214,255,.98), rgba(30,214,230,.98)); }
.btn:active { transform: translateY(0); }

/* Utility helpers */
.tag {
  display: inline-block;
  padding: .25em .5em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(30, 214, 230, .25);
  color: var(--text);
  border: 1px solid rgba(30,214,230,.6);
}
ul, li { margin: 0; padding: 0; list-style: none; }
li { margin: .5em 0; }
blockquote {
  margin: 0;
  padding: .75em 1rem;
  border-left: 4px solid rgba(30,214,230,.8);
  background: rgba(0,0,0,.08);
  border-radius: 6px;
}
blockquote p { margin: 0; }

/* Image rules (when used) */
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Print styles for readability (basic) */
@media print {
  html, body { background: #fff; color: #000; }
  header, main, article, section, footer { background: #fff; border: none; border-radius: 0; padding: 0; }
  a { text-decoration: underline; }
}

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