/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Theme tokens */
:root{
  --bg: #000;
  --mag: #ff00ff;
  --mag-soft: rgba(255,0,255,.25);
  --glass: rgba(255,255,255,.08);
  --fg: #eaeaf0;
  --fg-dim: #b9b9c9;
  --shadow: 0 8px 28px rgba(0,0,0,.6);
}

html, body { height: 100%; }

/* Black crosshatch + magenta hacker vibe */
body {
  min-height: 100%;
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  background-color: #000;
  background-image:
    linear-gradient(45deg, rgba(255,0,255,.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,0,255,.15) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout scaffold (mobile-first) */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px); /* leaves room for footer on small screens */
}

.image-frame {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255,255,255,.08); /* frosted glass base */
  border: 1px solid rgba(255,0,255,.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  filter: saturate(1.05);
  /* subtle inner glow via shadow */
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0,0,0,.5);
  mix-blend-mode: screen;
}

/* Footer + product ad (CTA) */
footer {
  padding: 1.75rem 1rem 2.25rem;
  text-align: center;
  color: #d9d9e4;
  border-top: 1px solid rgba(255,0,255,.25);
}
.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,0,255,.55);
  backdrop-filter: saturate(1.2) blur(2px);
  -webkit-backdrop-filter: saturate(1.2) blur(2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.product-ad h3 {
  display: inline-block;
  font-size: .95rem;
  color: #fff;
  margin-right: .5rem;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
}
.product-ad p {
  color: #fff;
  font-weight: 700;
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,0,255,.95), rgba(0,0,0,.25));
  border: 1px solid rgba(255,255,255,.45);
  transition: transform .2s ease;
}
.product-ad p:hover {
  transform: translateY(-1px) scale(1.02);
}
.product-ad a:focus-visible, a:focus-visible {
  outline: 3px solid var(--mag);
  outline-offset: 2px;
}
.product-ad p:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

/* Fine-tune text contrast for accessibility */
@media (prefers-color-scheme: light) {
  body { background-color: #0a0a0a; }
  .image-frame { background: rgba(255,255,255,.12); }
}

/* Responsive tweaks */
@media (min-width: 600px) {
  main { padding: 3rem 2rem; }
  .image-frame { max-width: 1024px; aspect-ratio: 16/9; }
}
@media (min-width: 900px) {
  .image-frame { border-radius: 24px; padding: 1.25rem; }
  footer { padding-bottom: 2rem; }
}