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

/* Theme: indigo sunset gradient with lime hacker accents, frosted glass, cyberpunk vibe */
:root {
  --indigo-dark: #0b1020;
  --indigo: #1e3a8a;
  --indigo-light: #4c1d95;
  --lime: #a3e635;
  --lime-dark: #84cc16;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #e6f0ff;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  line-height: 1.4;
  /* Indigo sunset gradient with lime glow */
  background: linear-gradient(135deg, var(--indigo-dark) 0%, #1a1a2e 40%, var(--indigo-dark) 100%);
  background-attachment: fixed;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(163, 230, 53, 0.25), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(0, 255, 170, 0.15), transparent 40%);
  background-blend-mode: screen;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 1.5rem;
  min-height: calc(100vh - 120px);
}

.image-frame {
  width: min(92vw, 860px);
  background: rgba(255, 255, 255, 0.08); /* frosted glass */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  overflow: hidden;
  position: relative;
}

.image-frame::before {
  /* subtle neon glow overlay for hacker vibe */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 0 60px 6px rgba(0, 255, 170, 0.25);
  pointer-events: none;
  mix-blend-mode: screen;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  /* slight inner glow around image for depth */
  box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
}

/* Footer with CTA and branding */
footer {
  text-align: center;
  padding: 1.25rem 1rem 2rem;
  color: #e5f0ff;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.15) 60%);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Product Ad (CTA) */
.product-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem auto 0;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(2,6,23,0.6);
  border: 1px solid rgba(0,255,170,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* glow border hint */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.product-ad h3 {
  font-size: 0.95rem;
  margin: 0;
  color: #eafff0;
  text-shadow: 0 0 6px rgba(0,255,170,0.6);
  white-space: nowrap;
}

.product-ad p {
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #04170f;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.95), rgba(132, 204, 22, 0.95));
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: .2px;
}

/* CTA link styling (wraps the pill-like button) */
.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.product-ad a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 999px;
}

.product-ad a:hover .cta-pill {
  transform: translateY(-1px);
}

/* Focus visibility for all focusable elements for accessibility */
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small-screen tweaks (mobile-first) */
@media (min-width: 600px) {
  main { padding: 3rem 2rem 4rem; }
  .image-frame { padding: 1.25rem; border-radius: 22px; }
  .image-frame::before { box-shadow: 0 0 70px 8px rgba(0,255,170,0.25); }
}

@media (min-width: 900px) {
  footer { padding: 2rem 0 2.5rem; }
  .product-ad { margin-top: 0.5rem; }
  .image-frame { padding: 1.5rem; }
}