/* Light reset and base styles */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

:root {
  --bg: #0b0f14;          /* dark cyberpunk backdrop */
  --surface: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.25);
  --red: #ff2b2b;
  --fg: #e9e9e9;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--fg);
  background: var(--bg);
  /* white polka dots background on dark base */
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 2px, transparent 2px);
  background-size: 18px 18px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero / main content */
main {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 20px 12px;
}

/* Frosted glass card framing the image (hero) */
.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  /* subtle cyber glow */
  border-top: 1px solid rgba(255, 0, 0, .25);
  border-bottom: 1px solid rgba(0, 255, 128, .15);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  /* image sits inside frosted glass frame */
}

/* Footer with a prominent CTA
   keeps layout responsive for both mobile and desktop */
footer {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #d7d7d7;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
}

/* Product ad CTA styled as a pill button inside a frosted chip */
.product-ad {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-ad h3 {
  font-size: 0.95rem;
  margin: 0;
  color: #ff4d4d; /* red accent */
  letter-spacing: .2px;
  font-weight: 700;
}

/* CTA link styled as a prominent button */
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 14px rgba(255,0,0,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255,0,0,.8);
}
.product-ad a:focus-visible {
  outline: 3px solid #ffdcdc;
  outline-offset: 2px;
}

/* Footer text color */
footer p { margin: 0; color: #c6c6c6; }

/* Accessibility: focus for general interactive elements */
a:focus-visible {
  outline: 3px solid #ffdcdc;
  outline-offset: 2px;
}

/* Small screens tweaks (mobile-first) */
@media (min-width: 600px) {
  main { padding: 40px 0; }
  .image-frame { padding: 20px; }
  .image-frame img { border-radius: 14px; }
}
