/* Minimal CSS reset and mobile-first root styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: #eaffff;
  background-color: #0b0f15;
  /* turquoise dots pattern background */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 255, 210, 0.55) 1px, transparent 1px),
    radial-gradient(circle at 6px 6px, rgba(0, 255, 230, 0.20) 1px, transparent 1px);
  background-size: 12px 12px, 12px 12px;
  background-position: 0 0, 6px 6px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container defaults */
main, footer { width: 100%; }
main { display: block; padding: 24px 16px; }
footer { padding: 16px; text-align: center; border-top: 1px solid rgba(0, 255, 255, 0.25); }

/* Frosted glass hero frame for the image */
.image-frame {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(10, 28, 38, 0.55);
  border: 1px solid rgba(0, 255, 255, 0.25);
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

/* Image inside the frosted frame */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(110%);
}

/* Subtle caption-lite overlay (kept minimal to not rely on HTML content) */
.image-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0) 60%);
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* Footer product ad card with glassy look and accessible focus */
.product-ad {
  display: inline-block;
  text-align: left;
  max-width: 420px;
  width: calc(100% - 20px);
  padding: 16px 18px;
  margin: 12px auto;
  border-radius: 12px;
  background: rgba(2, 12, 16, 0.62);
  border: 1px solid rgba(0, 255, 230, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
  color: #eaffff;
}
.product-ad h3 {
  font-size: 1.05rem;
  margin: 0 0 8px 0;
  letter-spacing: .5px;
  color: #7ff3f3;
}
.product-ad a {
  text-decoration: none;
}
.product-ad a p {
  margin: 0;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  color: #041414;
  background: linear-gradient(135deg, #7ff3f3, #0bd8d0);
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, background .3s ease;
}
.product-ad a p:hover { transform: translateY(-1px); background: linear-gradient(135deg, #9ff7f2, #14c6c0); }
.product-ad a p:focus-visible {
  outline: 2px solid #00ffd6;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .product-ad a p { transition: none; }
}

/* Footer minor text */
footer p { margin: 8px 0 0; font-size: 0.95rem; color: #aef2f2; }

/* Focus treatment for links and interactive elements for accessibility */
a:focus-visible {
  outline: 2px solid #00ffd6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Global link color hint (adjust for contrast) */
a { color: #a8f0f0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Responsive tweaks for larger viewports (desktop and landscape) */
@media (min-width: 640px) {
  main { padding: 40px 24px; }
  .image-frame { margin: 40px auto 20px; border-radius: 22px; }
  footer { padding: 28px 0; }
  .product-ad { display: inline-block; vertical-align: top; margin: 0 0 0 12px; }
  footer { text-align: left; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1024px) {
  body { background-color: #0a0f14; }
  footer { display: grid; grid-template-columns: 1fr auto; align-items: center; justify-content: space-between; text-align: left; padding: 32px 40px; }
  .product-ad { justify-self: start; width: auto; }
}
