/* Minimal reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Violet checkerboard background + navy cyberpunk vibe */
:root {
  --bg1: #2a0a2a;
  --bg2: #5b1aa3;
  --glass: rgba(18, 14, 40, 0.65);
  --glass-border: rgba(160, 120, 255, 0.45);
  --text: #e9e8ff;
  --muted: #c6baff;
  --cta: #1d0a3a;
  --ctaHover: #35134a;
  --shadow: 0 20px 40px rgba(0,0,0,.55);
  --ring: 0 0 0 4px rgba(126, 84, 255, 0.9);
}

body {
  color: var(--text);
  background-color: #1a0a28;
  /* violet checkerboard pattern */
  background-image:
    linear-gradient(45deg, rgba(122, 0, 255, 0.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(58, 0, 142, 0.25) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container sizes */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  position: relative;
  width: min(92vw, 860px);
  border-radius: 18px;
  padding: 0.75rem;
  background: rgba(18, 14, 60, 0.62); /* frosted glass base */
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* subtle neon glow to emphasize hacker vibe */
  outline: 0;
  transition: box-shadow .25s ease;
}
.image-frame:hover {
  box-shadow: 0 0 28px rgba(126, 84, 255, 0.9);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* ensure image sits nicely on dark glass */
  background: #000;
}

/* Frosted glass edge glow */
.image-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(126, 84, 255, 0.25), rgba(0, 214, 255, 0.25) 60%, rgba(126, 84, 255, 0.25) 100%);
  mix-blend-mode: screen;
  filter: blur(1px);
  opacity: 0.9;
}

/* Footer with a prominent CTA-styled product ad */
footer {
  text-align: center;
  padding: 1.75rem 1rem 2rem;
  color: rgba(230, 225, 255, 0.95);
  background: transparent;
}
.product-ad {
  display: inline-block;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(12, 0, 40, 0.78);
  border: 1px solid rgba(160, 120, 255, 0.42);
  margin-bottom: 0.75rem;
}
.product-ad h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #e9e6ff;
  font-weight: 600;
  letter-spacing: .2px;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  background: linear-gradient(135deg, #2d0a6f 0%, #1a0a3a 100%);
  color: #eaffff;
  border: 1px solid rgba(120, 100, 255, 0.6);
  box-shadow: 0 0 12px rgba(120, 100, 255, 0.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(120, 100, 255, 0.85);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
footer p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(230, 230, 255, 0.92);
}

/* Accessibility helper for keyboard users */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
a { color: #d6e0ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Responsive adjustments (mobile-first) */
@media (min-width: 640px) {
  main { padding: 3rem 1rem; }
  .image-frame { width: min(80vw, 900px); }
}
@media (min-width: 960px) {
  .image-frame { width: min(64vw, 980px); }
  footer { padding: 2rem 1rem 2.5rem; }
}