/* Reset + base styles (mobile-first) */
*,
*::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, "Helvetica Neue";
  color: #e8e8f0;
  background: linear-gradient(135deg, #0b0b1a 0%, #2a0055 40%, #6a00d2 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout sections */
header { padding: 32px 16px; text-align: center; }
main { display: grid; place-items: center; padding: 16px 12px; }
footer { padding: 20px 12px; text-align: center; }

/* Title style with cyberpunk glow */
header h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  margin: 0;
  color: #f5f7ff;
  letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(140,0,255,.6);
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92%, 760px);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  overflow: hidden;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: saturate(0.95);
}

/* Footer product ad (CTA) */
.product-ad {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 6px;
}

.product-ad h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: #f1f1f8;
}

.product-ad a { text-decoration: none; color: inherit; }

.product-ad a p {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  background: linear-gradient(#2a2a2a, #1a1a1a);
  color: #f3f3f3;
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 700;
}

.product-ad a p:hover { filter: brightness(1.05); }

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #8af6ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screens first; layout scales cleanly on larger screens */
@media (min-width: 768px) {
  header { padding: 48px 24px; }
}