:root {
  --bg: #0b1020;
  --bg-2: #0a0f2a;
  --text: #e9e6ff;
  --muted: #c9c8e0;
  --accent: #5b6aff;
  --accent-2: #8a79ff;
  --surface: rgba(18, 14, 40, 0.28);
  --surface-2: rgba(15, 18, 40, 0.40);
  --border: rgba(110, 125, 255, 0.55);
  --shadow: 0 8px 20px rgba(0,0,0,0.45);
  --radius: 12px;
}
*,
*::before,
*::after { box-sizing: border-box; }

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);
  background-color: var(--bg);
  /* Layered background: indigo polka dots + gradient + subtle scanlines */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(120,110,255,0.25) 2px, transparent 3px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, #0b1020 0%, #0a0f2a 60%, #060822 100%);
  background-size: 24px 24px, 100% 100%, 100% 100%;
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  min-height: 100%;
  overflow-x: hidden;
  line-height: 1.5;
}
:focus { outline: none; }

header, nav, main, article, aside, footer {
  display: block;
}
header {
  padding: 1.25rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
}
main { padding: 1rem; }
article { display: block; }
footer { padding: 1rem; display: grid; gap: .75rem; }

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(210, 220, 255, 0.35);
  box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.04);
  background: rgba(15, 18, 40, 0.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  filter: saturate(1.05);
  outline: none;
}
.content {
  background: rgba(18, 14, 40, 0.22);
  border: 1px solid rgba(120, 140, 255, 0.42);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .content {
    background: rgba(18, 14, 40, 0.32);
  }
}
.product-ad a,
.sponsored-page a {
  display: block;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-align: center;
  text-wrap: balance;
  background: linear-gradient(135deg, rgba(91,106,255,0.9), rgba(111,64,255,0.9));
  color: white;
  border: 1px solid rgba(180,190,255,0.9);
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover,
.sponsored-page a:hover,
.product-ad a:focus,
.sponsored-page a:focus {
  transform: translateY(-1px);
  text-decoration: underline;
  outline: none;
}
footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 140, 255, 0.6);
  background: linear-gradient(135deg, rgba(75, 85, 255, 0.95), rgba(110, 92, 255, 0.95));
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover,
.cta:hover,
a:hover {
  transform: translateY(-1px);
  text-decoration: underline;
}
.btn:focus-visible,
.cta:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(120, 140, 255, 0.8);
}
.btn-outline:hover {
  background: rgba(120, 140, 255, 0.15);
}
.cta {
  /* secondary CTA style variant could reuse same base but with different tone if needed */
}
ul, li { margin: 0; padding: 0; list-style: none; }
ul { display: block; }
li { display: list-item; }

.container {
  width: min(90vw, 1100px);
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(18, 14, 40, 0.38);
  border: 1px solid rgba(110, 125, 255, 0.5);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(93, 107, 255, 0.25);
  color: #e8eaff;
  border: 1px solid rgba(140, 160, 255, 0.5);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fb;
    --bg-2: #e9eaff;
    --text: #0e1220;
    --muted: #5b5b7a;
    --surface: rgba(255,255,255,0.8);
    --surface-2: rgba(255,255,255,0.95);
    --border: rgba(100, 120, 255, 0.25);
    --shadow: 0 6px 16px rgba(0,0,0,0.08);
  }
  body {
    background: linear-gradient(135deg, #f6f7fb 0%, #eef0f7 60%, #e9eaf6 100%);
    color: var(--text);
    background-image:
      radial-gradient(circle at 1px 1px, rgba(130, 110, 255, 0.12) 2px, transparent 3px),
      repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
    background-size: 24px 24px, 100% 100%;
    background-blend-mode: overlay, normal;
  }
  header h1 { color: var(--text); }
  .content { background: rgba(255,255,255,0.8); border-color: rgba(60, 80, 200, 0.6); }
  .image-frame { border-color: rgba(0,0,0,0.15); }
  a, button, .btn, .cta { color: #0b1020; }
  .btn { background: linear-gradient(135deg, #7a8cff, #6b5aff); border-color: rgba(20,40,140,0.6); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

@media print {
  body { background: #fff; color: #000; }
  .content, .image-frame { background: #fff; border: 1px solid #ccc; }
  a, button, .btn, .cta { color: #000; }
}