:root{
  --bg: #0a001a;
  --bg-2: #120028;
  --text: #eaf4ff;
  --muted: #b7bdd6;
  --accent: #ff2db3;
  --accent-2: #ff66cc;
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 10px 28px rgba(0,0,0,.28);
  --radius: 12px;
}
html, body { height: 100%; }
* { box-sizing: border-box; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }

html, body, header, nav, main, article, footer, aside {
  /* ensure predictable rendering order across elements */
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + glow accent */
  background-image:
    linear-gradient(135deg, rgba(255,0,176,.12) 0%, rgba(0,0,0,0) 60%),
    repeating-linear-gradient(to bottom, rgba(255,0,176,.04) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom right, #0a001a 0%, #120028 60%, #0a001a 100%);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

body::before {
  /* subtle glow around edges for cyberpunk vibe */
  content: "";
  position: fixed;
  inset: -2px;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(255,0,170,.25), transparent 40%),
              radial-gradient(circle at 0% 100%, rgba(0,255,170,.15), transparent 40%);
  filter: blur(6px);
  z-index: 0;
}

* { z-index: 1; }

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

header {
  text-align: center;
  padding: 1.25rem 0 0.75rem;
  position: relative;
  z-index: 1;
}
header h1 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  font-size: clamp(1.6rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  color: #fff;
  letter-spacing: .2px;
  text-shadow: 0 2px 14px rgba(255,0,179,.28);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

main { padding: 1rem 0 2rem; }

article {
  max-width: clamp(48rem, 90vw, 72rem);
  margin: 0 auto;
  display: block;
  padding: 0;
  line-height: 1.6;
}

.image-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 1rem auto 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@supports not (backdrop-filter: blur(12px)) {
  .image-frame {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.4);
  }
}

article h1 {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  margin: .5rem 0 0.75rem;
  color: #fff;
}
article h2, article h3 {
  color: #fff;
  margin-top: 1rem;
}
article p {
  color: #e9f0ff;
  margin: .6rem 0;
  line-height: 1.6;
}
article ul, article ol {
  margin: .4rem 0 1rem 1.2rem;
  color: #e9f0ff;
}
article li { margin: .25rem 0; }

.content { padding: 0; }

.product-ad {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(255,0,179,.28);
  border: 1px solid rgba(255,0,179,.65);
  color: #fff;
  text-align: center;
  text-decoration: none;
  margin: .25rem;
  transition: transform .2s ease, background .2s ease;
}
.sponsored-page { display: inline-block; }

footer {
  padding: 1.75rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  justify-items: center;
  align-items: center;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
}
footer p { margin: .25rem 0; }

a, button, .btn, .cta {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  padding: .6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
button, .btn, .cta { background: rgba(255,0,179,.22); border-color: rgba(255,0,179,.66); }
a:hover, button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: rgba(255,0,179,.32);
  border-color: rgba(255,0,179,.86);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, li { color: #e9f0ff; }

.tag {
  display: inline-block;
  padding: .18em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,0,179,.28);
  color: #fff;
  border: 1px solid rgba(255,0,179,.66);
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.38); }
}

@media (min-width: 520px) {
  footer { grid-template-columns: repeat(3, 1fr); justify-items: center; }
  .product-ad, .sponsored-page { justify-self: center; width: min(180px, 28%); }
}

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

@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
}
