/* Reset & base */ 
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg-dark: #0b2b63;
  --bg-light: #1e6aff;
  --green: #39ff82;
  --green-dark: #2bd17c;
  --glass: rgba(255, 255, 255, .08);
  --text: #eafff5;
  --text-dim: #b6ffd3;
}

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background-color: var(--bg-dark);
  /* Blue checkerboard background (mobile-first, subtle on small screens) */
  background-image:
    linear-gradient(45deg, rgba(30, 140, 255, .25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(30, 140, 255, .25) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(30, 140, 255, .25) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(30, 140, 255, .25) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 160px);
}

.image-frame {
  position: relative;
  width: min(92vw, 720px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(0, 255, 180, .6);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,255,180,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  /* subtle neon glow around the frame (frosted glass feel) */
  box-shadow: 0 0 28px rgba(0,255,180,.6);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Frosted glass vibe on the frame edge for cyberpunk feel */
.image-frame { outline: 1px solid rgba(0, 255, 180, .4); }

/* Footer / Ad card (prominent CTA) */
footer {
  text-align: center;
  padding: 1.75rem 1rem 2.5rem;
}
.product-ad {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 255, 178, .6);
  margin-bottom: .75rem;
  transition: transform .25s ease;
}
.product-ad:hover { transform: translateY(-2px); }

.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  letter-spacing: .3px;
}
.product-ad a {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #062c1c;
  /* neon green CTA */
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.5), 0 0 0 2px rgba(57,255,130,.6) inset;
}
.product-ad a:focus {
  outline: 3px solid #00ffd0;
  outline-offset: 2px;
}
footer p {
  margin: .4rem 0 0;
  font-size: .9rem;
  color: var(--text-dim);
}

/* Accessibility helpers */
:focus-visible { outline: 3px solid #00ffd0; outline-offset: 2px; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 600px) {
  main { padding: 3rem 1.5rem; min-height: calc(100vh - 120px); }
  .image-frame { width: min(86vw, 860px); }
}
@media (min-width: 1024px) {
  :root {
    --bg-dark: #0a2e63;
  }
  body { background-position: 0 0, 0 20px, 20px -20px, -20px 0; }
  .image-frame { border-radius: 18px; }
  .product-ad { padding: .8rem 1.2rem; }
  .product-ad a { padding: .65rem 1.15rem; font-size: 1rem; }
}