/* Reset and base setup */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Color system for hacker-cyberpunk vibe */
:root {
  --bg: #0b1020;
  --bg-soft: rgba(9, 12, 28, 0.65);
  --fg: #e8eaff;
  --muted: #b8bde5;
  --glass: rgba(20, 30, 70, 0.6);
  --accent: #ff3bdc; /* magenta accent */
}

/* Magenta dots background (lightweight, responsive) */
body {
  color: var(--fg);
  background-color: var(--bg);
  /* magenta dot field */
  background-image: radial-gradient(circle, rgba(255,0,220,.9) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.4;
  min-height: 100vh;
  /* subtle glow overlay to enhance hacker vibe */
  position: relative;
  overflow-x: hidden;
}

/* Frosted glass base for panels (used in hero/card) */
.frosted {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 28px rgba(0,0,0,.45);
}

/* Layout containers */
main {
  padding: 1rem 1rem 2rem;
  display: block;
}

/* Hero image frame with frosted glass + neon feel */
.image-frame {
  width: 90%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(6,8,28,.6);
  display: grid;
  place-items: center;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 14px 60px rgba(0,0,0,.6);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.01);
}

/* Subtle neon edge glow on the frame (decorative) */
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 255, 200, .12), 0 0 40px rgba(255, 0, 220, .25);
  mix-blend-mode: screen;
}

/* Floating neon grid hint at bottom (optional subtlety) */
.image-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  pointer-events: none;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  mix-blend-mode: overlay;
  opacity: .45;
}

/* Section typography tweaks for hero clarity on mobile */
h1, h2, h3 { margin: 0 0 .65rem; font-weight: 700; }

/* Footer / product ad with frosted glass look */
footer {
  margin-top: 2rem;
  padding: 1rem;
}
.product-ad {
  display: block;
  background: rgba(8,12,32,.65);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 1rem;
  margin: 0 auto 0.75rem;
  max-width: 720px;
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
}
.product-ad a {
  text-decoration: none;
}
.product-ad p {
  margin: .25rem 0 0;
  font-weight: 800;
  color: #f2f3ff;
  display: inline-block;
}
.product-ad a p {
  /* CTA button style */
  padding: .75rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3bdc 0%, #6b00ff 100%);
  color: #0b0424;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(255,0,200,.45);
}
footer p {
  margin: 0;
  text-align: center;
  color: #aebaff;
  font-size: .9rem;
  opacity: .95;
}

/* Accessible focus visuals */
a:focus-visible, button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* Desktop layout: two-column footer feel while preserving source HTML order */
@media (min-width: 1024px) {
  footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
  }
  .product-ad { flex: 1 1 60%; max-width: 720px; }
  footer p { flex: 1 1 auto; text-align: right; margin: 0; }
}

/* Tablet and up refinements */
@media (min-width: 720px) {
  main { padding: 2rem 0; }
  .image-frame { width: 680px; height: auto; margin: 2rem auto; }
  .product-ad p { font-size: 1rem; }
}