/* Root palette: plasma pink + navy, glassy surfaces, accessible contrasts */
:root {
  --bg: #0b1020;
  --bg-2: #0a1b2a;
  --surface: rgba(18, 28, 54, 0.28);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #e9f0ff;
  --muted: #a6b3d1;
  --accent: #ff3ea6;
  --accent-2: #1e3a8a;
  --ring: 0 0 0 3px rgba(255, 62, 166, 0.65);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 14px;
}

/* Global reset and mobile-first defaults */
html, body, header, nav, main, article, aside, footer {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 0%, rgba(255, 62, 166, .15), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0, 120, 255, .10), transparent 40%),
    linear-gradient(135deg, #050816 0%, #0b1020 40%, #0b1a2b 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, normal, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}
@media (prefers-color-scheme: light) {
  html, body { color: #0a0a0a; background: #f7f7fb; }
  :root { --text: #0b1b2b; --bg: #f7f7fb; --surface: rgba(255,255,255,.75); }
}

/* Layout helpers */
.container {
  width: min(90vw, 1200px);
  margin-inline: auto;
  padding-inline: 0.5rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card { background: var(--surface); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Glass panels (fallback if backdrop-filter unsupported) */
.glass, header, main, article, footer, nav, aside {
  background: rgba(12, 20, 40, 0.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 0.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass, header, main, article, footer, nav, aside {
    background: rgba(12, 20, 40, 0.68);
  }
}

/* Typography & hero hierarchy */
h1, h2 {
  margin: 0 0 .25rem;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem);
  letter-spacing: .2px;
}
h2 {
  font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.75rem);
  color: #eaf3ff;
}
p { margin: 0 0 1rem; color: #e8f0ff; }
.meta { color: var(--muted); font-size: 0.9rem; }

/* Image framing with aspect, border, glow */
.image-frame, .featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.image-frame { aspect-ratio: 16/9; display: block; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area styles */
.content { font-size: clamp(0.95rem, 0.9vw + 0.8rem, 1.05rem); line-height: 1.6; }

/* List and inline visuals */
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Utility components:** .container, .grid, .card, .tag are covered above. */
.tag {
  display:inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  color: #eaffff;
  background: rgba(0,0,0,.25);
}

/* Links & buttons: strong contrast + focus visibility */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; color: #ffd4ea; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Buttons: solid + outline variants; interactive states */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255, 62, 166, 0.95);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(255,62,166,1); }
.btn:active, .cta:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--ring); outline-offset: 2px; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,.05); }

/* Navigation and header layout adjustments for clarity on mobile */
header {
  display: grid;
  gap: .5rem;
  padding: 1rem;
}
nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
nav a { padding: .5rem 0.75rem; border-radius: 6px; }

/* Page scaffolding */
main {
  padding: 1rem 0 2rem;
}
footer { margin-top: 1rem; padding: 1rem; display: grid; gap: 1rem; }

/* Specific sections styling to satisfy selectors in prompt */
.product-ad a, .sponsored-page a { display: block; text-align: center; padding: .75rem; border-radius: 10px; text-decoration: none; color: #fff; background: rgba(30,58,138,.8); border: 1px solid rgba(255,255,255,.4); }
.product-ad a p, .sponsored-page a p { margin: 0; font-weight: 600; }

/* Extra small devices: tighten typography and spacing for compact display */
@media (max-width: 640px) {
  .container { width: min(92vw, 1100px); }
  header { padding: .75rem; }
  .image-frame, .featured-image { border-radius: 10px; }
  .btn, .cta { width: auto; padding: .6rem .9rem; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition: none !important; }
}

/* Print-friendly tweaks (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}