/* Base / Theme Tokens */
:root {
  --bg: #0a0f1a;
  --bg-2: #0b1620;
  --text: #eaf6ff;
  --muted: #a8b6d8;
  --accent: #00e5ff;        /* Electric blue light beam */
  --accent-2: #f6a6c9;       /* Powder rose */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 2px solid rgba(0, 229, 255, 0.9);
  --focus-outline: 3px solid rgba(0, 229, 255, 0.9);
}

/* Helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
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.55;
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(0, 120, 255, 0.20), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 15% 10%, rgba(0, 200, 255, 0.15), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(245, 100, 170, 0.15), transparent 25%),
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0));
  background-blend-mode: screen;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle scanline / noise */
  background-image: 
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, rgba(0,0,0,0) 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.85;
  z-index: 0;
}
main, header, footer, aside { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Layout helpers (utility classes) */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card--solid {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(0,0,0,0.25);
}
.no-backdrop { background: rgba(255,255,255,0.18); }

/* Glass panel fallback for environments without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) and not (-webkit-backdrop-filter: blur(12px)) {
  .card, .product-ad, header {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: none;
  }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  background: #000;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}
.content { color: var(--text); }

/* Header / Hero */
header {
  padding: 1rem;
  margin: 1rem auto;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: clamp(320px, 92vw, 1100px);
}
header h1 {
  font-size: clamp(1.6rem, 1.2rem + 3vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #e9f6ff;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.4vw + 0.8rem, 1rem);
  margin-bottom: 0.5rem;
}
nav a {
  display: inline-block;
  padding: .35rem .65rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.25);
}
nav a:hover { text-decoration: underline; }

/* Main / Article styling */
main { padding: 1rem 0; }
article { display: block; }

/* Sections and typography inside content */
h2 { font-size: clamp(1.25rem, 0.8rem + 2vw, 2rem); margin: 0.75rem 0 0.4rem; color: #eaf6ff; }
h3 { font-size: clamp(1rem, 0.6rem + 1.5vw, 1.25rem); margin: 0.75rem 0 0.25rem; color: #eaf6ff; }
p { margin: 0.5rem 0; color: #e9f1ff; }
ol { margin: 0.5rem 0 0.75rem 1.25rem; padding: 0; }
ul { margin: 0.5rem 0 0.75rem 1.5rem; padding: 0; }
li { margin: 0.25rem 0; }

/* Actionable templates / CTAs */
.btn, .cta, a.btn {
  display: inline-block;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn { background: var(--accent); color: #002330; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: rgba(0, 229, 255, 0.08); }

/* Focus states (WCAG AA) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: none;
  outline: var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.25);
}
a:focus-visible { text-decoration: underline; }

/* Product ad / footer blocks styled as glass panels */
.product-ad, .sponsored-page {
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* List / section helpers to maintain contrast on glass */
ul, li { color: #e9f6ff; }

/* Utilities for common patterns used by the provided HTML */
.image-frame { margin: 0.75rem 0 1rem; }
.content { padding: 0; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  header, main, footer { box-shadow: none; background: none; border: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
