/* Small, responsive, cyberpunk styling with indigo checkerboard and frosted glass */

:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --bg: #0a001a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --txt: #e9e6ff;
  --shadow: 0 8px 40px rgba(0,0,0,.45);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--txt);
  background-color: var(--bg);
  /* Indigo checkerboard background */
  background-image:
    linear-gradient(45deg, rgba(99,102,241,.28) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(99,102,241,.28) 25%, transparent 25%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  min-height: 100vh;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  position: relative;
  width: min(92vw, 900px);
  padding: 1rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-frame::after {
  /* subtle neon glow overlay for hacker vibe */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(124,58,237,.15) 60%, rgba(99,102,241,.15) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  z-index: 1;
  position: relative;
  filter: saturate(1.05);
}

footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #e9e5ff;
  margin-top: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.product-ad {
  display: inline-block;
  margin-bottom: .75rem;
  padding: 0;
  position: relative;
  z-index: 1;
}

.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: .4rem;
  color: #eae4ff;
}

.product-ad a {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d28d9 0%, #3b82f6 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 6px 16px rgba(59,130,246,.65);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99,102,241,.8);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99,102,241,.75);
}
.product-ad p { margin: 0; padding: 0; display: inline-block; }

footer p {
  margin-top: .75rem;
  font-size: .9rem;
  opacity: .9;
}

/* Layout tweaks for larger screens (still mobile-first) */
@media (min-width: 640px) {
  .image-frame { padding: 1.25rem; }
}
@media (min-width: 900px) {
  footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 2rem;
  }
  .image-frame { justify-self: center; }
}