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

html, body { height: 100%; }

:root {
  --bg-start: #0b4fff;
  --bg-mid:   #4b0ddc;
  --bg-end:   #1a0a63;
  --text:       #e8eaff;
  --muted:      #cbd5e1;
  --glass:      rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --shadow-strong: 0 12px 40px rgba(0,0,0,.4);
  --cta: rgba(125, 211, 252, 0.25);
  --cta-border: rgba(125, 211, 252, 0.65);
  --glow: 0 0 18px rgba(125, 211, 252, 0.8);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: var(--shadow-strong);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  isolation: isolate;
  transform: translateZ(0);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(125, 211, 252, 0.25);
  pointer-events: none;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(110%);
  transform: scale(1);
  transition: transform 0.5s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

.product-ad {
  max-width: 760px;
  width: 100%;
  margin: 2rem auto 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  text-align: left;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .4rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a { text-decoration: none; color: inherit; display: inline-block; width: 100%; }
.product-ad p {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.65);
  color: #eaf2ff;
  transition: transform .2s ease, background .2s ease;
}
.product-ad p:hover { transform: translateY(-1px); background: rgba(99, 102, 241, 0.4); }

.product-ad a:focus-visible, a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 6px;
}

footer {
  padding: 1.5rem;
  text-align: center;
  color: rgba(234, 239, 255, 0.9);
  width: 100%;
}

@media (min-width: 768px) {
  main { padding: 4rem 1rem; }
  .image-frame { width: 60vw; min-width: 320px; }
  .product-ad { margin-top: 1.5rem; padding: 1.2rem; }
}

/* Accessibility helpers for focus across interactive elements */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
