/* Root tokens (magenta + olive palette) */
:root{
  --bg: #0a0a0f;
  --bg-2: #0e1115;
  --text: #eaf2ff;
  --muted: #a6bfa8;
  --accent: #ff00a3;      /* magenta */
  --accent-2: #8aa74a;     /* olive */
  --card: rgba(20, 20, 20, 0.34);
  --card-2: rgba(26, 26, 26, 0.28);
  --border: rgba(255,255,255,0.28);
  --shadow: rgba(0,0,0,0.45);
  --radius: 14px;

  --focus: #7df9a0;
  --cta-gap: 0.5rem;
}

/* Global reset & base typography (mobile-first) */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.4; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.0) 60%), #000;
  /* Layered background: gradient + olive/magenta accents */
  background: 
    radial-gradient(circle at 10% -10%, rgba(255,0,170,0.25) 0 40%, transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(138,171,60,0.20) 0 40%, transparent 40%),
    linear-gradient(135deg, #05060a 0%, #0a0a0f 40%, #0c1a0c 100%);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Subtle scanline/noise overlay (pure CSS) for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(45deg, rgba(0,0,0,.08), rgba(0,0,0,0) 40%);
  background-size: 4px 4px, 4px 4px, 100% 100%;
  mix-blend-mode: overlay;
  opacity: 0.25;
  filter: saturate(1.1);
  z-index: 0;
}

/* Layout containers (basic reset) */
header, nav, main, article, aside, footer {
  padding: 0.75rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

header, main, footer, aside {
  display: block;
}

/* Glass panel (with graceful fallback) */
.glass {
  background: rgba(17, 20, 17, 0.34);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .glass { background: rgba(15, 18, 15, 0.22); }
} 

/* Glass-wrapped sections (applied to semantic blocks) */
header, main, footer, aside {
  background: transparent;
}
header { display: grid; gap: .75rem; justify-items: center; padding: 1.5rem 1rem; }
header h1 { margin: 0; font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem); line-height: 1.08; text-align: center; letter-spacing: .2px; color: #f8fbff; }
main { display: grid; place-items: center; padding: 1rem 1rem 2rem; }
article { width: 100%; display: grid; gap: 1rem; }
footer { padding: 1rem; display: grid; gap: .75rem; justify-items: center; }

/* Content container utilities */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Image frame styling */
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 24px rgba(0,0,0,.35); background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area within glass panels (generic) */
.content { padding: .75rem; color: var(--text); }

/* Product ad / footer CTA blocks */
.product-ad, .sponsored-page {
  display: grid; gap: .5rem;
  padding: .75rem;
}
.product-ad a, .sponsored-page a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1rem; border-radius: 999px;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, rgba(255,0,163,.95), rgba(128,0,128,.75));
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.3); text-decoration: underline; }

/* Links & typography accessibility */
a { color: #eaf2ff; text-decoration: none; outline: none; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; text-decoration: underline; }
a:hover { text-decoration: underline; }

/* Button base + variants (solid and outline) */
.btn, a.btn, button.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--cta-gap);
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #e5009a 60%);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible, a.btn:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline:hover {
  background: rgba(255,255,255,.08);
}
.btn + .btn { margin-left: .5rem; }

/* Utility components */
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.75rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #e8fbd0;
  background: rgba(138,171,60,.25);
  border: 1px solid rgba(138,171,60,.65);
}

/* Lists styling (accessibility-friendly) */
ul { margin: 0; padding: 0; list-style: none; display: block; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a, .btn { color: #000; text-decoration: underline; }
  .glass { background: #fff; border: 1px solid #ccc; box-shadow: none; }
  img { max-width: 100%; page-break-inside: avoid; }
}

/* Responsiveness helpers (grid utilities) */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}