/* Section: Base & Theme Tokens */
:root {
  --bg: #0b0b14;
  --bg-2: #0f1220;
  --text: #e8f5ff;
  --muted: #b6c7dd;
  --accent: #ff2bd8;
  --accent-2: #8bdc8a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --focus-ring: 2px solid #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + fuchsia stripes + subtle pattern */
  background-image:
    linear-gradient(135deg, rgba(56, 0, 87, 0.55), rgba(0,0,0,0.0)),
    repeating-linear-gradient(to right, rgba(255, 0, 140, 0.08) 0 8px, rgba(0,0,0,0) 8px 16px),
    linear-gradient(#0b0b14, #0b0b14);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100vh;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  /* subtle scanline overlay for texture (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 2px;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* Section: Layout & Structure */
.container { width: min(1100px, 90%); margin-inline: auto; padding: 0.75rem; }

/* Section: Typography */
h1 { font-size: clamp(1.75rem, 0.9rem + 4vw, 4rem); line-height: 1.05; margin: 0 0 0.5rem; font-weight: 800; letter-spacing: .2px; }
h2 { font-size: clamp(1.15rem, 0.6rem + 2vw, 2rem); margin: 1.1rem 0 0.4rem; font-weight: 700; }
p { color: var(--muted); margin: .5rem 0 1rem; }
blockquote { margin: .5rem 0 1rem; padding: .5rem 1rem; border-left: 3px solid var(--accent); background: rgba(255,255,255,0.04); border-radius: 6px; color: #e9f4ff; }

/* Section: Components & Utilities */
ul, ol { margin: .5rem 0 1rem 1.25rem; color: var(--text); }
li { margin: .25rem 0; }

/* Section: Image Frame */
.image-frame { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.25); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 8px 22px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Glass Panels & Panels */
header, main, footer, aside { background: rgba(12, 18, 35, 0.58); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Section: Navigation & Interactive Elements */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: #ffd7f0; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* Buttons & CTAs (solid + outline variants) */
.btn, .cta, button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; text-shadow: 0 1px 0 rgba(0,0,0,.15); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover, .cta:hover { transform: translateY(-1px); background: #e01bd2; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline { background: transparent; border: 1px solid rgba(139,220,138,0.9); color: var(--accent-2); }
.btn--outline:hover { background: rgba(139,220,138,0.15); }

/* Section: Cards & Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem; box-shadow: 0 6px 16px rgba(0,0,0,.15); }

/* Section: Tags */
.tag { display: inline-block; padding: .15em .5em; border-radius: 999px; font-size: .75rem; line-height: 1; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }

/* Section: Content Helpers (for potential .content usage) */
.content { color: var(--text); }

/* Section: Product Ad & Sponsored Sections */
.product-ad, .sponsored-page { display: inline-block; padding: .6rem 0.75rem; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad a, .sponsored-page a { color: #fff; text-decoration: none; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}

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