:root {
  --bg: #0b1020;
  --bg-2: #0a1220;
  --text: #eaf4ff;
  --muted: #a6b6d9;
  --accent: #ff2ea6;
  --accent-2: #4cc9ff;

  --surface: rgba(13, 19, 40, 0.72);
  --surface-2: rgba(13, 19, 40, 0.60);
  --border: rgba(120, 140, 255, 0.40);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html, body, header, nav, main, article, footer, aside {
  /* structural defaults retained; specific styling below */
  margin: 0;
  padding: 0;
}

html, body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered background: gradient + blue grid + subtle magenta accents */
  background-image:
    linear-gradient(rgba(120,170,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.25) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(0,180,255,.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,0,180,.15), transparent 40%);
  background-size: 40px 40px, 40px 40px, auto, auto;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-blend-mode: overlay, overlay, normal, normal;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle scanlines/noise overlay for depth */
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.65;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7ff;
    --bg-2: #e8ebff;
    --text: #0b1220;
    --muted: #42507a;
    --surface: rgba(255,255,255,.92);
    --surface-2: rgba(235,235,255,.85);
    --border: rgba(50,60,150,.25);
  }
  body {
    background-image: none;
    background-color: var(--bg);
  }
  body::before { opacity: 0.25; }
}

html:focus-within { outline: none; }

/* Layout scaffolding */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem;
}

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

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

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

/* Section elements to satisfy selectors list */
html, body, header, nav, main, article, footer, aside { display: block; }

/* Header / hero area with glass look */
header {
  padding: 1rem;
  text-align: center;
  max-width: min(1100px, 92%);
  margin: 1rem auto;
  border-radius: var(--radius);
  background: rgba(16,22,52,.28);
  border: 1px solid rgba(120,140,255,.40);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 3rem);
  letter-spacing: .4px;
}

/* Main content and image frame (glass panel) */
main {
  display: block;
  padding: 0;
}

.image-frame {
  width: 100%;
  max-width: 860px;
  margin: 1rem auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  position: relative;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle glow to emphasize cyber vibe */
  filter: saturate(1.05);
  box-shadow: inset 0 0 20px rgba(255,0,180,.15);
}

main article { padding: 0 0 1rem; }

/* Footer with lightweight glass panels for ads */
footer {
  padding: 1rem 0 2rem;
}

.product-ad, .sponsored-page {
  display: inline-block;
  padding: .6rem 1rem;
  margin: .25rem;
  border-radius: 10px;
  background: rgba(12,18,40,.60);
  border: 1px solid rgba(120,120,255,.40);
  text-align: center;
  color: var(--text);
  transition: transform .2s ease;
}
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; display: block; }

.product-ad:hover { transform: translateY(-1px); }
.sponsored-page:hover { transform: translateY(-1px); }

footer p { text-align: center; color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }

/* Utilities */
.container > .grid { gap: .75rem; }

/* Interactive elements (links, buttons) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  padding: .5rem 0.75rem;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease, transform .2s ease, outline-color .15s ease;
}
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border: 1px solid rgba(150,170,255,.55);
  background: linear-gradient(135deg, rgba(0,180,255,.25), rgba(180,0,180,.25));
  color: var(--text);
  border-radius: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #7a00d4);
  border-color: rgba(255,0,180,.6);
}

.cta { font-weight: 600; }

/* Lists */
ul, li { margin: 0; padding: 0; }
ul { padding-left: 1.25rem; }

/* Print styles */
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { background: transparent; }
}
  
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}