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

html, body { height: 100%; margin: 0; padding: 0; }

:root {
  --coral: #ff6b6b;
  --coral-dark: #e65a57;
  --text: #e7e7ea;
  --muted: #b9c3ce;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --cyan: #00e5ff;
  --magenta: #ff4d9a;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #0b0f1a;
  background-image:
    radial-gradient(circle at 10% 12%, rgba(255,255,255,.9) 0 2px, transparent 2px),
    radial-gradient(circle at 30% 40%, rgba(180,210,255,.8) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(160,190,255,.6) 0 2px, transparent 2px),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,.8) 0 2px, transparent 2px),
    linear-gradient(#0b0f1a 0%, #0b0f1a 60%, #060913 100%);
  background-size: 120px 120px, 160px 160px, 180px 180px, 220px 220px, 100% 100%;
  background-attachment: fixed;
  min-height: 100%;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 60vh;
}

.image-frame {
  position: relative;
  width: min(94%, 1100px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border-radius: 20px;
  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 20px 60px rgba(0,0,0,.6);
  overflow: hidden;
}

.image-frame::after {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
}

.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin: 0 auto;
  padding: .75rem 1rem;
  max-width: 420px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}

.product-ad h3 { margin: 0; color: var(--coral); font-size: 1.1rem; letter-spacing: .5px; }

.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255,102,102,.6);
}
.product-ad a:hover p { background: #ff8585; }

footer p { margin-top: .5rem; font-size: .9rem; color: var(--muted); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (min-width: 768px) {
  main { padding: 3rem; }
  .image-frame { width: 70%; min-width: 520px; }
  .product-ad { align-self: center; }
  footer { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}