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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #1b1b1f;
  background: linear-gradient(135deg, #cbd5e1 0%, #e9eef6 50%, #cbd5e1 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Frosted glass surfaces */
header,
.image-frame,
.product-ad {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

header {
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  width: 100%;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  font-weight: 800;
  color: #f7f7fb;
  text-shadow: 0 0 8px rgba(255, 0, 170, 0.9);
}

main {
  flex: 1 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: center;
}

.image-frame {
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  padding: 0.5rem;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(255, 0, 170, 0.25);
}

footer {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,.05), rgba(255,255,255,.04));
  width: 100%;
}

.product-ad {
  width: min(90%, 520px);
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto;
  gap: 0.4rem;
  align-items: center;
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #f8f8fb;
  font-weight: 700;
}

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

.product-ad a p {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  margin: 0;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff2d95 0%, #a2007a 100%);
  box-shadow: 0 0 12px rgba(255, 0, 160, 0.9);
  transition: transform .15s ease, box-shadow .2s ease;
}

.product-ad a:focus-visible {
  outline: 3px solid #ff8ec3;
  outline-offset: 2px;
  border-radius: 999px;
}
.product-ad a:hover p {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255,0,160,0.95);
}

footer p {
  margin: 0;
  font-size: .9rem;
  color: #555;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 700px) {
  main { padding: 2rem 1rem; }
  .image-frame { max-width: 720px; padding: 0.75rem; }
  header { padding: 2rem 1rem; }
  .product-ad { grid-template-columns: auto 1fr; align-items: center; }
  .product-ad h3 { order: 1; }
}

@media (min-width: 1024px) {
  .image-frame { max-width: 840px; }
  header h1 { font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem); }
  .product-ad { grid-template-columns: auto auto; gap: 1rem; align-items: center; }
  .product-ad a p { padding: 0.75rem 1.25rem; }
}