:root{
  --bg: #0b0b14;
  --bg-2: #14121e;
  --text: #e9e1ff;
  --muted: #c7b7e8;
  --accent: #ff2abf;
  --accent-2: #8b5cff;
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.38);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid #fff;
  --focus-offset: 4px;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f6f0fb;
    --bg-2: #ece0f6;
    --text: #1a1430;
    --muted: #5a4a7a;
    --accent: #d7007e;
    --accent-2: #6a3bd8;
    --glass: rgba(0,0,0,0.08);
    --glass-2: rgba(0,0,0,0.14);
    --border: rgba(0,0,0,0.15);
    --shadow: 0 6px 16px rgba(0,0,0,.08);
  }
}

html, body {
  height: 100%;
  padding: 0;
  margin: 0;
}

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue";
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanline/noise */
  background-image:
    linear-gradient(135deg, rgba(120,0,120,.75), rgba(20,0,40,.95) 60%, rgba(120,0,120,.75)),
    radial-gradient(circle at 20% -10%, rgba(255,0,170,.08), transparent 25%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  min-height: 100%;
}

/* Layout containers & typography */
.header, header, main, article, footer, aside, nav {
  display: block;
}

.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 {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.16); }
}

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1;
  color: #fff;
  background: rgba(139,92,255,.9);
  border: 1px solid rgba(255,255,255,.4);
  letter-spacing: .25px;
}

.header {
  padding: 1.75rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.05;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 0 14px rgba(255,0,170,.6);
}

/* Main content & hero area */
main { padding: 1rem; }
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 14px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
main article { display: block; }

.content {
  color: var(--text);
  font-size: clamp(0.95rem, 1rem + 0.25vw, 1.05rem);
  line-height: 1.5;
  margin-top: .5rem;
  padding: .25rem 0 0;
}

a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn.ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(139,92,255,.9);
  color: #fff;
  font-weight: 600;
}
.cta:hover { transform: translateY(-1px); }

ul { list-style: none; padding: 0; margin: 0; }
li + li { margin-top: .5rem; }

/* Footer / ads / sections */
.product-ad {
  padding: .75rem;
  margin: .75rem 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-ad a { display: flex; align-items: center; padding: .6rem 1rem; color: #fff; text-decoration: none; border-radius: var(--radius-sm); }
.product-ad a:hover { text-decoration: underline; background: rgba(255,255,255,.12); }
.product-ad p { margin: 0; font-weight: 600; }

.sponsored-page {
  padding: .75rem;
  margin: .25rem 0 0;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.35);
  border-radius: var(--radius);
}
.sponsored-page a { display: block; padding: .6rem 1rem; color: #fff; text-decoration: none; }
.sponsored-page a:hover { text-decoration: underline; }

footer p { text-align: center; padding: .75rem 0 1.25rem; color: var(--muted); }

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

@media (min-width: 768px){
  .container { padding-inline: 2rem; }
}

/* Navigation-ish helpers (if added later) */
nav { margin: 0 auto; padding: 0.75rem 0; }

/* Image frame helper for accessibility on image-only pages */
.image-frame:focus-within { outline: 2px solid #fff; outline-offset: 4px; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .image-frame { border: 1px solid #ccc; }
  a, .btn, .cta { color: #000; text-decoration: underline; }
}
