:root {
  --bg: #0a0b12;
  --fg: #e9e9ff;
  --muted: #cbd5e1;
  --violet: #8b5cf6;
  --violet-dark: #6d28d9;
  --green: #2ee89a;
  --green-deep: #1f9c6e;
  --glass: rgba(255, 255, 255, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.4;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(46, 204, 113, 0.25) 2px, transparent 6px),
    radial-gradient(circle at 65% 60%, rgba(46, 204, 113, 0.15) 2px, transparent 6px),
    linear-gradient(135deg, rgba(9, 0, 40, 0.95), rgba(0, 0, 0, 0.95));
  background-blend-mode: overlay, overlay, normal;
  overflow-x: hidden;
}
main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding: 2rem 1rem;
}
.image-frame {
  width: min(92%, 720px);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  position: relative;
  isolation: isolate;
}
.image-frame:hover { transform: translateY(-2px); }
.image-frame img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Frosted glass glow border for hacker vibe */
.image-frame:after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: -2px; bottom: -2px;
  border-radius: 18px;
  pointer-events: none;
  filter: blur(0.5px);
  background: radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.7), transparent 40%),
              radial-gradient(circle at 80% 40%, rgba(0, 255, 120, 0.6), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--muted);
}
.product-ad {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  margin: 0.75rem auto 0;
  width: fit-content;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(46, 204, 113, 0.14));
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.25);
}
.product-ad h3 { margin: 0 0 0.25rem; font-size: 0.95rem; color: #eaf2ff; text-shadow: 0 0 6px rgba(139, 92, 246, 0.6); }
.product-ad a { text-decoration: none; display: inline-block; }
.product-ad a p {
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #06101a;
  background: #b8ffd3;
  font-weight: 700;
  line-height: 1;
}
.product-ad a:focus-visible, .product-ad a:focus {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 999px;
}
a { color: inherit; text-decoration: none; }

/* Focus styles for accessibility on any focusable element if not using :focus-visible */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* Responsive tweaks */
@media (min-width: 768px) {
  main { min-height: 70vh; padding: 3rem 2rem; }
  .image-frame { padding: 1.25rem; border-radius: 20px; }
  .product-ad { transform: translateZ(0); }
}
@media (min-width: 1024px) {
  main { padding: 4rem; }
  .image-frame { width: 640px; padding: 1.5rem; border-radius: 22px; }
  .product-ad { gap: 1.25rem; padding: 0.95rem 1.25rem; }
}