/* Base tokens */
:root{
  --bg: #0a0912;
  --bg-2: #120e1a;
  --text: #f7f5ff;
  --muted: #b6a7c9;
  --accent: #8a5aff;
  --accent-2: #c36aff;
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.22);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 30px rgba(0,0,0,.45);
}

/* Reset & globals */
* { box-sizing: border-box; }
html, body, header, nav, main, article, aside, footer { height: auto; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: #000;
  /* Layered background: gradient + violet low-poly vibe (approx.) + subtle noise/scanlines */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='480' viewBox='0 0 800 480'><polygon points='0,480 320,0 800,480' fill='%238b5aff'/><polygon points='0,320 180,0 420,480' fill='%239f5dff'/><polygon points='200,480 800,480 420,120' fill='%23140066'/></svg>"),
    linear-gradient(135deg, #000 0%, #0a0612 60%, #000 100%);
  background-blend-mode: normal, overlay;
  background-size: cover, auto;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(120deg, rgba(128,0,160,.15), rgba(0,0,0,0) 40%);
  mix-blend-mode: overlay;
  opacity: .65;
}
:focus { outline: none; }

/* Layout helpers (utilities) */
.container { width: 100%; max-width: clamp(720px, 85vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tag { display:inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: rgba(138,90,255,.25); color: #fff; border: 1px solid rgba(138,90,255,.6); }

/* Header / Hero */
header { position: relative; z-index: 1; text-align: center; padding: 2.25rem 1rem 1.5rem; }
header h1 { margin: 0 0 .25rem; font-size: clamp(2rem, 5vw + 1rem, 3.6rem); line-height: 1.08; letter-spacing: .5px; }
header .meta { color: var(--muted); font-size: clamp(.92rem, 1.6vw, 1.05rem); }

/* Content area */
main { position: relative; z-index: 1; padding: 0 1rem 2rem; display: flex; justify-content: center; }
article { max-width: clamp(640px, 90vw, 860px); }

/* Media visuals */
.featured-image { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 26px rgba(0,0,0,.5); margin: 1rem 0 1.25rem; }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Glass panels for content blocks (image-frame as required) */
.image-frame { aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 20px rgba(0,0,0,.5); display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content typography */
.content { color: var(--text); font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.6; padding: .25rem 0 1rem; }
.content p { margin: .75rem 0; }
.content blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: rgba(138,90,255,.15); border-radius: 6px; font-style: italic; }

/* Lists */
ul { margin: .75rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Links & buttons (interactive states) */
a, button, .btn, .cta { color: inherit; text-decoration: none; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Button variants */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: #fff; font-weight: 600; }
.btn + .btn { margin-left: .5rem; }
.btn--solid { background: linear-gradient(135deg, rgba(138,90,255,.95), rgba(156,65,255,.9)); border: 1px solid rgba(255,255,255,.75); color: #fff; }
.btn--outline { background: rgba(0,0,0,.25); border: 1px solid rgba(138,90,255,.8); color: #fff; }

/* Hover/active tweaks for buttons (GPU-friendly) */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Glass panels general styling utility for .card usage */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Product ad in footer area */
.product-ad { display: grid; place-items: center; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad a { display: block; width: 100%; text-align: center; padding: .6rem; border-radius: 8px; color: #fff; background: rgba(0,0,0,.25); }
.product-ad a:hover { background: rgba(0,0,0,.35); }

/* Footer layout + accessibility */
footer { padding: 1.4rem; margin-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; color: var(--muted); }

/* Sponsored content row (secondary section) */
footer .sponsored-page { margin-top: .6rem; }

/* Layout responsiveness */
@media (min-width: 700px) {
  main { padding: 1.5rem 0 2rem; }
  article { padding: 0 0; }
}
@media (min-width: 820px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  footer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; text-align: left; padding: 1.6rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn, a, .card { transform: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, footer { background: #fff; border: 1px solid #ddd; }
  .card { background: #f8f8f8; border: 1px solid #ccc; }
}