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

html, body { height: 100%; margin: 0; padding: 0; }

:root {
  --bg-brown: #2b140a;
  --bg-brown-dark: #3a1f14;
  --bg-brown-deep: #1b0f0a;
  --violet: #8f5aff;
  --violet-soft: #b28cff;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #f7f0ff;
  --cta: #a56dff;
  --cta-dark: #6a40c4;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-brown) 0%, var(--bg-brown-dark) 60%, var(--bg-brown-deep) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  flex: 1;
  width: 100%;
}

.image-frame {
  width: min(92vw, 720px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px) saturate(1.25);
  -webkit-backdrop-filter: blur(6px) saturate(1.25);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Frosted glass card for the ad */
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  width: min(92vw, 520px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.product-ad h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e9d5ff;
  text-shadow: 0 0 6px rgba(139, 92, 246, 0.9);
  letter-spacing: 0.3px;
  display: inline-block;
}

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

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

/* CTA button style inside the ad */
.product-ad a p {
  margin: 0;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #6f3ab0 0%, #2a0e0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease;
}

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

/* Footer text styling */
footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #e9d7ff;
  opacity: 0.95;
  text-align: center;
}

@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 22px; }
  .product-ad { align-items: center; }
  .product-ad a p { font-size: 1.05rem; }
}