/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

:root {
  --bg: #0a0f2a;
  --fg: #e7f0ff;
  --muted: #9fb3ff;
  --mag: #ff00ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
}

html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; color: var(--fg); }

/* Blue-noise textured background (mobile-first, subtle neon glow) */
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  /* layered blue-noise vibe */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 180, 255, .25) 1px, transparent 1px),
    radial-gradient(circle at 3px 5px, rgba(200, 60, 255, .15) 1px, transparent 1px),
    linear-gradient(135deg, rgba(4, 8, 20, .95), rgba(8, 6, 24, .95));
  background-size: 4px 4px, 4px 4px, 100% 100%;
  background-blend-mode: overlay;
  isolation: isolate;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* stronger blue-noise speckles for cyberpunk feel */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(60, 180, 255, .25) 1px, transparent 1px),
    radial-gradient(circle at 2px 6px, rgba(200, 60, 255, .15) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: overlay;
  opacity: .75;
}

/* Layout */
main {
  width: min(92vw, 1080px);
  margin: 6vmin auto;
  display: grid;
  place-items: center;
  padding: 0 1rem;
}

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 255, .7);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, .4),
    0 0 40px rgba(255, 0, 255, .25) inset;
  position: relative;
}

/* Frosted glass look on image holder edge highlight (subtle glow) */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(255, 0, 255, .25);
  mix-blend-mode: screen;
  opacity: .6;
}

/* Image fills frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Footer / CTA region */
footer {
  width: min(92vw, 1080px);
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--fg);
}

/* Product Ad (prominent CTA) */
.product-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .6rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(0,0,0,.3);
  margin: 0 auto 0.75rem;
}

/* Ad header */
.product-ad h3 {
  font-size: .95rem;
  color: #ffe6ff;
  text-shadow: 0 0 6px rgba(255, 0, 255, .6);
  white-space: nowrap;
}

/* Link styles in ad (CTA button look) */
.product-ad a { text-decoration: none; color: inherit; }

/* CTA badge (magenta-neon) */
.product-ad a p {
  font-weight: 700;
  color: #fff;
  padding: .25rem .6rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 0, 255, .95), rgba(0, 180, 255, .95));
  box-shadow: 0 0 14px rgba(255, 0, 255, .8);
  letter-spacing: .2px;
  transition: transform .2s ease;
}
.product-ad a p:hover { transform: scale(1.03); }

/* Caption text under ad (optional small footer note) */
footer p { color: #cbd6ff; font-size: .85rem; margin: .25rem 0 0; }

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

@media (min-width: 768px) {
  main { margin: 8vmin auto; padding: 0; }
  .image-frame { border-radius: 28px; }
  .product-ad h3 { font-size: 1rem; }
}

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