/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: #e9e9ff;
  background: #0a0010;
  background-color: #0a0010;
  /* subtle cyber-magenta glow gradient backdrop */
  background-image: radial-gradient(circle at 10% 10%, rgba(255,0,140,.08), transparent 30%),
                    radial-gradient(circle at 90% 70%, rgba(0,255,200,.05), transparent 40%),
                    linear-gradient(135deg, #120017 0%, #0a0010 60%, #02020a 100%);
  background-blend-mode: overlay;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Red-noise texture overlay (mobile-friendly grain) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,0,110,.25) 0 1px, transparent 1px),
    radial-gradient(circle at 6px 6px, rgba(255,0,110,.15) 0 2px, transparent 2px),
    radial-gradient(circle at 12px 4px, rgba(255,0,110,.12) 0 2px, transparent 2px);
  background-size: 8px 8px, 8px 8px, 8px 8px;
  opacity: .25;
  mix-blend-mode: overlay;
  pointer-events: none;
  filter: hue-rotate(-15deg) saturate(1.1);
  animation: grain 6s steps(10) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  100% { transform: translate(-2px,-2px); }
}

/* Frosted glass utilities */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,0,255,.6);
  border-radius: 14px;
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}

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

/* Hero image frame with frosted glass look and neon border */
.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,0,255,.75);
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: block;
  isolation: isolate;
  transition: transform .3s ease;
}
.image-frame:focus-within { outline: none; box-shadow: 0 0 0 2px rgba(255,0,255,.8), 0 20px 60px rgba(0,0,0,.5); }
.image-frame:hover { transform: scale(1.01); }

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

/* Glass sheen overlay for the frame */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,0,255,.08) 40%, rgba(0,0,0,.0) 70%);
  pointer-events: none;
  opacity: .25;
  mix-blend-mode: overlay;
}

/* Focus ring for accessibility when tabbing the image */
.image-frame:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 2px; }

/* Footer and product card */
footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: #e7d8ff;
}
.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,0,255,.6);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 0.75rem auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.product-ad h3 {
  margin: 0 0 .5rem;
  font-size: .95rem;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2adf 0%, #ff0066 100%);
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 16px rgba(255,0,255,.75);
}
.product-ad a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 0 0 6px rgba(255,0,255,.8); }

/* Footer copyright text */
footer p { margin: 0; opacity: .8; }

/* Responsive adjustments */
@media (min-width: 768px) {
  main { padding: 6rem 2rem 3rem; }
  .image-frame { max-width: 980px; }
}
@media (min-width: 1024px) {
  main { padding: 6rem 0 3rem; }
  .image-frame { border-radius: 22px; }
  .product-ad { font-size: 1.05rem; }
}

/* Accessibility helpers for focus on links/buttons if user navigates by keyboard */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }