/* Light reset & CSS variables */
:root {
  --bg-deep: #0b0f1e;
  --bg-star: rgba(255, 255, 255, 0.9);
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --text: #eae6d2;
  --muted: #cdbf8a;
  --gold: #ffd36b;
  --gold-dark: #e6b83b;
  --glass-border: rgba(255, 255, 255, 0.28);
}

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

/* Galaxy starscape background (mobile-first) */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, #0a0f24 0%, #0b0f1e 60%, #0a0f24 100%);
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* simple indigo galaxy star field */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.95) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 60%, rgba(255,255,255,.85) 0 1px, transparent 1px),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.75) 0 1px, transparent 1px),
    radial-gradient(circle at 35% 75%, rgba(255,255,255,.65) 0 1px, transparent 1px);
  background-size: 2px 2px, 2px 2px, 2px 2px, 2px 2px;
  background-position: 0 0, 40px 60px, 80px 20px, 20px 100px;
  opacity: .65;
  mix-blend-mode: screen;
  filter: saturate(1.2);
}

/* Layout sections as glassy cyberpunk pieces */
header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 1rem;
}
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 211, 107, 0.9);
  letter-spacing: .2px;
}
main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  outline: 0;
}
footer {
  text-align: center;
  padding: 1.75rem 1rem 2rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.product-ad {
  display: block;
  width: min(92%, 720px);
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(8, 8, 24, 0.48);
  border: 1px solid var(--glass-border);
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 { margin: 0 0 .4rem; color: var(--gold); font-size: 1.15rem; }
.product-ad p { margin: 0.25rem 0 0; color: #f6eaa6; }
.product-ad a {
  display: inline-block;
  padding: .7rem 1.15rem;
  margin-top: .6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 214, 79, 0.95), rgba(212, 175, 55, 0.95));
  color: #04101f;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 14px rgba(212,175,55,.8);
}
.product-ad a:hover { transform: translateY(-1px); }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Small-screen polish for glow and scale */
@media (min-width: 600px) {
  header { padding: 1.75rem 1.25rem; }
  header h1 { font-size: 2rem; }
  .image-frame { width: min(86vw, 780px); }
}
@media (min-width: 900px) {
  .image-frame { width: 820px; }
  .product-ad { width: 780px; }
}