/* Minimal, responsive, hacker-theme stylesheet with frosted glass and blue waves */

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
:root {
  --magenta: #ff00ff;
  --magenta-dark: #c400a7;
  --text: #eaf2ff;
  --muted: #cbd7ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --bg1: #0a1b3d;
  --bg2: #0b2a74;
  --shadow: 0 10px 25px rgba(0,0,0,.3);
}
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Global layout: mobile-first, blue waves backdrop with magenta accents */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, #0a1b3d 0%, #0b2a74 60%, #0a1d3e 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle blue-magenta wave backdrop */
body::before,
body::after {
  content: "";
  position: fixed;
  left: -20vw;
  width: 140vw;
  height: 60vh;
  bottom: -10vh;
  background: radial-gradient(circle at 15% 60%, rgba(0,180,255,.25), transparent 40%),
              radial-gradient(circle at 70% 20%, rgba(255,0,255,.25), transparent 40%);
  filter: blur(0.6px);
  pointer-events: none;
  z-index: -1;
  animation: drift 26s linear infinite;
  mix-blend-mode: screen;
}
body::after { bottom: -16vh; animation-delay: -13s; opacity: .7; }

/* Slight animated drift for life */
@keyframes drift {
  0% { transform: translateX(0); transform: translateY(0); }
  50% { transform: translateX(-6px) translateY(-4px); }
  100% { transform: translateX(0); transform: translateY(0); }
}

main {
  padding: 2rem 1rem 2.5rem;
  display: grid;
  justify-items: center;
}

.image-frame {
  width: min(960px, 92%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Frosted glass footer zone with a prominent CTA */
footer {
  padding: 1.75rem 1rem 2rem;
  display: grid;
  justify-items: center;
  gap: .75rem;
  background: linear-gradient(to top, rgba(0,0,0,.0), rgba(0,0,0,.15));
}

.product-ad {
  width: min(92%, 720px);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  gap: .5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #e8eaff;
  letter-spacing: .2px;
}
.product-ad a {
  justify-self: center;
  text-decoration: none;
}
.product-ad a p {
  margin: 0;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,0,180,.6);
  box-shadow: 0 6px 14px rgba(255,0,180,.45);
  transition: transform .15s ease, filter .2s ease;
}
.product-ad a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9),
              0 0 0 6px rgba(255,0,180,.6);
}
.product-ad a:hover p {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

footer p {
  margin: 0;
  color: #d9e1ff;
  font-size: .95rem;
  opacity: .95;
}

/* Accessibility: ensure high contrast for focus states on interactive elements */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (min-width: 720px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 20px; }
  .product-ad { padding: 1.25rem 1.75rem; }
  .product-ad h3 { font-size: 1.15rem; }
}
@media (min-width: 1024px) {
  :root { --bg-deco: rgba(0, 210, 255, .18); }
}
