:root{
  /* 1. Tokens: silver + ultraviolet palette */
  --bg: #0b0f17;
  --bg-2: #0e1220;
  --bg-3: #141a2a;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --text: #e9f0ff;
  --muted: #a6b4c8;
  --accent: #7c7bff;
  --accent-2: #b8b8ff;
  --accent-3: #dfe3ff;
  --border: rgba(255,255,255,0.32);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(124,125,255,.65);
  --glow: 0 0 20px rgba(124,125,255,.45);
}

/* 2. Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  font-size: clamp(14px, 1vw + 12px, 16px);
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(10,12,20,.92), rgba(14,18,32,.88) 60%, rgba(10,12,20,.92)),
    linear-gradient(to bottom right, rgba(118, 120, 255, .20), rgba(60,0,80,.15)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 3. Backdrop: glass panels (fallback if backdrop-filter unsupported) */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@supports not (backdrop-filter: blur(12px)) and not (-webkit-backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); }
}
.backdrop { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 4. Layout helpers */
.container { max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.tag { display: inline-block; padding: .25em .5em; border-radius: 999px; font-size: .75rem; color: #021a25; background: rgba(124,123,255,.25); border: 1px solid rgba(124,123,255,.5); }

/* 5. Typography & sections */
header, nav, main, article, aside, footer { padding: 0; margin: 0; }
header { display: grid; place-items: center; padding: 3rem 1rem; margin: 2rem auto; width: min(1100px, 100%); border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(20,24,40,.72), rgba(20,24,40,.28)); text-align: center; box-shadow: var(--shadow); }
header h1 { font-size: clamp(2rem, 4vw + 1rem, 4rem); margin: .25rem 0 .5rem; font-weight: 800; letter-spacing: .4px; color: #f6faff; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, .4vw + .9rem, 1.05rem); }

main { padding: 1rem 0 2rem; }
article { padding: 0; }

/* 6. Media: image frame & image */
.image-frame, .featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); width: 100%; display: block; margin: 0 auto 1rem; }
.image-frame { aspect-ratio: 16 / 9; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 7. Content styling inside article */
.content { color: var(--text); padding: 0.75rem 0; }
.content h2 { font-size: clamp(1.5rem, 2.5vw + .5rem, 2.5rem); margin: .25rem 0 .5rem; }
.content p { color: var(--text); margin: .75rem 0; }
.content ul { margin: .5rem 0 1rem 1.25rem; padding: 0; }
.content li { margin: .25rem 0; }

/* 8. Product ad and sponsor blocks (footer sections) */
.product-ad, .sponsored-page { margin: .75rem 0; padding: .75rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); text-align: center; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; padding: .4em .8em; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,.12); }

/* 9. Interactive controls: buttons & links */
a, button, .btn, .cta { cursor: pointer; text-decoration: none; color: inherit; }
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: linear-gradient(135deg, rgba(124,125,255,.95), rgba(110,102,255,.95)); color: #fff; font-weight: 700; transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, #5b63ff, #7e7dff); }
.btn.outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.6); }
.btn:focus-visible { box-shadow: var(--focus); outline: none; }

/* CTAs (generic) */
.cta { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: var(--accent); color: #fff; font-weight: 700; }

/* 10. Responsive utilities for layout grids */
@media (min-width: 720px) {
  .grid.auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
}
@media (max-width: 0) {}

/* 11. Print styles */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #000; }
  header, main, footer { page-break-inside: avoid; }
  a::after { content: " (" attr(href) ")"; }
}

/* 12. Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}