/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

:root {
  --card: rgba(255,255,255,.08);
  --glass: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.25);
  --text: #e8e8f0;
  --muted: #b6b6c7;
  --mag: #ff2bd6;
  --mag2: #d100d6;
  --shadow: 0 8px 28px rgba(0,0,0,.4);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: #0b1020;
  /* Silver galaxy starscape backdrop */
  background-image:
    radial-gradient(circle at 15% 18%, rgba(190,210,255,.9) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(180,180,255,.6) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 85%, rgba(255,255,255,.9) 0 1px, transparent 1px);
  background-size: 2px 2px, 2px 2px, 3px 3px;
  background-repeat: repeat, repeat, repeat;
  background-attachment: fixed;
  isolation: isolate;
}

/* Subtle vignette for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.60) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Layout */
main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  min-height: calc(100vh - 120px);
}

.image-frame {
  width: min(92vw, 760px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  transition: transform .25s ease;
}
.image-frame:hover { transform: translateY(-2px); }

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  image-rendering: -webkit-optimize-contrast;
}

/* Footer / ad area */
footer {
  margin-top: auto;
  padding: 2rem 1rem;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.15);
  color: var(--text);
}

.product-ad {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  width: min(92vw, 480px);
}

.product-ad h3 {
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
  text-shadow: 0 0 8px rgba(255,0,210,.8);
}
.product-ad p { margin: 0; color: #fff; font-weight: 600; }
.product-ad a {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,0,255,.95), rgba(128,0,128,.95));
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.6);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,0,255,.6); }
.product-ad a:focus-visible { outline: 3px solid #7a7aff; outline-offset: 2px; }

/* Basic link focus for accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid #7a7aff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .image-frame { transition: none; }
  .image-frame:hover { transform: none; }
}

/* Desktop tweaks */
@media (min-width: 900px) {
  main { padding: 6rem 2rem; }
  .product-ad { width: 520px; }
}