/* Base tokens & reset */
:root {
  --bg: #0f1115;
  --bg-2: #1a1f26;
  --surface: rgba(20, 20, 25, 0.66);
  --surface-2: rgba(22, 24, 28, 0.58);
  --text: #e9f0f9;
  --muted: #a7b0c2;
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.32);
  --accent: #4de2ff;
  --accent-2: #b07aff;
  --focus: 2px solid rgba(77,190,255,.95);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.5;
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(12,12,14,0.92) 0%, rgba(14,14,18,0.92) 60%, rgba(16,16,20,0.92) 100%),
    radial-gradient(circle at 20% 0%, rgba(60,60,70,.25), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(0,0,0,.25), transparent 35%);
  background-blend-mode: overlay, overlay, normal;
  background-size: cover;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  /* subtle scanlines/noise layer */
  content: "";
  position: fixed; inset: 0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 100%);
  background-size: 100% 2px;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
  opacity: 0.6;
}
ul, li { margin: 0; padding: 0; list-style: none; }

/* Layout helpers */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: linear-gradient(to bottom right, rgba(15,17,22,.66), rgba(15,17,22,.42));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(15,17,22,.75); border-color: rgba(255,255,255,.35); }
}
.aside { display: block; }

/* Glass panels improvements for accessibility on focus */
.glass {
  background: rgba(10,12,16,.65);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  body::before { display: none; }
}
/* Decorative image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #0a0a0a;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}

/* Structural selectors required by the page outline */
html, body, header, nav, main, article, footer, aside { /* selectors present in markup; style them as glassy, responsive blocks */ }
header {
  padding: 1.25rem 0;
  background: rgba(10,12,16,.6);
  border-bottom: 1px solid rgba(255,255,255,.25);
  position: relative;
  z-index: 1;
}
header > .container { text-align: center; }
header h1 {
  font-size: clamp(1.4rem, 2.4vw + 1rem, 2.2rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  color: var(--text);
}
nav {
  display: flex; justify-content: center; gap: .75rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(77,190,255,.35);
  background: rgba(0,0,0,.15);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(77,190,255,.6);
  border-radius: 6px;
}
a:focus-visible, a:focus { outline: none; }

/* Main content area */
main { padding: 2rem 0 3rem; display: grid; justify-items: center; position: relative; z-index: 1; }
article { width: 100%; max-width: clamp(320px, 90vw, 900px); }

/* Hero/content layout inside article container */
.content { display: block; padding: .5rem 0; }

/* Footer with glass panels and CTAs */
footer { padding: 1.25rem 0; display: grid; gap: .75rem; align-items: start; justify-items: center; }
.product-ad, .sponsored-page { width: min(100%, 680px); text-align: center; }

.product-ad a, .sponsored-page a {
  display: block;
  padding: .75rem;
  color: var(--text);
  text-decoration: none;
}
.product-ad a { border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); }
.sponsored-page a { border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.22); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Typography details for content blocks */
h1, h2, h3 { line-height: 1.15; margin: .25rem 0 0.5rem; color: var(--text); }
p { margin: 0 0 0.75rem; color: var(--text); }
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .8rem; background: rgba(77,190,255,.25); color: #eaffff; border: 1px solid rgba(77,190,255,.45); }

/* Buttons and CTAs (solid and outline variants) */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  text-decoration: none; cursor: pointer; font-weight: 600;
  background: rgba(255,255,255,.08); color: var(--text);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); text-decoration: underline; }
.btn:active, .cta:active { transform: translateY(0); }
.btn--solid {
  background: linear-gradient(135deg, var(--accent), #2ee8ff);
  border: 1px solid rgba(255,255,255,.6);
  color: #001018;
}
.btn--solid:hover { filter: brightness(1.05); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(125, 210, 255, .9);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(77,190,255,.45);
  border-radius: 6px;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .cta { transition: none; }
  a { text-decoration: underline; }
}

/* Images and media helpers */
.image-frame { margin: 1rem 0; }

.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, footer { display: none; }
  article { width: 100%; }
}
