:root {
  --bg: #0a001a;
  --bg-2: #0b0b1a;
  --text: #e9e6ff;
  --muted: #cbd5e1;
  --accent: #ff08f0;       /* fuchsia neon */
  --accent-2: #a7ff00;     /* chartreuse */
  --card: rgba(15, 0, 25, 0.42);
  --card-border: rgba(255, 0, 255, 0.28);
  --glass: rgba(10, 0, 20, 0.32);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --focus: 0 0 0 3px rgba(0,255,170,.65);
  --container: clamp(640px, 90vw, 1100px);
  --blur: 12px;
}

/* Base reset */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

/* Layered, performant background: gradient + subtle scanlines + neon accents */
html {
  background-color: #000;
  background-image:
    linear-gradient(135deg, rgba(20,0,40,.92) 0%, rgba(0,0,0,.96) 60%),
    radial-gradient(circle at 15% 0%, rgba(255,0,170,.15), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(0,255,128,.14), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  color-scheme: dark;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page body */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  font-size: clamp(14px, 0.9rem + 0.6vw, 18px);
  line-height: 1.5;
  min-height: 100dvh;
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 1rem;
  -webkit-tap-highlight-color: transparent;
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

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

/* Glass/frosted panels with fallback */
header,
main,
footer,
aside,
.article,
section,
.article > .content,
.product-ad {
  background: var(--glass);
  border: 1px solid rgba(255, 0, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
header, nav { display: block; }

/* Fallback for environments without backdrop-filter */
@supports not (backdrop-filter: blur(var(--blur))) {
  header,
  main,
  footer,
  aside,
  .card {
    background: rgba(15, 0, 25, 0.7);
    border: 1px solid rgba(255, 0, 255, 0.4);
  }
}

/* Header typography and structure */
header {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  margin: 1rem auto;
}
header h1 {
  font-size: clamp(1.4rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  color: #fff;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.85rem, 0.6rem + 0.6vw, 1rem);
  margin: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: .4em .8em;
  border-radius: 8px;
  border: 1px solid rgba(255,0,255,.35);
  background: linear-gradient(135deg, rgba(255,0,255,.25), rgba(0,255,128,.15));
}
nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,0,255,.35), rgba(0,255,128,.25));
}
@media (min-width: 720px) {
  header { padding: 1.2rem 1.25rem; }
}

/* Hero image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(180, 70, 200, .4);
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
  margin: 0.5rem 0 1rem;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.05);
}
.image-frame img:hover {
  transform: scale(1.01);
  transition: transform .3s ease;
}

/* Main content styling */
main {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
article {
  display: block;
  padding: 0;
}
article h2, article h3, article h4 {
  margin: 0.75rem 0 0.25rem;
  color: #fff;
}
article p {
  color: #e9eaff;
  margin: 0.4rem 0 0.9rem;
}
blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  color: #f4f0ff;
  background: rgba(0,0,0,.25);
  border-radius: 6px;
}
ul, ol {
  margin: 0.6rem 0 0.9rem;
  padding-left: 1.25rem;
  color: #e9eaff;
}
li { margin: 0.25rem 0; }

/* Inline content container (for potential .content usage) */
.content {
  color: var(--text);
  line-height: 1.6;
  padding: 0.25rem 0;
}

/* Action elements (buttons/links) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
a { color: #fff; }
button { background: #0000; }

/* Primary CTA button style */
.btn {
  display: inline-block;
  padding: .6em 1.1em;
  background: linear-gradient(135deg, rgba(255,0,255,.92), rgba(0,255,128,.92));
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
.btn:active { transform: translateY(0); }

.cta {
  display: inline-block;
  padding: .6em .95em;
  background: transparent;
  border: 1px solid rgba(0,255,170,.8);
  color: #eafff2;
}
.cta:hover { background: rgba(0,255,170,.15); }

/* Outline variant example for links/buttons */
a.outline,
.btn.outline,
.cta.outline {
  background: transparent;
  border: 1px solid rgba(0,255,170,.8);
  color: #eafff2;
}
a.outline:hover,
.btn.outline:hover,
.cta.outline:hover { background: rgba(0,255,170,.15); }

/* Focus states for accessibility (keyboard users) */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,255,170,.8);
  outline-offset: 2px;
}

/* Lists styling with high-contrast accents on hover/focus */
li:focus-within { color: #fff; }

/* Product/ad/footer styling using glass panels */
.product-ad, .sponsored-page {
  display: block;
  text-align: left;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .6rem;
}
.product-ad p, .sponsored-page p {
  margin: 0;
  font-weight: 600;
}
footer {
  margin: 1rem auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  footer {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sponsored-page {
  text-align: center;
}

/* Image helper utility (optional) */
.image-frame--wide { aspect-ratio: 21/9; }

/* Utility small tweaks for WCAG AA contrast targets on glass */
@media (prefers-color-scheme: dark) {
  ::selection { background: rgba(0,255,170,.25); color: #fff; }
}

/* Print styles for readability (basic) */
@media print {
  body { background: #fff; color: #000; padding: 0; }
  header, main, footer { background: #fff; border: none; border-radius: 0; box-shadow: none; }
  a { text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
  
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}