/* Global reset & color system */
:root{
  --bg: #0b0b1a;
  --violet: #7a4dff;
  --pink: #ff4db8;
  --pink-deep: #ff2d92;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --text: #f7f7ff;
  --text-soft: rgba(247,247,255,.85);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }

/* Light reset for mobile-first, accessible contrast */
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
  padding: 1rem;
  /* violet geometric background */
  background-image:
    radial-gradient(circle at 15% 10%, rgba(160,0,255,.40) 0 22%, transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(255,0,170,.28) 0 26%, transparent 26%),
    linear-gradient(135deg, rgba(63,0,120,.25), rgba(0,0,0,.0) 40%),
    conic-gradient(from 120deg at 60% 60%, rgba(180,0,255,.14), rgba(255,0,170,.14), rgba(180,0,255,.14), transparent 60%);
  background-blend-mode: screen, screen, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  align-content: start;
  gap: 1rem;
}

/* Layout primitives (mobile-first) */
main { display: grid; place-items: center; padding: 1rem 0; }

/* Frosted glass image frame (hero) */
.image-frame {
  position: relative;
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,.10), rgba(255,0,170,.15) 60%, rgba(0,0,0,.15) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  pointer-events: none;
}

/* Footer & product ad (CTA) */
footer { text-align: center; padding: 0.75rem 0 0.5rem; }

.product-ad {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  align-items: center;
  padding: 0.9rem;
  margin: 1rem auto 0;
  width: min(92%, 720px);
  border-radius: 14px;
  background: rgba(10,0,25,.65);
  border: 1px solid rgba(255,255,255,.25);
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #ffd6fb;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}

/* CTA button (CTA is prominent) */
.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6bd1 0%, #ff3aa0 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 16px rgba(255,0,210,.65);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a > p { margin: 0; padding: 0; color: inherit; }

/* Focus styles for accessibility */
.product-ad a:focus-visible {
  outline: 3px solid #7bd2ff;
  outline-offset: 2px;
}
.product-ad a:hover { transform: translateY(-1px); }

/* Small helper text/footer color */
footer p {
  margin: 0.25rem 0 0;
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
}

/* Responsive tweaks (desktop) */
@media (min-width: 600px) {
  body { padding: 1.5rem; }
  .image-frame { border-radius: 22px; }
}
@media (min-width: 900px) {
  main { padding: 0; }
  .image-frame { width: min(900px, 78vw); }
  .product-ad { width: min(900px, 78vw); }
}