/* Minimal reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }

:root {
  --text: #eaf4ff;
  --muted: #a6c7e6;
  --blue: #4aa3ff;
  --blue-dark: #1e4bd4;
  --glass: rgba(12, 24, 60, 0.65);
  --glass-border: rgba(120, 190, 255, 0.55);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
}

/* Red grid paper background (light, responsive grid) */
body {
  color: var(--text);
  background-color: #0a0f1a;
  /* red grid paper: subtle red lines on a dark canvas */
  background-image:
    linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)),
    repeating-linear-gradient(to right, rgba(255,0,0,.25) 0px, rgba(255,0,0,.25) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(to bottom, rgba(255,0,0,.25) 0px, rgba(255,0,0,.25) 1px, transparent 1px, transparent 40px);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout scaffold (mobile-first) */
main { display: grid; place-items: center; padding: 2rem 1rem; }

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(120, 190, 255, 0.45);
  background: rgba(8, 16, 40, 0.6);
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.image-frame:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,0,0,.45); }

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  /* frosted glass overlay effect over the image */
  background: linear-gradient(to bottom right, rgba(255,255,255,.04), rgba(0,0,0,.08));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
  pointer-events: none;
}
.image-frame img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  /* keep image visually sharp with a hint of color shift for cyberpunk vibe */
  filter: saturate(1.05) contrast(1.02);
  position: relative; z-index: 0;
}

/* Frosted glass card feel for content around the image (subtle cyberpunk polish) */
.image-frame,
.image-frame > img { border-radius: 14px; }

/* Footer / CTA area (prominent CTA with hacker-blue palette) */
footer { margin-top: 2rem; padding: 1rem 0 2rem; }

.product-ad {
  text-align: center;
  width: min(92vw, 860px);
  margin: 0 auto 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(6, 12, 40, 0.66);
  border: 1px solid rgba(100, 180, 255, 0.55);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.product-ad h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #dff0ff;
  letter-spacing: .2px;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a6bff 0%, #1e3fff 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(34,112,255,.65);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34,112,255,.8); }
.product-ad a:focus-visible { outline: 3px solid #9bd6ff; outline-offset: 2px; }
.product-ad a p { margin: 0; padding: 0; }

/* Footer caption */
footer p { text-align: center; font-size: .85rem; color: #cfe0fb; margin: .6rem 0 0; }

/* Focusable accessibility for any links/buttons on page */
a:focus-visible, button:focus-visible {
  outline: 3px solid #9bd6ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks (desktop/tablet) */
@media (min-width: 768px) {
  main { padding: 3rem 0; }
  .image-frame { width: min(72vw, 980px); }
  .product-ad { margin-top: 1.5rem; }
  footer p { font-size: .92rem; }
}
