/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #0b1020;
  --ink: #e9eaff;
  --muted: #a6b0d6;
  --panel: rgba(16, 20, 50, 0.75);
  --stroke: rgba(120, 140, 210, 0.5);
  --grid: rgba(99, 102, 241, 0.25);
  --accent: #4f46e5;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(99,102,241,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 180px);
}
.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(9, 12, 28, 0.6);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  display: block;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
}
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem;
  margin: 1rem auto 0;
  width: min(720px, 92%);
  background: rgba(9,12,36,0.65);
  border: 1px solid rgba(110,120,230,.35);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 { margin: 0; font-size: 1rem; color: #e5e8ff; letter-spacing: .4px; }
.product-ad a { display: inline-block; text-decoration: none; }
.product-ad a p {
  margin: 0;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: 0;
  box-shadow: 0 6px 14px rgba(99,102,241,.7);
}
.product-ad a:hover p { transform: translateY(-1px); }
footer p { margin: .75rem 0 0; font-size: .8rem; color: #9fb0e6; }

/* Focus and accessibility */
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }
.image-frame:focus-within, .image-frame:hover { outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.6), 0 20px 40px rgba(0,0,0,.5); }

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 200px); }
  .image-frame { border-radius: 20px; }
  footer { padding: 2rem 0; }
}