/* Global reset and design tokens */
:root {
  --bg: #0a1020;
  --bg-dots: rgba(124, 58, 237, 0.55);
  --text: #e9e6ff;
  --muted: #c6bfff;
  --violet: #7c3aed;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(170, 140, 250, 0.5);
  --neon: rgba(61, 0, 120, 0.9);
}

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

html, body {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  /* Navy dots pattern background for a hacker vibe */
  background-image: radial-gradient(circle at 1px 1px, rgba(124,58,237,0.55) 2px, transparent 2px);
  background-size: 14px 14px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first, centered hero area */
main {
  display: grid;
  place-items: center;
  min-height: 68vh;
  padding: 4vmin 1rem;
}

/* Frosted glass card around the image to create a cyberpunk holo feel */
.image-frame {
  position: relative;
  width: min(92%, 720px);
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 0 60px rgba(124, 58, 237, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(125%) blur(6px);
  -webkit-backdrop-filter: saturate(125%) blur(6px);
}

/* Subtle neon glow behind the frosted card */
.image-frame::after {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 20px;
  z-index: -1;
  box-shadow: 0 0 40px 6px rgba(124, 58, 237, 0.55);
  pointer-events: none;
  filter: saturate(110%);
}

/* The hero image itself */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(150, 140, 230, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Footer / Product Ad styling (CTA is rendered as a pill button) */
footer {
  padding: 18px 0 28px;
  text-align: center;
  color: var(--muted);
}

.product-ad {
  display: inline-block;
  padding: 12px;
  border-radius: 12px;
  background: rgba(13, 9, 40, 0.6);
  border: 1px solid rgba(170, 140, 250, 0.5);
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.product-ad h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #efeaff;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* CTA button look: the anchor inside the product ad is styled as a pill */
.product-ad a {
  text-decoration: none;
}

.product-ad a p {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #4b009f 100%);
  border: 1px solid rgba(180,160,255,0.55);
  box-shadow: 0 6px 14px rgba(124,58,237,0.6);
  transition: transform 0.2s ease;
}
.product-ad a p:hover {
  transform: translateY(-1px);
}

/* Focus styles for accessibility on keyboard navigation */
a:focus-visible {
  outline: 3px solid #6ae1ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Accessibility: respect users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive tweaks for larger screens (still mobile-first) */
@media (min-width: 640px) {
  main {
    min-height: 72vh;
    padding: 6vmin 2rem;
  }
  .image-frame {
    padding: 1.5rem;
    border-radius: 22px;
  }
  .product-ad {
    padding: 14px;
  }
  .product-ad h3 {
    font-size: 1.05rem;
  }
}

@media (min-width: 1000px) {
  body {
    background-size: 20px 20px;
  }
  .image-frame {
    transform: translateZ(0);
  }
}