/* Base tokens & Global resets */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --text: #e9e9f0;
  --muted: #b8b4bf;
  --accent: #ff2d9c;
  --accent-2: #ff6bd1;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-2: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.30);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.40);
  --focus: 0 0 0 3px rgba(255, 45, 156, 0.6);
  --radius: 12px;
  --gap: 1rem;
}

*,
*::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"; }
body {
  margin: 0;
  color: var(--text);
  background: #000;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background-image:
    linear-gradient(to bottom, rgba(255, 20, 120, 0.08), rgba(0,0,0,0) 60%),
    linear-gradient(to right, rgba(255,20,120,0.08), rgba(0,0,0,0) 60%),
    linear-gradient(#000 0 0);
  background-blend-mode: overlay;
  /* Subtle scanlines and speckle via CSS stripes */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(#000, #000);
  background-size: 100% 2px, 2px 100%, auto;
  background-color: #000;
  color-scheme: dark;
}

/* Layout helpers */
.container {
  width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
.tag {
  display: inline-block;
  padding: 0.25em 0.625em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 45, 156, 0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.image-frame {
  width: min(900px, 92%);
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  vertical-align: middle;
}

/* Glass panel style (fallback included) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.15); }
}

/* Typography scale (fluid) */
h1, h2, h3 {
  margin: 0 0 0.5rem 0;
  line-height: 1.15;
}
h1 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.125rem, 1.6vw + .75rem, 1.5rem); }
p { margin: 0 0 0.75rem 0; font-size: clamp(0.95rem, 1.6vw + 0.4rem, 1.125rem); color: var(--muted); }

/* Header, Nav, Main, Article, Footer, Aside styling */
header {
  padding: 1.25rem 0;
  text-align: center;
}
header h1 {
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
nav {
  margin-top: 0.5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,0.25);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
nav a:focus-visible { outline: none; box-shadow: var(--focus); border-color: rgba(255,255,255,.9); }

/* Main content area */
main { padding: 1rem 0; }
article { display: block; }

/* Interactions: links, buttons, CTAs */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
}
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: linear-gradient(180deg, rgba(255,45,156,0.95), rgba(255,45,156,0.75));
  color: #fff;
  text-align: center;
  transition: transform .15s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255,45,156,1), rgba(255,45,156,0.85)); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: none; box-shadow: var(--focus);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.9);
  color: var(--text);
}
a.btn { text-decoration: none; }

/* Lists */
ul { margin: 0 0 1rem 1.25rem; padding: 0; list-style: disc; }
li { margin: 0.25rem 0; }

/* Product/ad sections in footer */
footer {
  padding: 1rem 0 2rem;
}
.product-ad, .sponsored-page {
  display: block;
  margin: .75rem 0;
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  text-align: left;
}
.product-ad a, .sponsored-page a { display: block; color: #fff; text-decoration: none; }
.product-ad:hover, .sponsored-page:hover { background: rgba(255,255,255,0.12); }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  nav, .image-frame { display: none; }
  .container { width: 100%; padding: 0; }
  a { text-decoration: underline; }
}
  
/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
  
/* Minimal responsive tweaks for mobile-first layout */
@media (min-width: 640px) {
  header { padding: 1.5rem 0; }
  .image-frame { margin: 1.25rem auto; }
}
  
/* Content helper (optional) */
.content { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); }
  
/* Aside placeholder styling (for completeness) */
aside { display: none; }