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

:root {
  --indigo: #4b5bd5;
  --maroon: #800000;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #e9e7ff;
  --glow: 0 0 22px rgba(128, 0, 0, 0.8);
}

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--indigo);
  /* Indigo polka dots background */
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.25) 2px, transparent 2px);
  background-size: 16px 16px;
  min-height: 100vh;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 60vh;
}

/* Frosted glass hero frame around the image */
.image-frame {
  width: min(92vw, 900px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 0.5rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* subtle cyberpunk glow in maroon family */
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.25) inset,
    0 18px 60px rgba(128,0,0,0.75),
    0 0 120px rgba(128,0,0,0.45);
}

/* Image scales nicely on all screens */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Neon maroon accent glow edge (hacker vibe) */
.image-frame:after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(128,0,0,.25), rgba(0,0,0,0) 40%),
              linear-gradient(315deg, rgba(128,0,0,.25), rgba(0,0,0,0) 40%);
  mix-blend-mode: screen;
  filter: saturate(1.2);
  z-index: 0;
  opacity: 0.9;
}

/* Footer + product ad as frosted glass card */
footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: rgba(230, 230, 255, 0.95);
}

.product-ad {
  margin: 0 auto 1rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}

.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f8eaff;
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #7a001a, #5a0010);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.product-ad a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.product-ad a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

footer p {
  margin: 0.25rem 0 0;
  color: rgba(230, 230, 255, 0.9);
  font-size: 0.92rem;
}

/* Mobile-first: stack content; expand on larger screens */
@media (min-width: 768px) {
  main { padding-top: 3rem; padding-bottom: 2rem; }

  .image-frame {
    width: min(1000px, 88vw);
  }

  .product-ad {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
  }

  .product-ad h3 { font-size: 1.15rem; }
}
