/* Base Tokens */
:root{
  --bg: #0b0b12;
  --bg-2: #141521;
  --text: #f5eaff;
  --muted: #c8c0d0;
  --accent: #ff2dbf;
  --accent-2: #d90495;
  --card: rgba(18, 18, 28, 0.72);
  --card-2: rgba(18, 18, 28, 0.42);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 26px rgba(0,0,0,.42);
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 2px solid rgba(255, 45, 191, .85);
}

/* Section: Reset & Utilities */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered, future-cyberpunk background (gradient + plasma-ish swirls + subtle noise) */
  background-image:
    radial-gradient(circle at 20% -5%, rgba(255,0,140,.15), transparent 25%),
    radial-gradient(circle at 70% 0%, rgba(0,255,180,.10), transparent 28%),
    conic-gradient(from 180deg at 50% 50%, rgba(255,0,140,.14), rgba(0,0,0,.0) 60%, rgba(180,0,255,.14) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom right, rgba(20,0,40,.25), rgba(0,0,0,.0)),
    #0b0b12;
  background-blend-mode: overlay, overlay, overlay, overlay, overlay, normal;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
a, button, .btn, .cta { font-family: inherit; color: inherit; text-decoration: none; cursor: pointer; }

 img { max-width: 100%; display: block; }

/* Section: Layout primitives */
.header, main, footer, aside, nav { display: block; }
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Header */
header { text-align: center; padding: clamp(14px, 4vw, 28px) 0; position: relative; }
header h1 { font-size: clamp(1.4rem, 2.6vw + .8rem, 2.4rem); line-height: 1.15; margin: 0.25em 0 0.25em; letter-spacing: .2px; font-weight: 700; }
header .meta { color: var(--muted); font-size: clamp(.85rem, .8vw + .4rem, 1rem); margin-top: .25rem; }

/* Navigation */
nav { margin-top: .75rem; display: inline-flex; gap: .5rem; flex-wrap: wrap; }
nav a { padding: .5rem .75rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.04); color: var(--text); font-size: .95rem; transition: transform .2s ease, background .2s ease; }
nav a:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); text-decoration: none; }
nav a:focus-visible { outline: 2px solid rgba(255, 0, 140, .9); outline-offset: 2px; }

/* Main content */
main { padding: clamp(12px, 4vw, 28px); }
article { display: block; }

/* Section: Image frame (glassy image container) */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(18,18,28,.75); /* fallback */ 
  box-shadow: var(--shadow);
  display: block; 
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
@supports not (backdrop-filter: blur(8px)) {
  .image-frame { background: rgba(18,18,28,.92); }
  .image-frame img { filter: saturate(1.05); }
}

/* Content block styling inside article where .content may apply */
.content { padding: 0.75rem 0; color: var(--muted); }

/* Headings, paragraphs and lists inside article */
article h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 2.2rem); margin: .75rem 0 .5rem; color: var(--text); }
article h3 { font-size: clamp(1.05rem, 1.2vw + .8rem, 1.4rem); margin: .6rem 0; color: var(--text); }
article p { margin: .65rem 0; color: var(--muted); }
article ul { margin: .5rem 0 1rem 1.1rem; padding: 0; }
article li { margin: .25rem 0; }

/* Blockquote styling */
blockquote { margin: .75rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }

/* Section: Glass panels (cards) */
.card, .product-ad, .sponsored-page { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); }

/* Product ad / sponsored sections */
.product-ad, .sponsored-page { text-align: center; display: block; width: min(100%, 980px); margin: .5rem auto; }
.product-ad a, .sponsored-page a { display: inline-flex; align-items: center; justify-content: center; padding: .6rem .9rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); color: var(--text); text-decoration: none; }
.product-ad a { background: rgba(255,255,255,.08); }
.sponsored-page a { background: rgba(0,0,0,.25); }
.product-ad p, .sponsored-page p { margin: 0; }

/* Utility: grid & card helpers */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { display: block; }

/* Links and CTAs with accessible focus states */
a { color: var(--accent-2); text-decoration: none; outline: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid rgba(255, 0, 140, .95); outline-offset: 3px; }

/* Buttons & CTAs */
button, .btn, .cta { border: none; border-radius: 8px; padding: .6rem 1rem; font-weight: 600; background: rgba(255,255,255,.08); color: var(--text); transition: transform .2s ease, background .2s ease; display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff6bd6); border: 1px solid rgba(255,255,255,.4); }
.btn.secondary { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
button:active, .btn:active, .cta:active { transform: translateY(0); }

/* Glass-panel fallback for non-backed browsers (where backdrop-filter isn't supported) */
@supports not (backdrop-filter: blur(8px)) {
  .card, .image-frame { background: rgba(12,12,20,.92); }
}

/* Section: Aside (styling placeholder for future use) */
aside { display: none; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, footer { page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}

/* Section: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}