/* Global reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: #fff;
  background-color: #1b0033;
  /* Violet checkerboard pattern */
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.08) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Frosted glass panels and hero frame */
.image-frame {
  width: min(860px, 92%);
  margin: 2rem auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: saturate(1.25) blur(6px);
  -webkit-backdrop-filter: saturate(1.25) blur(6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,.04) 40%, rgba(0,0,0,.18));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Main layout (mobile-first) */
main {
  padding: 1rem;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer and product ad (frosted glass/card feel) */
footer { padding: 1rem; margin-top: auto; }

.product-ad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  width: min(680px, 92%);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(9,0,24,.6);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
}

/* Ad title and CTA styling */
.product-ad h3 {
  font-size: 0.95rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a {
  color: #fff;
  text-decoration: none;
  align-self: flex-start;
}
.product-ad a p {
  margin: 0;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease;
}
.product-ad a:hover p {
  background: rgba(255,255,255,.38);
  transform: translateY(-1px);
}
.product-ad a:focus-visible p {
  outline: none;
  box-shadow: 0 0 0 3px rgba(125,0,255,.65);
}

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

/* Responsive adjustments (desktop / larger screens) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: 720px; }
  .product-ad { flex-direction: row; align-items: center; }
  .product-ad h3 { font-size: 1rem; margin: 0; }
  .product-ad a { margin-left: auto; }
}