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

/* Theme variables (cyberpunk, hacker vibes) */
:root {
  --bg: #0b0b12;
  --bg2: #1a1a29;
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.15);
  --text: #e9e9f7;
  --muted: #a9a9b8;
  --accent: #8a5cff;
  --accent2: #5a3ec2;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* Base */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #0b0b12;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Purple waves background (frosted cyberpunk aesthetic) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0%, rgba(140,90,255,.25), transparent 40%),
    radial-gradient(circle at 75% 10%, rgba(100,40,200,.22), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(120,60,240,.25), transparent 40%),
    linear-gradient(180deg, rgba(5,0,10,.95), rgba(5,0,10,.95) 60%, rgba(10,0,20,.95));
  mix-blend-mode: screen;
  filter: saturate(120%);
  animation: drift 18s ease-in-out infinite;
  opacity: .95;
}
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  position: relative;
  isolation: isolate;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Frosted CTA / footer */
footer {
  padding: 2rem 1rem;
  text-align: center;
  color: #d9d9ea;
  position: relative;
}
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: var(--shadow);
  margin: 0.25rem auto;
}
.product-ad h3 {
  font-size: .95rem;
  margin: 0;
  color: #e9e0ff;
}
.product-ad a {
  display: inline-flex;
  min-width: 210px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: .65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(128,0,255,.95), rgba(60,0,120,.95));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.product-ad a:hover { transform: translateY(-1px); }
footer p { font-size: .84rem; opacity: .85; margin-top: .75rem; }

/* Accessibility helpers for focus on interactive elements */
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive (mobile-first) */
@media (min-width: 600px) {
  main { padding: 4rem 1.75rem; }
  .product-ad { margin: 0.75rem auto; }
}
@media (min-width: 900px) {
  main { padding: 6rem 2rem; }
  .image-frame { border-radius: 22px; }
}
@media (min-width: 1200px) {
  .product-ad { flex-direction: row; padding: .9rem 1.5rem; gap: 1rem; }
  footer { text-align: left; padding-left: 2rem; }
}