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

/* Theme: green polka dots background with red hacker accents, frosted glass panels, cyberpunk vibe */
:root {
  --bg-green: #0a2816;
  --bg-green-dark: #0b2f1a;
  --green-dot: rgba(0, 255, 120, 0.25);
  --text: #eaf7ff;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.22);
  --red: #ff2e2e;
  --red-dark: #d40000;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg-green);
  /* green polka dots background (soft, accessible) */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(0,255,120,0.25) 2px, transparent 3px),
    radial-gradient(circle at 40px 40px, rgba(0,0,0,0.08) 2px, transparent 3px);
  background-size: 60px 60px, 60px 60px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
}

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 6vh 2rem 2rem;
}

.image-frame {
  position: relative;
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.image-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(255, 0, 0, 0.45);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
}

/* Frosted glass feel on page elements nearby (subtle cyberpunk glow) */
.frost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
}

/* Footer / product card (prominent CTA) */
footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
}

.product-ad {
  width: min(92vw, 560px);
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: 0 auto 1rem;
  text-align: center;
  color: #fff;
}

.product-ad h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  line-height: 1.25;
}

/* CTA button inside the product card (neon red hacker vibe) */
.product-ad a { color: inherit; text-decoration: none; display: inline-block; }

.product-ad a > p {
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-weight: 700;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-ad a:hover > p,
.product-ad a:focus-visible > p {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.9);
  outline: none;
}

/* Focus visibility for accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screen friendly tweaks */
@media (min-width: 600px) {
  .image-frame { border-radius: 22px; padding: 1.25rem; }
  .product-ad { padding: 1.25rem; }
}

@media (min-width: 900px) {
  main { padding: 6vh 4rem; }
  .image-frame { aspect-ratio: 16 / 9; }
}