/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

/* Theme variables */
:root {
  --bg: #0b1020;
  --navy: #0b1a2b;
  --text: #e8f0ff;
  --muted: rgba(232,240,255,.75);
  --glass: rgba(14, 22, 40, 0.65);
  --border: rgba(255,255,255,.18);
  --primary: #00e5ff;
  --accent: #ff2d72;
}

/* Global styles and red galaxy starscape background (mobile-first) */
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.4;
  background: var(--bg);
  /* Red galaxy starscape with faint stars */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,0,0,.35) 1px, transparent 1.5px),
    radial-gradient(circle at 65% 40%, rgba(255,255,255,.9) 1px, transparent 1.5px),
    radial-gradient(circle at 40% 75%, rgba(0,180,255,.6) 1px, transparent 1.5px),
    radial-gradient(circle at 90% 15%, rgba(255,90,0,.6) 1px, transparent 1.5px),
    linear-gradient(#050817, #040b1d);
  background-size: 2px 2px, 2px 2px, 2px 2px, 2px 2px, 100% 100%;
  background-blend-mode: screen, screen, screen, screen, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  min-height: 100dvh;
}

/* Hero header (clear, prominent title) */
header {
  min-height: 44vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(2,6,25,.6), rgba(2,6,25,.2) 60%, transparent);
}
header h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: .5px;
  color: #eaf6ff;
  text-shadow: 0 0 8px rgba(0,255,255,.8);
}
header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 20px;
  background: radial-gradient(circle at 50% 0, rgba(0,255,255,.25), transparent 40%);
  pointer-events: none;
  opacity: .8;
  filter: saturate(1.2);
}

/* Main content – frosted glass frame around the image (cyberpunk vibe) */
main {
  padding: 1.5rem 1rem 2rem;
  display: grid;
  justify-items: center;
}
.image-frame {
  width: min(92%, 860px);
  background: rgba(14, 22, 44, 0.6);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
@media (min-width: 768px) {
  main { padding: 2.5rem 1rem 3rem; }
  .image-frame { padding: 18px; }
}

/* Footer with featured product ad (CTA) */
footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
}
.product-ad {
  display: inline-block;
  background: rgba(8,14,34,.65);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: .95rem;
  color: #e8f5ff;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  padding: .5rem .95rem;
  border-radius: 999px;
  display: inline-block;
  font-weight: 700;
  color: #04101f;
  background: linear-gradient(135deg, #00e5ff 0%, #7a00ff 100%);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:focus-visible { outline: 3px solid #9ae6ff; outline-offset: 2px; border-radius: 999px; }

/* Footer caption */
footer p { margin: .5rem 0 0; font-size: .92rem; color: rgba(234,246,255,.75); }

/* Accessibility: focus ring for any interactive elements */
:focus-visible {
  outline: 2px solid #9ae6ff;
  outline-offset: 2px;
  border-radius: 4px;
}

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