/* Light reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --pink: #ff2e9f;
  --pink-dark: #e01887;
  --bg-dark: #000;
  --glass: rgba(255,255,255,.14);
  --glass-dark: rgba(0,0,0,.25);
  --shadow: 0 12px 40px rgba(0,0,0,.65);
  --radius: 16px;
  --focus: 0 0 0 3px rgba(255, 0, 160, .6);
}
* { margin: 0; padding: 0; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #f8e9f4;
  line-height: 1.4;
  background: 
    radial-gradient(circle at 15% -10%, rgba(255,0,180,.15), transparent 25%),
    radial-gradient(circle at 90% 0%, rgba(255,0,180,.15), transparent 28%),
    linear-gradient(135deg, #000 0%, #0a0a12 40%, #000 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */
main {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: block;
}

.image-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05);
}

/* Frosted-glass accent over the image (subtle hacker glow) */
.image-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.25), transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 1;
}
.image-frame::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px; right: 10px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,0,180,.8), transparent);
  filter: saturate(1.5);
  z-index: 2;
  opacity: .8;
}

/* Footer with frosted-ad block */
footer {
  margin-top: auto;
  padding: 1rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.25));
  border-top: 1px solid rgba(255,255,255,.08);
}

.product-ad {
  background: rgba(14, 1, 25, 0.55);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  text-align: center;
  max-width: 720px;
  width: 90%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffd6ea;
  margin-bottom: 0.25rem;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  margin-top: 0.25rem;
}
.product-ad a > p {
  margin: 0;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2eaa, #ff2e7a);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s ease;
}
.product-ad a:hover > p {
  transform: translateY(-1px);
}
.product-ad a:focus-visible > p {
  outline: none;
  box-shadow: var(--focus);
}
p { color: #f3d7e7; }

/* Focus visibility for links generally */
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* Responsive: mobile-first scaling */
@media (min-width: 600px) {
  main { padding: 3rem 1.5rem; }
  .image-frame { border-radius: 24px; }
  .product-ad { padding: 1rem 1.25rem; }
}
@media (min-width: 1024px) {
  main { width: 100%; padding: 3rem; }
  .image-frame { max-width: 980px; margin-top: 4rem; }
}