/* Global reset & base styles (mobile-first) */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
:root {
  --bg1: #0b0220;
  --bg2: #2a0a4b;
  --bg3: #1a0a2e;
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.22);
  --text: #e9e0f8;
  --muted: #b89aff;
  --accent: #ff1efc;
  --accent2: #e400ff;
  --shadow: 0 8px 28px rgba(0,0,0,.5);
  --focus: 3px solid #a77aff;
}
body {
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: 
    /* stars */
    radial-gradient(circle at 10% 15%, rgba(255,255,255,.9) 0 1px, transparent 1px),
    radial-gradient(circle at 25% 80%, rgba(160,110,255,.8) 0 2px, transparent 2px),
    radial-gradient(circle at 60% 25%, rgba(255,0,255,.6) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.6) 0 1px, transparent 1px),
    linear-gradient(135deg, #0b0220 0%, #2a0a4b 60%, #0b0220 100%);
  background-blend-mode: screen;
  background-attachment: fixed;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  body { align-items: start; padding-top: 2rem; }
}

/* hero / image frame (visual centerpiece) */
.main {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem 1rem;
}
.image-frame {
  width: min(92vw, 1000px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.05);
}
.image-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  pointer-events: none;
}
.image-frame::after {
  content: "";
  position: absolute; left: -20px; right: -20px; top: -20px; bottom: -20px;
  background: radial-gradient(circle at 80% 20%, rgba(255,0,180,.15), transparent 40%);
  pointer-events: none;
  filter: blur(30px);
  z-index: 0;
}

/* footer / product ad with prominent CTA */
footer {
  width: 100%;
  padding: 1.5rem 1rem 2rem;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.45) 60%, rgba(0,0,0,.25));
}
.product-ad {
  width: min(92vw, 860px);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.product-ad h3 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .4px;
}
.product-ad a {
  display: inline-block;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 14px rgba(232,0,255,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(167,122,255,.7); border-color: rgba(255,255,255,.9); }
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(232,0,255,.9); }
footer p {
  margin: 0;
  font-size: .9rem;
  color: #d9c7ff;
  opacity: .95;
}

/* accessibility helpers */
a, button { color: #fff; outline: none; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(167,122,255,.7); border-radius: 6px; }

/* responsive tweaks */
@media (min-width: 640px) {
  .image-frame { border-radius: 28px; }
  .product-ad { padding: 1.15rem 1.6rem; }
}
@media (min-width: 900px) {
  footer { padding: 2rem 0 2.5rem; }
}