/* Frosted Neon Hacker Theme - single stylesheet */

/* 1. Light reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg-dark: #0b0b0f;
  --bg-dim: #111317;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #e9e9ee;
  --muted: #beb6c1;
  --mag: #ff00ff;
  --mag-dark: #c800d0;
  --glow: 0 0 40px rgba(255, 0, 255, 0.8);
  --glow-soft: 0 0 18px rgba(255, 0, 255, 0.6);
}
* { margin: 0; padding: 0; }

/* 2. Page background: gray neon glow with magenta accents */
body {
  color: var(--text);
  background: linear-gradient(#1a1a1a 0, #0f0f0f 60%, #0a0a0a 100%),
              radial-gradient(circle at 20% 0%, rgba(120,120,120,.25) 0 25%, transparent 26%),
              radial-gradient(circle at 80% 20%, rgba(255,0,255,.25) 0 25%, transparent 26%);
  background-blend-mode: overlay, screen, screen;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.4;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  background:
    radial-gradient(circle at 15% 10%, rgba(100,100,100,.18) 0 25%, transparent 26%),
    radial-gradient(circle at 85% 25%, rgba(255,0,255,.22) 0 25%, transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(180,180,180,.12) 0 40%, transparent 41%);
  filter: saturate(110%);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 3. Layout: mobile-first, hero area centered with frosted glass card for image */
main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  padding: 3rem 1rem 2rem;
  display: grid;
  place-items: center;
}
.image-frame {
  width: min(96vw, 920px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 0 0.5px rgba(255,255,255,.25);
  transition: transform .25s ease;
}
.image-frame:hover { transform: scale(1.01); }

.image-frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 0 40px rgba(255,0,255,.65);
  filter: saturate(1.05);
}

/* Subtle neon glow around the frame */
.image-frame::after {
  content: "";
  position: absolute;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-radius: 22px;
  left: -1px;
  top: -1px;
  pointer-events: none;
  box-shadow: 0 0 40px rgba(255, 0, 255, 0.65);
  z-index: -1;
  filter: blur(2px);
}

/* 4. Footer with prominent CTA (magenta hacker style) */
footer {
  padding: 1.75rem 1rem 2.5rem;
  text-align: center;
  z-index: 1;
  position: relative;
}
.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 0, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 0 24px rgba(255,0,255,.75);
  backdrop-filter: saturate(1.1);
  -webkit-backdrop-filter: saturate(1.1);
}
.product-ad h3 {
  font-size: .95rem;
  margin: 0 0 .25rem;
  color: #ffd6ff;
  letter-spacing: .4px;
}
.product-ad p {
  margin: 0;
  color: #fff;
  font-weight: 600;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  margin-top: .25rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff00ff 0%, #7a00ff 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 0 14px rgba(255,0,255,.9);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(255,0,255,.95); }
.product-ad a:focus-visible {
  outline: 3px solid #00ffd5;
  outline-offset: 2px;
}
footer p {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .92rem;
  opacity: .95;
}

/* 5. Accessibility: focus styles for keyboard users on links/buttons */
a, button {
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid #00ffd5;
  outline-offset: 2px;
  border-radius: 6px;
}

/* 6. Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 4rem 2rem 3rem; }
  .image-frame { padding: 1.5rem; border-radius: 26px; }
  .product-ad { font-size: 0.98rem; padding: .9rem 1.15rem; }
}
@media (min-width: 1024px) {
  main { padding: 6rem 2rem; }
  footer { padding-bottom: 3rem; }
  .image-frame { max-width: 1000px; }
}

/* 7. Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}