/* Palette & Theme */
:root {
  --bg: #0a0a0f;
  --bg-2: #11101a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #b0b5c6;
  --accent: #ff2dbf;
  --accent-2: #ff6bd9;
  --focus: #7df9ff;
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Base & Layout (Mobile-First) */
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  background: 
    radial-gradient(circle at 14% 0%, rgba(255,0,140,.18), transparent 40%),
    radial-gradient(circle at 82% 14%, rgba(0,255,200,.12), transparent 40%),
    linear-gradient(135deg, var(--bg) 0%, #0b0b14 60%, var(--bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 4px);
  opacity: .22;
  pointer-events: none;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px, transparent 1px, transparent 3px);
  opacity: .25;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.container {
  width: 100%;
  max-width: clamp(680px, 78vw, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}
header, main, footer, aside {
  display: block;
}
header {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(2, 2, 6, 0.28);
  position: sticky;
  top: 0;
  z-index: 20;
}
header h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw + 1rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: .2px;
}
nav {
  margin-top: .5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }
main { padding: 2rem 0; }
article { display: block; }
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #111;
  box-shadow: var(--shadow), inset 0 0 12px rgba(255,255,255,.04);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
footer {
  padding: 2rem 0;
  color: var(--muted);
}
.product-ad, .sponsored-page {
  display: block;
  padding: .9rem 1rem;
  margin: .5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a, .sponsored-page a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.product-ad:hover, .sponsored-page:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
}
p { margin: 0.25rem 0; }

/* Glass panels (fallback included) */
.glass { 
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); }
}
.content {
  max-width: 60ch;
  color: var(--text);
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Button & CTA styling */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(255,0,180,.95), rgba(255,60,120,.9));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255,0,180,.45);
}
.btn:active, .cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255,0,180,.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
}
a.btn { text-decoration: none; }

/* Typography & hierarchy */
h1, h2, h3 {
  color: #fff;
}
h1 { font-weight: 800; }

/* Lists (accessibility & structure) */
ul, ol { padding-left: 1.25rem; margin: .5rem 0; }

/* Utilities (semantic helpers) */
.aside { display: block; }

/* Print styles */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .glass { background: white !important; border: 1px solid #ccc; box-shadow: none; }
}

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