:root {
  --bg: #0b0b14;
  --fg: #eaffff;
  --cyan: #00e5ff;
  --magenta: #ff00ff;
  --glass: rgba(0, 255, 255, 0.16);
  --glassBorder: rgba(0, 255, 255, 0.55);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--fg);
  background-color: var(--bg);
  /* magenta dot pattern + cyan accents for hacker vibe */
  background-image:
    radial-gradient(circle, rgba(255,0,255,.9) 1.5px, rgba(255,0,255,0) 1.5px),
    radial-gradient(circle, rgba(0, 230, 255, .20) 1px, rgba(0,0,0,0) 1px);
  background-size: 20px 20px, 40px 40px;
  background-position: 0 0, 0 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

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

/* Frosted glass hero frame around the image */
.image-frame {
  position: relative;
  width: min(92vw, 1100px);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(0, 255, 255, .35);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* The image fills the frame */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Frosted glass overlay to create cyberpunk glass effect on top of the image */
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(0, 255, 255, .55);
  z-index: 2;
  pointer-events: none;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  /* subtle cyan glow over the frame for neon hacker vibe */
  background: linear-gradient(135deg, rgba(0,0,40,.25), rgba(0,255,255,.12));
  mix-blend-mode: screen;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
}

footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: rgba(174, 255, 255, 0.92);
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(0,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Featured product as prominent CTA with cyber theme */
.product-ad h3 {
  margin: 0 0 .5rem;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: .4px;
  text-shadow: 0 0 8px rgba(0,255,255,.8);
  font-size: 1.05rem;
}
.product-ad a {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 230, 255, 0.28);
  color: #eaffff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 255, 0.65);
  box-shadow: 0 0 12px rgba(0,255,255,.55);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  background: rgba(0, 230, 255, 0.42);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
footer p {
  margin-top: .6rem;
  font-size: .9rem;
  color: rgba(170, 255, 255, .88);
}

/* Responsive tweaks - mobile-first then expand */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 180px); }
  .image-frame { width: min(1000px, 70vw); }
  .product-ad h3 { font-size: 1.15rem; }
}
@media (min-width: 1024px) {
  body { background-size: 22px 22px, 75px 75px; }
  main { padding: 4rem 3rem; }
  .image-frame { border-radius: 28px; }
  .image-frame:hover img { transform: scale(1.04); }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}