/* Base Palette & Utilities */
:root {
  --bg: #1a0050;
  --bg-2: #0a0038;
  --text: #eaf1ff;
  --muted: #c9c4e8;
  --accent: #e6ff1a;
  --accent-2: #ffd800;
  --surface: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --focus: 2px solid rgba(234, 255, 0, 0.9);
}

*,
*::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", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(60,0,110,0.92) 0%, rgba(12,0,40,0.92) 60%, rgba(60,0,110,0.92) 100%), no-repeat;
  min-height: 100dvh;
  isolation: isolate;
  position: relative;
  overflow-x: hidden;
}

/* Layered background: subtle scanlines / noise (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.05) 0 20%, transparent 20%),
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(234, 255, 0, 0.25);
  color: #0a0a0a;
  border: 1px solid rgba(234, 255, 0, 0.55);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: #0b0b0f;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.25), 0 6px 16px rgba(0,0,0,0.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Glass panels for sections */
header, main, footer, aside, nav, article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
header { padding: 1.25rem; }
main { padding: 1.25rem; }
footer { padding: 1.25rem; display: grid; gap: .75rem; }
nav { display: block; }

/* Typography & hero structure */
h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
  line-height: 1.08;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}
p { margin: 0 0 .75rem; color: var(--muted); line-height: 1.5; }

/* Content area */
.content { padding: .75rem 0 0; }

/* Links & buttons */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: 0 0 0 0 transparent;
  border: none;
  outline: var(--focus);
}
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus { text-decoration: underline; color: var(--accent-2); }

/* Primary / secondary buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: linear-gradient(to bottom right, rgba(232,255,0,1), rgba(232,255,0,0.85));
  color: #0b0b0b;
  font-weight: 700;
  text-align: center;
}
.btn.secondary {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Images and glass enhancements within content */
.content img { max-width: 100%; height: auto; display: block; border-radius: 10px; }

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

/* Footer sections styling for ads / promos */
.product-ad a, .sponsored-page a {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.32);
  color: var(--text);
  text-align: center;
}
.product-ad a:hover, .sponsored-page a:hover {
  text-decoration: underline;
  color: var(--accent-2);
}
.product-ad p, .sponsored-page p { margin: 0; }

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

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