:root{
  --bg: #041824;
  --bg-2: #062033;
  --text: #eaffff;
  --muted: #97d2e8;
  --accent: #1eead8;
  --accent-2: #9af0ff;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

html, body, header, nav, main, article, footer, aside {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

/* Global typography */
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color-scheme: dark;
}
body {
  color: var(--text);
  background: #041016;
  /* Layered background: gradient + subtle glow + subtle scanlines */
  background-image:
    radial-gradient(circle at 80% 0%, rgba(0, 255, 230, .15), transparent 40%),
    linear-gradient(135deg, rgba(6,25,40,.85) 0%, rgba(6,40,60,.8) 60%, rgba(2,2,2,.95) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.25) 60%);
  background-blend-mode: screen, overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2rem;
  position: relative;
}
body::before {
  /* subtle scanline/noise overlay (pure CSS) */
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .6;
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  /* apply frosted glass where supported */
}
@supports (backdrop-filter: blur(12px)) {
  body { backdrop-filter: saturate(110%) blur(12px); -webkit-backdrop-filter: saturate(110%) blur(12px); }
}
@supports not (backdrop-filter: blur(12px)) {
  body { /* fallback handled via .glass panels */ }
}
@media (prefers-color-scheme: light) {
  body { color: #0a0a0a; background: #f7f7fb; }
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card { padding: 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Glass panel utility (with backdrop-filter support) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  backdrop-filter: saturate(110%) blur(12px);
  -webkit-backdrop-filter: saturate(110%) blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.18); }
}

/* Typical elements to style */
header, main, footer, aside {
  display: block;
}
header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 .25rem;
  color: #eaffff;
  letter-spacing: .2px;
}
header .meta {
  font-size: .88rem;
  color: var(--muted);
}
main { padding: 1rem 0 0; }
article { max-width: clamp(640px, 92vw, 920px); margin: 0 auto; padding: 0 0 1rem; }

/* Featured image frame (supporting selector) */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 18px rgba(0,0,0,.25);
  display: block;
  margin: .5rem 0 1rem;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Content blocks */
.content { padding: 0 0 1rem; }
.content h2, .content h3 { color: #eaffff; margin: .5rem 0 0.25rem; }
.content p { color: #e9f7fb; margin: .4rem 0 1rem; }
.content ul, .content ol { margin: .25rem 0 1rem 1.25rem; color: #e9f7fb; }
.content blockquote {
  margin: .5rem 0 1rem; padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: #eaffff;
}

/* Section styling inside article for glass panels where useful */
section { padding: .5rem 0; }
.section-glass { margin: .75rem 0; }

/* Product ad / footer glass panels */
.product-ad, .sponsored-page {
  width: min(420px, 90%);
  margin: .25rem auto;
}
.product-ad a, .sponsored-page a { text-decoration: none; display: block; padding: .75rem 1rem; color: #021417; }
.product-ad { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; text-align: center; }
.sponsored-page { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; text-align: center; }

/* Link & button treatments */
a, button, .btn, .cta { transition: transform .15s ease, opacity .15s ease; }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent); outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Button variants */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,255,230,.92);
  color: #041515;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.outline, .cta.outline {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(0,255,230,.8);
}
.btn:focus-visible, .cta:focus-visible { outline-offset: 2px; }

/* Tag / badges */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0,255,230,.18);
  color: var(--text);
  border: 1px solid rgba(0,255,230,.4);
}

/* List styling (ul/li) for accessibility */
ul, li { list-style: disc inside; }

/* Image frame for future usage (as requested) */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 14px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Layout helpers for content region widths on larger screens */
@media (min-width: 720px) {
  .content { padding: 1.25rem 0; }
}
@media (min-width: 960px) {
  article { padding: 0; }
  .grid { gap: 1.25rem; }
}

/* Print styles for basic readability */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; color: #000; }
  .glass { background: #fff; border: 1px solid #999; }
}

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