/* Minimal reset */
*,
*::before,
*::after { box-sizing: border-box; }

/* Base styles (mobile-first, dark hacker vibes) */
:root {
  --bg: #0a0f1a;
  --bg-dots1: rgba(255, 255, 255, 0.10);
  --bg-dots2: rgba(120, 180, 255, 0.12);
  --glass: rgba(20, 28, 52, 0.72);
  --glass-border: rgba(180, 210, 255, 0.35);
  --blue: #3bd2ff;
  --blue-dark: #1e88ff;
  --text: #e6f0ff;
  --muted: #a9c6e6;
  --radius: 14px;
  --blur: 6px;
  --shadow: 0 12px 28px rgba(0,0,0,.4);
}
html, body {
  height: 100%;
}
html { font-size: 16px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background-color: var(--bg);
  /* Gray dots pattern background */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.15) 1px, transparent 1px),
    radial-gradient(circle at 6px 6px, rgba(120,180,255,.25) 1px, transparent 1px);
  background-size: 12px 12px, 12px 12px;
  background-position: 0 0, 6px 6px;
  display: grid;
  place-items: start center;
  padding: 24px;
  gap: 20px;
}

/* Layout wrapper */
main {
  width: 100%;
  max-width: 900px;
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 18px;
  padding: 6px;
  margin: 0 auto;
}

/* Frosted glass image frame */
.image-frame {
  position: relative;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: saturate(1.05);
}
.image-frame::before {
  /* neon glow border */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid rgba(0, 180, 255, 0.65);
  box-shadow: 0 0 28px rgba(0, 180, 255, 0.8);
  pointer-events: none;
}
.image-frame::after {
  /* subtle scanline accent */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(0,255,255,.8) 50%, transparent 100%);
  opacity: .25;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: scan 4s linear infinite;
}
@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* CTA and footer styling */
footer {
  width: 100%;
  max-width: 900px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 8px 20px;
  margin: 0 auto;
}
.product-ad {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 18, 40, 0.65);
  border: 1px solid rgba(110, 180, 255, 0.40);
  backdrop-filter: saturate(1.2) blur(4px);
  -webkit-backdrop-filter: saturate(1.2) blur(4px);
}
.product-ad h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #a9d4ff;
  letter-spacing: .3px;
}
.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #061a2e;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.95), rgba(0, 120, 255, 0.95));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.75);
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}
footer p {
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Focus management for accessibility on all focusable elements */
:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
  border-radius: 6px;
}
a {
  color: #c6f0ff;
}
a:hover { color: white; text-decoration: none; }

/* Responsive tweaks (desktop/tablet) */
@media (min-width: 600px) {
  body { padding: 28px; }
  main { gap: 22px; }
  .image-frame { padding: 18px; }
}
@media (min-width: 900px) {
  main { grid-auto-flow: row; }
  .image-frame { max-width: 860px; }
}
