*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg-blue: #0b1020;
  --blue-500: #2da0ff;
  --blue-600: #0c6bd8;
  --blue-700: #0a3a78;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.25);
  --coral: #FF6F61;
  --coral-dark: #e45a4a;
  --text: #eaf7ff;
  --shadow: rgba(0, 0, 0, 0.4);
}

html, body {
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: #0b1020;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 90%, rgba(255, 112, 96, 0.28) 0 25%, transparent 25%),
    radial-gradient(circle at 60% 95%, rgba(255, 138, 75, 0.28) 0 25%, transparent 25%),
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.0) 60%);
  background-blend-mode: overlay, overlay, normal, normal;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  justify-items: center;
  padding: 1rem;
  text-shadow: 0 0 0 transparent;
}

/* Coral wave overlay for a cyberpunk coral horizon */
body::before {
  content: "";
  position: fixed;
  left: -5vw;
  right: -5vw;
  bottom: -15vh;
  height: 40vh;
  background: radial-gradient(circle at 30% 40%, rgba(255, 90, 70, 0.35) 0 40px, transparent 40px),
              radial-gradient(circle at 70% 60%, rgba(255, 140, 120, 0.25) 0 50px, transparent 50px);
  background-repeat: repeat-x;
  filter: blur(0.6px);
  opacity: 0.85;
  pointer-events: none;
  animation: drift 12s linear infinite;
  mix-blend-mode: screen;
}
@keyframes drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(-40px); }
  100% { transform: translateX(0); }
}

main {
  width: min(100%, 1100px);
  display: grid;
  place-items: center;
  padding: 1rem 1rem 0;
  gap: 1.25rem;
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: 92vw;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(30, 70, 120, 0.45);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.3s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

footer {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.25rem 0 2rem;
  margin-top: 0.5rem;
  /* subtle glass footer halo */
}

.product-ad {
  width: min(92vw, 640px);
  background: rgba(15, 60, 120, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 1rem 1rem 0.9rem;
  display: grid;
  gap: 0.6rem;
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.product-ad h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #eaf6ff;
}
.product-ad a {
  display: inline-block;
  text-decoration: none;
  outline: none;
}
.product-ad a:focus-visible {
  outline: 3px solid #7bdfff;
  outline-offset: 2px;
}
.product-ad a p {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e88ff, #0056cc);
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 14px rgba(0, 120, 255, 0.6);
}
.product-ad a p:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.product-ad p {
  margin: 0;
  color: #e9f4ff;
  font-size: .95rem;
  opacity: 0.95;
}
footer p {
  text-align: center;
  color: rgba(235, 255, 255, 0.8);
  font-size: .9rem;
  margin-top: 6px;
  letter-spacing: .4px;
}

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

/* Mobile-first responsiveness */
@media (min-width: 600px) {
  main { padding: 1.75rem 1rem 0; }
  .image-frame { width: min(92%, 740px); aspect-ratio: 16 / 9; }
}
@media (min-width: 900px) {
  .image-frame { width: 860px; }
  .product-ad { padding: 1.25rem 1.25rem 0.75rem; }
  footer { padding: 1.25rem 0 2rem; }
  footer p { font-size: 0.95rem; }
}