/* Base tokens */
:root{
  --bg: #000000;
  --bg-2: #0b0b0f;
  --text: #f7f7ff;
  --muted: #b5b5c9;
  --accent: #ff00c8;
  --accent-2: #ff4ad3;
  --glass: rgba(255,255,255,0.10);
  --glass-2: rgba(255,255,255,0.22);
  --glass-border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.55);
}
html, body, header, nav, main, article, footer, aside { box-sizing: border-box; }
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    /* Noise/scanline layer (subtle) */
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    /* soft magenta glow from the sides/pattern */
    radial-gradient(circle at 20% -10%, rgba(255,0,200,.08) 0 40%, transparent 40%),
    /* core gradient background */
    linear-gradient(135deg, #000 0%, #05060b 40%, #000 100%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  contain: layout;
}
@media (prefers-reduced-motion: reduce) {
  html, body { background-attachment: scroll; }
}
 /* Layered background on top of base to ensure performance-friendly rendering */
@media (min-width: 0) {
  body { background-blend-mode: normal; }
}

/* Layout primitives */
.container {
  max-width: clamp(320px, 92vw, 1120px);
  margin-inline: auto;
  padding-block: 2rem;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 26px rgba(0,0,0,.55);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.01);
}
@supports not (backdrop-filter: blur(8px)) {
  .image-frame {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.45);
  }
}
.content {
  padding: 0;
  margin: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .25em .55em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,0,200,.22);
  color: #ffdfff;
  border: 1px solid rgba(255,0,200,.55);
  text-transform: uppercase;
  letter-spacing: .5px;
}
header, main, footer, aside {
  display: block;
}
header {
  padding: 1.25rem 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
header h1 {
  font-size: clamp(1.4rem, 2.2vw + 1rem, 2.2rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
nav {
  display: flex;
  gap: .5rem;
  align-items: center;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
main {
  padding: 1rem;
}
footer {
  padding: 1rem;
  margin-top: auto;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.15);
}
.product-ad, .sponsored-page {
  display: block;
  width: 100%;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  padding: .75rem;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a:hover, .sponsored-page a:hover {
  background: rgba(0,0,0,.38);
}
.product-ad p, .sponsored-page p, footer p {
  margin: 0;
  font-size: 0.95rem;
}
h1, h2, h3 { color: #fff; }

/* Typography (fluid) */
h1 { font-weight: 700; }
p, li { font-size: clamp(1rem, 0.25vw + 0.9rem, 1.125rem); }
ul { padding-left: 1.25rem; }

/* Interactive elements */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; outline: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 6px; }

/* Buttons (solid and outline) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent);
  color: #070015;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #ff0edf; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Outline variant via modifier */
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,0,200,.75);
}
.btn--outline:hover { background: rgba(255,0,200,.15); }

/* Glass panels (fallback + backdrop-filter) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: reduce) {
  .glass, .btn { transition: none; transform: none; }
}

/* Content helpers */
.section { margin: 1rem 0; }

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