/* Design Tokens */
:root {
  --bg: #0a1020;
  --bg-2: #111736;
  --text: #eef2ff;
  --muted: #a7b3d1;
  --accent: #ff3bbf;      /* plasma pink */
  --accent-2: #2fe0ff;     /* navy-contrast accent */
  --card: rgba(15, 18, 40, 0.28);
  --card-border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 12px;
}

/* 1. Base & Layered Background (mobile-first) */
html, body, header, nav, main, article, aside, footer {
  box-sizing: border-box;
}
html, body { height: 100%; }
html { line-height: 1.0; } 

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, #0a1020 0%, #0b1a2e 60%, #090e1e 100%), /* navy base */
    radial-gradient(circle at 20% 0%, rgba(255, 0, 150, .25) 0 25%, transparent 25%),
    radial-gradient(circle at 70% 20%, rgba(47, 224, 255, .15) 0 25%, transparent 25%);
  background-blend-mode: normal, screen, screen;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* subtle scanline / noise layer (pure CSS) */
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}

/* 2. Layout helpers */
.container {
  max-width: clamp(720px, 88vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* 3. Typography (fluid) */
h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: #fff;
}
h2, h3 {
  color: #f5f7ff;
  margin: 1rem 0 .5rem;
  font-weight: 700;
}
p { color: var(--muted); margin: .5rem 0 1rem; }

/* 4. Glass panels (frosted) */
.glass {
  background: rgba(12, 16, 40, 0.22);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(12,16,40,0.86);
    border-color: rgba(255,255,255,0.42);
  }
}
.card {
  background: rgba(15,18,40,.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 5. Content area */
.content { padding: 1rem; }

/* 6. Links & buttons (interactive) */
a, button, .btn, .cta {
  text-decoration: none;
  color: #fff;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a:hover { text-decoration: underline; }

/* 7. Button variants */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: transform .15s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:active { transform: translateY(0); }
.btn--solid {
  background: linear-gradient(135deg, var(--accent), #ff69a8 70%);
  border: none;
}
.btn--outline {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn + .btn { margin-left: .5rem; }

/* 8. Utility classes (cards, tags) */
.card, .tag { /* shared basics if needed in usage contexts */ }
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  font-size: .8rem;
  color: #fff;
}
ul, li { color: var(--muted); }

/* 9. Page sections (header, main, footer) */
header {
  padding: 1.25rem 0;
  text-align: center;
}
header nav {
  display: inline-block;
  margin-top: .5rem;
}
header nav a { color: var(--accent); }

/* 10. Responsive tweaks */
.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 700px) {
  h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
  .image-frame { border-radius: 10px; }
  .glass { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 11. Content-specific helpers (aligning with article structure) */
.product-ad, .sponsored-page {
  padding: .75rem;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(22, 28, 60, .28);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(22,28,60,.42); text-decoration: none; }

/* 12. Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  .glass, .card { background: white; border: 1px solid #ccc; box-shadow: none; }
  a, button { color: #000; }
}