/* Base / Theme Tokens */
:root {
  --bg: #0b0b14;
  --bg-2: #2a0012;
  --text: #f7faff;
  --muted: #cbd5e1;
  --accent: #ff2e9a;
  --accent-2: #ff7bd8;
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,.25);
  --card: rgba(255,255,255,0.08);
  --shadow: 0 8px 20px rgba(0,0,0,.35);
  --focus-ring: 3px solid rgba(255,0,140,.8);
  --radius: 14px;
  --gap: 1rem;
}

/* Section: Typography & Accessibility Helpers */
html { font-size: clamp(14px, 1.2vw, 18px); }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% -10%, rgba(255,0,120,.15), transparent 40%),
    linear-gradient(135deg, rgba(128,0,40,.95) 0%, rgba(0,0,0,.95) 60%, rgba(20,0,0,.95) 100%),
    #000;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
}
@media (prefers-reduced-motion: reduce) {
  html { font-size: 16px; }
}

/* Layered neon grid + scanlines (pure CSS) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  /* crimson neon grid */
  background-image:
    linear-gradient(rgba(255,0,140,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,140,.25) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: overlay;
  opacity: .55;
  transform: translateZ(0);
}
body::after {
  /* subtle scanlines */
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.0) 0px,
    rgba(0,0,0,.0) 1px,
    rgba(0,0,0,.08) 2px,
    rgba(0,0,0,.08) 3px
  );
  opacity: .25;
  mix-blend-mode: overlay;
}

/* Layout primitives */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: 1rem;
}
.grid { display: grid; gap: var(--gap); }

/* Glass panel helper (fallback included) */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.18); opacity: .95; }
}

/* Typography for hero / headers */
header {
  display: block;
  width: min(1100px, 92%);
  margin: 1.25rem auto;
  padding: 1rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}
header h1 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
}
header .meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,0,140,.75); border-radius: 4px; }

/* Main content and article */
main {
  position: relative;
  z-index: 1;
}
article {
  margin: 1rem auto 2rem;
  max-width: 900px;
  padding: 0;
  line-height: 1.6;
  color: #e6eaff;
}
article h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); margin: .75rem 0 0.5rem; color: #fff; }
article h3 { font-size: clamp(1.1rem, 0.8vw + .8rem, 1.5rem); margin: .75rem 0; color: #fff; }
article p { margin: .75rem 0; color: #e9e9ff; }
article ul { padding-left: 1.25rem; margin: .5rem 0; }
article li { margin: .25rem 0; }

/* Image frame styling */
.image-frame { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 6px 18px rgba(0,0,0,.4); background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.image-frame:hover img { transform: scale(1.03); }

/* Inline content helpers */
.content { line-height: 1.6; color: #e9eaff; }

/* Product ad / footer panels as glass cards */
footer { padding: 1rem 0; }
.product-ad, .sponsored-page {
  display: block;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,46,154,.9), rgba(255,110,214,.9));
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  text-align: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); }

/* Utility elements */
ul, li { margin: 0; padding: 0; }
li { padding-left: 1.125rem; text-indent: 0; }

/* Buttons / links with variants */
.btn, .cta, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6dbf 70%);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,0,140,.75), 0 0 0 6px rgba(0,0,0,.0); }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255,0,140,.25);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}

/* Print-friendly basic readability */
@media print {
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
  
/* Minimal entrance animation (GPU-friendly) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
article { animation: fadeInUp .6s ease both; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  article { animation: none; }
  .btn, .cta { transition: none; }
}
