:root {
  --bg: #0b0b12;
  --bg-2: #141521;
  --text: #eaf2ff;
  --muted: #a7afc3;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --accent: #ff4bd3;       /* plasma pink */
  --accent-2: #e6e6ea;     /* platinum */
  --card: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.4;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: plasma pink dots + subtle scanlines + gradient */
  background-image:
    /* plasma pink dot grid */
    radial-gradient(circle at 1px 1px, rgba(255, 68, 212, 0.65) 2px, transparent 2px),
    radial-gradient(circle at 6px 6px, rgba(255,255,255,0.04) 1px, transparent 1px),
    /* diagonal gradient for depth */
    linear-gradient(135deg, rgba(10,9,18,1) 0%, rgba(20,18,30,1) 60%, rgba(10,9,18,1) 100%),
    /* subtle horizontal scanlines */
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:
    20px 20px,   /* dot grid */
    20px 20px,   /* secondary speckle grid */
    100% 100%,
    100% 2px;
  background-blend-mode: overlay, overlay, normal, normal;
  background-attachment: fixed;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
}

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #0b0b12;
  background: linear-gradient(#fff, #f0f0f0);
  border: 1px solid rgba(0,0,0,.1);
  margin-right: .25rem;
}

.image-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0a0a0f;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  margin: 1rem auto;
  isolation: isolate;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

.content {
  padding: 1rem 0;
}

.product-ad {
  display: block;
  padding: .6rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; width: 100%; }
.product-ad:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); }

.sponsored-page {
  display: block;
  padding: .6rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: transform .2s ease, background .2s ease;
}
.sponsored-page a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; width: 100%; }
.sponsored-page:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); }

header {
  padding: 1.75rem 1rem;
  display: grid;
  place-items: center;
  margin: 1.25rem auto;
}
header {
  /* glass panel with fallback */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: min(1100px, 92vw);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
header h1 {
  margin: 0;
  font-family: inherit;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw + 1rem, 3.5rem);
  line-height: 1.02;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 75, 211, .55);
}
@media (max-width: 640px) {
  header { padding: 1.25rem; }
  header h1 { font-size: clamp(1.5rem, 6vw, 2.75rem); }
}

/* Main layout and hero content */
main {
  padding: 0 0.5rem 2rem;
}
article {
  padding: 0 0.5rem;
}
footer {
  padding: 1rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}
footer p {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Interactive focus states for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
a:hover, button:hover { text-decoration: underline; }

/* Buttons - solid and outline variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.28); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, rgba(255,75,211,.95), rgba(255,0,170,.95));
  border-color: rgba(255,255,255,.8);
  color: #fff;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.75);
  color: #fff;
}
.cta { display:inline-flex; align-items:center; gap:.5rem; }

/* Image frame tweaks for accessibility and polish */
.image-frame {
  outline: none;
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
}
@media (min-width: 800px) {
  .image-frame { margin: 1.25rem auto; }
}

/* Print styles (basic readability) */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header, nav, main, article, aside, footer { page-break-inside: avoid; }
}
