/* Base / Tokens */
:root{
  --bg: #0a1b2a;
  --bg-2: #0b2750;
  --text: #e8fbff;
  --muted: #a9d8ff;
  --accent: #39ffb7;
  --accent-2: #2bd3ff;
  --glass: rgba(6, 14, 34, 0.22);
  --glass-border: rgba(120, 200, 255, 0.35);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; background: var(--bg); }
body {
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: blue gradient + subtle scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(0,140,255,.20) 0%, rgba(0,255,180,.12) 60%, rgba(0,0,0,0) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  background-color: #0a1b2a;
  color: var(--text);
}
@media (prefers-color-scheme: light) {
  html, body { color: #0b1a2b; }
  body { background-color: #eaf6ff; }
}

/* Layout helpers (present but resilient if HTML lacks these) */
.container { max-width: clamp(320px, 88vw, 1100px); margin: 0 auto; padding: 0 1rem; }

/* Glass / frosted panels with fallback */
.glass {
  background: rgba(6, 14, 34, 0.22);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(6, 14, 34, 0.65); border-color: rgba(120, 200, 255, .55); }
}

/* Structural selectors (must style) */
html, body, header, nav, main, article, footer, aside { scroll-behavior: smooth; }
header { padding: 1rem; text-align: center; }

/* Header / hero typography */
header h1 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.8rem);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.12;
  color: var(--text);
}
nav { display: inline-flex; gap: .5rem; margin-top: .25rem; }

/* Nav links (high contrast focus) */
nav a {
  color: #d7fbff;
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(120, 200, 255, .35);
  background: rgba(0, 0, 0, 0.12);
}
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Main content area */
main { padding: 1rem 0; display: block; }
article { width: min(100%, 1100px); margin: 0 auto; padding: 0.5rem; }

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.18);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.image-frame:hover { box-shadow: 0 12px 40px rgba(0,0,0,.34); }

/* Content layout helpers (for potential use) */
.content { padding: 0.75rem; color: rgba(230,245,255,.95); }

/* Product ad / footer sections (glass panels) */
.product-ad, .sponsored-page {
  width: min(100%, 900px);
  padding: .75rem;
  margin: .5rem auto;
  text-align: center;
}
.product-ad { background: rgba(6, 14, 34, 0.22); border: 1px solid rgba(120, 200, 255, 0.35); border-radius: var(--radius); }
.sponsored-page { background: rgba(6, 14, 34, 0.18); border: 1px solid rgba(120, 200, 255, 0.28); border-radius: var(--radius); }

/* CTA / link styling (buttons and anchors) */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
}
.btn, .cta {
  display: inline-block;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 180, 255, 0.8);
  background: linear-gradient(135deg, rgba(0,180,255,.95), rgba(0,255,180,.85));
  color: #001018;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(120, 200, 255, .8);
  box-shadow: none;
}
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }

/* Section typography helpers (cards, tags) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 1rem;
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(57, 255, 183, .22);
  color: #dfffee;
  border: 1px solid rgba(57,255,183,.6);
}

/* Typography scale for headings and paragraphs */
h2, h3 { font-weight: 700; color: var(--text); }
p { color: rgba(230,245,255,.95); margin: .25em 0; }

/* Lists (styling for potential lists) */
ul { padding: 0; margin: 0; list-style: none; }

/* Aside styling (present as a hook) */
aside { padding: .5rem; }

/* Footer adjustments */
footer { padding: 1rem 0; text-align: center; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { color: #000; text-decoration: underline; }
  .glass { background: transparent; border: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}