/* CSS for hacker-style landing with neon glow, frosted glass, and responsive layout */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e9e0ff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: #0a0a0f;
  min-height: 100dvh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* white neon glow background layers */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.14) 0, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(180,0,255,0.15) 0, transparent 40%),
    linear-gradient(135deg, #0a0a0f 0%, #0a0a12 60%, #0a0a0f 100%);
  background-blend-mode: screen;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* layered glow for neon vibe */
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.22) 0 20%, transparent 21%),
    radial-gradient(circle at 70% 40%, rgba(160,0,255,0.22) 0 22%, transparent 23%);
  filter: blur(40px);
  opacity: 0.9;
  animation: neonPulse 8s ease-in-out infinite;
}
@keyframes neonPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.02); opacity: 1; }
}

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

.image-frame {
  width: min(92vw, 720px);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(180,180,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
              0 20px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  object-fit: cover;
  mix-blend-mode: screen;
}

/* Frosted glass helper for subtle hero gloss on small screens */
@media (min-width: 520px) {
  .image-frame { padding: 1.25rem; }
}

footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
}

.product-ad {
  display: inline-block;
  width: min(92vw, 640px);
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(20,0,60,0.34);
  border: 1px solid rgba(160,120,255,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.38);
}
.product-ad h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #f5eaff;
  margin: 0 0 .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a { text-decoration: none; color: inherit; }
.product-ad p {
  margin: 0;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(170,0,255,1), rgba(100,0,180,0.95));
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-ad p:hover,
.product-ad p:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(167,0,255,.6);
  outline: none;
}
footer p {
  margin-top: .9rem;
  color: #d9d0ff;
  font-size: .85rem;
  opacity: .9;
}

a:focus-visible {
  outline: 3px solid #9d5cff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { max-width: 860px; }
  .product-ad { padding: 1rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  animation: none;
  transition: none;
  /* ensure accessibility by avoiding motion if user prefers reduced motion */
  body::before { display: none; }
}