/* Tokens */
:root {
  --bg: #0b0a14;
  --bg-2: #2a0e28;
  --text: #f5f3fb;
  --muted: #c9c4d6;
  --accent: #cbd0e6;      /* silver */
  --accent-2: #885a8a;    /* deep plum highlight */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --ring: 0 0 0 3px rgba(160, 180, 255, 0.6);
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 0 0 0 4px rgba(170, 190, 255, 0.8);
}

/* Section: Global & Background */
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.5;
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines */
  background-image:
    linear-gradient(135deg, rgba(60,0,60,.92) 0%, rgba(16,0,26,.95) 60%, rgba(60,0,60,.92) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html, body { background-attachment: scroll; }
}

/* Section: Layout primitives */
.container { width: 100%; max-width: clamp(860px, 90vw, 1200px); margin-inline: auto; padding-inline: 1rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); }
}
.tag {
  display:inline-block; padding:.25rem .5rem; border-radius:999px; font-size:.75rem; color: var(--text);
  background: rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.35);
}
.content { padding: 0.75rem 0; color: var(--text); font-size: clamp(15px, 2.2vw, 18px); line-height: 1.6; }

/* Section: Shared typography for headings */
h1, h2 { margin: .25rem 0; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 3.25rem); letter-spacing: .4px; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* Section: Image framing */
.image-frame {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  margin: 1rem 0;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  filter: saturate(105%);
}

/* Section: Glass panels (content areas, hero, etc.) */
header, main, footer, aside { outline: none; }
header {
  display: block;
  padding: 2rem 1rem;
  text-align: center;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(to bottom right, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 { color: #f9f7ff; }
header .meta { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

/* Section: Generic link/button styles (including .btn, .cta) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
  outline: none;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(180,190,255,.22);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, rgba(180,190,255,.95), rgba(160,150,230,.92));
  border-color: rgba(255,255,255,.55);
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Section: Typography helpers for accessibility */
p { margin: .75rem 0; color: var(--text); }
blockquote {
  margin: .75rem 0; padding: .5rem 1rem;
  border-left: 3px solid rgba(180,180,255,.6);
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Page structure styling */
main { padding: 1rem; }
article { display: block; padding: 0.25rem; }
footer { padding: 1rem; margin-top: 1rem; display: grid; gap: 1rem; }
.product-ad { }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  header, main, footer { background: transparent; box-shadow: none; }
}

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