:root {
  --coral: #ff6f61;
  --accent: #5bdcff;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #eaf2ff;
  --bg: #0a1a3a;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 20px;
}

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

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

/* Blue polka dots background with a cyberpunk vibe */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 180, 255, 0.45) 2px, transparent 2px);
  background-size: 24px 24px;
  line-height: 1.5;
}

/* Layout: mobile-first, center the hero */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px);
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) + 2px);
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  overflow: hidden;
  position: relative;
}

/* Subtle neon glow to reinforce cyberpunk vibe */
.image-frame::before {
  content: "";
  position: absolute;
  top: -40px; left: -40px;
  right: -40px; bottom: -40px;
  border-radius: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.25), transparent 40%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* The image sits above the frosted frame */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* Footer with a prominent CTA button */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #dbeaff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 12, 30, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  justify-content: center;
  width: max-content;
}

.product-ad h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #d9f0ff;
  letter-spacing: .2px;
  display: inline-block;
}

.product-ad a {
  text-decoration: none;
}

/* CTA styled as a big coral pill button for visibility */
.product-ad a p {
  margin: 0;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--coral);
  transition: transform .2s ease;
  display: inline-block;
}

/* Hover/active states for the CTA to feel tactile */
.product-ad a:hover p { transform: translateY(-1px); }
.product-ad a:active p { transform: translateY(0); }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Accessible color contrast for links inside the ad on focus */
.product-ad a:focus-visible p {
  box-shadow: 0 0 0 4px rgba(91, 220, 255, 0.25);
}

/* Small-screen refinements */
@media (min-width: 640px) {
  main { padding-top: 3rem; padding-bottom: 3rem; }
  .image-frame { width: min(84vw, 860px); }
}

@media (min-width: 1024px) {
  footer { padding: 2rem 0; }
  .product-ad { gap: 1rem; }
  .image-frame { border-radius: calc(var(--radius) + 6px); }
}