/* Global reset and variables */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: #f8eaff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  /* violet gradient background with pink accents for a hacker vibe */
  background: linear-gradient(135deg, #120a2a 0%, #470a57 40%, #7a0a8a 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first, center hero image with frosted glass frame */
main {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  width: 100%;
}

.image-frame {
  width: min(92vw, 720px);
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  /* subtle neon glow around glass */
  border-right: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08),
              0 20px 40px rgba(214, 0, 118, 0.25);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  /* slight pink tint to match hacker aesthetic */
  filter: saturate(110%);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 0, 170, 0.25), transparent 40%),
              radial-gradient(circle at 0% 0%, rgba(125, 0, 255, 0.15), transparent 40%);
  mix-blend-mode: overlay;
  border-radius: 16px;
  opacity: 0.9;
}

/* Footer with frosted glass product ad and CTA */
footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: rgba(248, 234, 255, 0.95);
}

/* Frosted glass card for the product ad */
.product-ad {
  display: inline-block;
  text-align: center;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: max-content;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.product-ad h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #ffd9f5;
  text-shadow: 0 0 6px rgba(255, 0, 170, 0.6);
}
.product-ad a {
  text-decoration: none;
  color: inherit;
}
.product-ad a p {
  display: inline-block;
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, rgba(255,0,170,0.25), rgba(255,100,180,0.25));
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s ease;
}
.product-ad a p:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(255,0,170,0.6);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(125, 214, 255, 0.9);
  border-radius: 999px;
}
footer p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: rgba(248, 234, 255, 0.85);
  opacity: 0.95;
}

/* Focus for interactive elements outside of the ad (keyboard accessibility) */
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.9);
  border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 2.5rem 1.5rem; }
  .image-frame { width: min(74vw, 860px); padding: 1.25rem; }
}
@media (min-width: 1024px) {
  body { font-size: 1.02rem; }
  footer { padding: 2rem; }
  .image-frame { padding: 1.5rem; }
}