/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: #e6fffe;
  min-height: 100vh;
  /* Red checkerboard background with turquoise accents (hacker vibe) */
  background-color: #2a0000;
  background-image:
    linear-gradient(45deg, rgba(255,0,0,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,0,0,.25) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.18) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  text-shadow: 0 0 1px rgba(0,0,0,.5);
}

/* Layout */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
  width: 100%;
}
.image-frame {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  position: relative;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05) hue-rotate(-6deg) brightness(0.98);
}

/* Footer / ad panel (frosted glass feel) */
footer {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  width: 100%;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.15);
  color: #e6fffe;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  min-width: 220px;
  width: min(92%, 520px);
  box-shadow: inset 0 0 26px rgba(0,0,0,.25);
}
.product-ad h3 {
  font-size: 1.05rem;
  color: #2ff5d0;
  margin-bottom: .25rem;
  text-shadow: 0 0 8px rgba(47,245,208,.5);
}
.product-ad a {
  display: inline-block;
  padding: 12px 22px;
  margin-top: 6px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #041010;
  background: linear-gradient(135deg, rgba(45,255,240,.9), rgba(1,180,180,.9));
  border: 1px solid rgba(255,255,255,.8);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}
.product-ad a:focus-visible {
  outline: 3px solid #2af7e6;
  outline-offset: 2px;
}
.product-ad p {
  margin: 2px 0 0;
  color: #2ff5d0;
  font-weight: 800;
}
p { margin: 0; }

/* Accessibility helpers (focus for keyboard users) */
:focus-visible {
  outline: 3px solid #2af7e6;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main {
    min-height: calc(100vh - 120px);
    padding: 3rem 2rem;
  }
  .image-frame { border-radius: 20px; }
  footer { padding: 2rem; }
}
@media (min-width: 1024px) {
  body { filter: saturate(1.05); }
}