/* Global tokens */
:root{
  --bg: #0a1220;
  --bg-2: #0b1a2a;
  --text: #eaf6ff;
  --muted: #a8c8f5;
  --accent: #00e5ff;
  --accent-2: #7af0ff;
  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 26px rgba(0,0,0,.28);
  --radius: 14px;
  --container: clamp(680px, 90vw, 1100px);
}

/* Section: Base resets & mobile-first typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered neon dots + scanline pattern (pure CSS) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,238,255,.9) 2px, transparent 2px),
    radial-gradient(circle at 12px 12px, rgba(0,238,255,.65) 1px, transparent 2px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, #0a0f1a 0%, #050b15 60%, #04060f 100%);
  background-size: 22px 22px, 22px 22px, 100% 2px, 100% 100%;
  background-blend-mode: overlay, overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100%;
}

/* Section: Layout helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Structural elements as glass panels (mobile-first, accessible) */
header, main, footer, aside, article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* Header specifics */
header { text-align: center; padding: 1.25rem 1rem; }
header > h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem); line-height: 1.08; margin: 0 0 .25rem; }
header .meta { color: var(--muted); font-size: 0.92rem; margin-top: .25rem; }

/* Navigation */
nav { margin-top: .5rem; display: inline-block; }
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(0,180,255,.35);
}
nav a:hover, nav a:focus { text-decoration: underline; }

/* Main content & article */
main { padding: 1rem; }
article { max-width: 72ch; margin: 0 auto; padding: 1rem; }

/* Hero image frame */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  margin: .5rem 0 1rem;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content helper (sectioned typography) */
.content { max-width: 60ch; margin: 0 auto; padding: 0 0.5rem; }

/* Lists & cards */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Utility: common card look for any inline blocks */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.20);
}

/* Product ad block (footer area) */
.product-ad {
  display: block;
  margin: .75rem 0;
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(0,180,255,.4);
  background: rgba(0,180,255,.15);
  text-align: center;
}
.product-ad a { color: #fff; text-decoration: none; display: block; padding: .25rem; }
.product-ad:hover { transform: translateY(-1px); }

/* Link, button, CTA styling (high contrast, accessible) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; }

/* Buttons & CTAs (variant definitions) */
.btn {
  display: inline-block;
  padding: .58rem .95rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,180,255,.75);
  color: #001018;
  font-weight: 600;
}
.btn:hover { background: rgba(0,180,255,.9); }
.cta {
  display: inline-block;
  padding: .58rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: var(--text);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Typography: headers & paragraphs */
h2, h3 { color: var(--text); line-height: 1.25; margin: .75rem 0 .4rem; }
p { margin: .4rem 0 1rem; }

/* Glass fallback for environments without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, article {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.32);
  }
}

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

/* Print styles: simple, readable */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}
