/* Base / Tokens */
:root {
  --bg: #1b0b14;
  --bg-2: #2a0a12;
  --text: #f7eaff;
  --muted: #caa1b0;
  --accent: #ff2e92;
  --accent-2: #ff6bd5;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 10px 25px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: #ffffff;
}
/* Global / Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, rgba(120,0,40,.95), rgba(8,0,12,.95) 60%), #09060b;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  /* Layered background: subtle gradient + scanlines/noise */
  background:
    linear-gradient(to bottom right, rgba(255,0,125,.08), rgba(0,0,0,0) 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.95;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.4) 40%, rgba(0,0,0,1) 100%);
}
/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); }
.tag { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; }

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

/* Header / Hero */
header {
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem;
  margin: 1rem auto;
}
header h1 {
  font-size: clamp(1.25rem, 0.9rem + 2.5vw, 2.25rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  text-align: center;
  letter-spacing: .2px;
  text-shadow: 0 2px 12px rgba(255,0,125,.25);
}
header nav { margin-top: .25rem; width: 100%; display: flex; justify-content: center; gap: .5rem; }

/* Link/button base styles (focus visible) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
a { transition: color .15s ease, text-decoration .15s ease; }
a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; color: var(--accent-2); text-decoration: underline; }

/* CTA Variants */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(135deg, rgba(255,46,146,.95), rgba(255,110,213,.95));
  color: #fff; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(255,46,146,.98), rgba(255,110,213,.98)); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.8);
  color: #fff;
}
.btn.outline:hover { background: rgba(255,255,255,.08); }

/* Hero content & typography */
.hint { font-size: .92rem; color: var(--muted); margin-top: .25rem; text-align: center; }

/* Main / Article */
main { padding: 1rem 0; }
article { display: grid; place-items: center; padding: 1rem 0; }

/* Image frame styling */
.image-frame {
  width: 100%; max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px rgba(255,0,120,.25);
  pointer-events: none;
}
@supports not (backdrop-filter: blur(8px)) {
  .image-frame { background: rgba(0,0,0,.35); }
}

/* Footer / product ads */
footer { padding: 1rem 0; display: grid; gap: .5rem; justify-items: center; }
.product-ad, .sponsored-page { width: min(90%, 880px); }
.product-ad a, .sponsored-page a { width: 100%; display: block; text-align: center; }
.product-ad { padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Misc helpers for lists */
ul { margin: 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Utility layout helpers (grid/list variants) */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, article, footer { background: transparent; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}