/* Reset & root */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
:root {
  --text: #eafff0;
  --green: #2cff88;
  --green-glow: rgba(0,255,140,.9);
  --glass: rgba(255,255,255,.12);
}
body {
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system;
  background:
    radial-gradient(circle at 20% 0%, rgba(99,102,241,.25) 0 40%, transparent 40%),
    radial-gradient(circle at 85% 8%, rgba(34,197,94,.25) 0 40%, transparent 40%),
    linear-gradient(#0b0a1a 0%, #0a0a1a 60%, #040614 100%);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Layout: mobile-first hero image + glass panel + ad footer */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  width: 100%;
}
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,255,140,.6);
  background: rgba(2,6,23,.45);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) brightness(.98);
}
.image-frame::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(to top, rgba(10,10,25,.92), rgba(10,10,25,.28) 60%, rgba(10,10,25,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
  z-index: 1;
}
.image-frame::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 60% 0%, rgba(0,255,140,.6) 0 18%, transparent 18%),
    radial-gradient(circle at 20% 100%, rgba(0,255,140,.3) 0 18%, transparent 18%);
  filter: saturate(1.3);
  z-index: 0;
  opacity: .9;
  pointer-events: none;
}
.image-frame, .image-frame * { z-index: 1; }

/* Frosted glass container feel around the hero (subtle glow) */
.image-frame { backdrop-filter: saturate(1.05); }

/* Ad/footer styling with a prominent CTA button */
.product-ad {
  display: flex; flex-direction:column; align-items:center;
  gap: .5rem;
  width: min(720px, 92vw);
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(0,255,140,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.product-ad h3 {
  margin: 0; font-size: 1rem; color: #d9ffea;
  text-shadow: 0 0 8px rgba(0,255,140,.5);
}
.product-ad a {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(#042016, #041d14);
  color: #eafff0;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,255,140,.8);
  box-shadow: 0 0 14px rgba(0,255,140,.8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:focus-visible {
  outline: 3px solid #00ffa6;
  outline-offset: 3px;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0,255,140,.95);
}
.product-ad p { margin: 0; }

/* Footer text */
footer {
  padding: 1rem;
  text-align: center;
  color: #a7f5d6;
  font-size: .9rem;
}

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

/* Responsive tweaks: grow frame and ad on larger screens */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 26px; }
}
@media (min-width: 1024px) {
  .image-frame { width: min(720px, 60vw); }
  .product-ad { width: min(720px, 60vw); }
}