/* Reset: light, accessible, and box-sized */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base tokens for hacker-cyberpunk vibe with blue stripes and maroon accents */
:root {
  --maroon: #7a001a;
  --maroon-dark: #4b0010;
  --neon: #00eaff;
  --glass: rgba(255, 255, 255, 0.14);
}

/* Mobile-first, accessible palette and blue striped backdrop */
html, body { height: 100%; }
body {
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: #e9eaff;
  background-color: #0a0e1a;
  /* blue striped background pattern layered over a dark base for cyberpunk feel */
  background-image:
    repeating-linear-gradient(135deg,
      rgba(0, 122, 255, 0.25) 0px,
      rgba(0, 122, 255, 0.25) 12px,
      rgba(0,0,0,0) 12px,
      rgba(0,0,0,0) 24px);
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: center hero, crisp frosted glass framing */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
}

/* Frosted glass image frame for hero image */
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.12); /* frosted base */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  pointer-events: none;
  mix-blend-mode: screen;
}
.image-frame.glow::before {
  content: "";
  position: absolute;
  left: -20px; top: -20px;
  width: calc(100% + 40px); height: calc(100% + 40px);
  border-radius: 22px;
  filter: blur(2px);
  background: radial-gradient(circle at center, rgba(0, 214, 255, 0.25), rgba(0,0,0,0) 60%);
  z-index: -1;
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

/* Footer / call-to-action styling: bold maroon panels + neon focus */
footer {
  padding: 1.25rem;
  text-align: center;
  color: #dfe7ff;
  position: relative;
}
.product-ad {
  display: inline-block;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(122,0,20,0.85), rgba(38,0,0,0.75));
  border: 1px solid rgba(170, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.product-ad h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a, #0b59d9);
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 700;
  gap: 0.5rem;
}
.product-ad a:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}
footer p {
  margin-top: 0.75rem;
  color: #cbd8ff;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Ensure interactive elements are keyboard-friendly */
a, button { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks: scale layout for larger viewports */
@media (min-width: 600px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(72vw, 860px); border-radius: 22px; }
}
@media (min-width: 1024px) {
  main { padding: 4rem; }
  .image-frame { width: min(64vw, 980px); }
  footer { padding: 2rem 0 3rem; }
}