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

:root {
  --bg: #0b1020;
  --text: #eaf2ff;
  --muted: #a9caff;
  --blue: #1e90ff;
  --blue-dark: #0b3a7a;
  --gold: #d4af37;
  --glass: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
}

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Gold polka dots background */
  background-image: radial-gradient(circle at 2px 2px, var(--gold) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: 60vh;
}

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  display: grid;
}

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

footer {
  text-align: center;
  padding: 1.25rem 1rem 2rem;
  color: #e7efff;
  background: linear-gradient(to bottom, rgba(8,14,48,.6), rgba(8,14,48,.2) 60%, transparent);
}

.product-ad {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(2, 14, 60, 0.55);
  border: 1px solid rgba(100, 180, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 0.75rem 0;
}

.product-ad h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #bfe0ff;
}

.product-ad a { text-decoration: none; }

.product-ad a p {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1563ff, #1e40ff);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  transition: transform .15s ease;
}

.product-ad a:hover p, .product-ad a:focus-visible p {
  background: linear-gradient(135deg, #1a53ff, #0b46d8);
  transform: translateY(-1px);
}

.product-ad a:focus-visible {
  outline: 3px solid #1e90ff;
  outline-offset: 2px;
  border-radius: 999px;
}

footer p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

@media (min-width: 700px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 24px; padding: 0.75rem; }
}

@media (min-width: 1024px) {
  body { font-size: 16px; }
  .image-frame { transform: scale(1.02); }
}