/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; padding: 0; color: #e5e7eb; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue"; min-height: 100vh; display: flex; flex-direction: column;
  /* White checkerboard background (techy, cyberpunk vibe) */
  background-color: #0b0f14;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  /* Subtle glow for hacker-theme ambiance */
  text-shadow: 0 0 0 rgba(0,0,0,0);
  overflow-x: hidden;
}

/* Layout container */
main {
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem;
  flex: 1 0 auto;
}

/* Frosted glass hero frame around the image */
.image-frame {
  width: min(92vw, 780px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 255, 255, 0.15);
  display: grid;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* slight desaturation for gritty cyberpunk vibe */
  filter: saturate(1) contrast(1.05);
}

/* Footer area with frosted glass product card */
footer {
  margin-top: auto;
  padding: 1rem;
  display: grid;
  place-items: center;
  width: 100%;
}

/* Glassy product ad panel */
.product-ad {
  width: min(92vw, 740px);
  padding: 1rem 1.25rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(18, 23, 34, 0.62);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  color: #e9eef7;
}

/* Sub-elements inside the ad */
.product-ad h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: .5px;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
}
.product-ad p {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  color: #041017;
  font-weight: 700;
  background: linear-gradient(135deg, #14b8a6 0%, #6366f1 100%);
  /* Accessible color on light text for CTA */
  color: #f7fbff;
  transition: transform .2s ease;
}
.product-ad p:hover { transform: translateY(-1px); }

/* Focus styles for accessibility (keyboard users) */
a:focus-visible, button:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 2px;
  border-radius: 6px;
}
.product-ad a:focus-visible { outline: 3px solid #7dd3fc; }

/* Typography helpers (optional constants) */
h1, h2, h3, h4 { color: #e5e7eb; }

/* Responsive, mobile-first adjustments */
@media (min-width: 640px) {
  .image-frame { border-radius: 18px; }
  .product-ad { padding: 1.15rem 1.5rem; }
}
@media (min-width: 900px) {
  main { padding: 2.5rem 2rem; }
  .image-frame { width: min(860px, 88vw); }
  .product-ad { padding: 1.25rem 1.75rem; }
}