/* Reset & base */
*, *::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, Arial;
  color: #eaffff;
  background: linear-gradient(135deg, #0b1f28 0%, #092029 60%, #0b1f28 100%);
  position: relative;
  overflow-x: hidden;
}

/* Gold low-poly background (inline SVG tile) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><polygon points='0,0 160,0 0,160' fill='%23e6c14a'/><polygon points='160,0 160,160 0,160' fill='%23d4a82a'/><polygon points='80,0 160,0 80,80' fill='%23f5c24a'/><polygon points='0,80 0,160 80,80' fill='%23e0b93a'/></svg>");
  background-size: 160px 160px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* Layout: hero feel, mobile-first */
main {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

/* Frosted glass card for the image (hero) */
.image-frame {
  width: min(92%, 760px);
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  outline: none;
}

/* Footer with frosted glass ad */
footer {
  padding: 1.5rem;
  color: #d5ebf1;
  text-align: center;
}

.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  margin: 0.5rem auto;
  max-width: 880px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #d8fbff;
}
.product-ad a { text-decoration: none; }
.product-ad p {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2ee6bd, #0aa5a0);
  color: #041a1a;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Focus accessibility */
a:focus-visible { outline: 3px solid #2ee6bd; outline-offset: 2px; border-radius: 6px; }

/* Body text contrast for accessibility in paragraphs */
p { color: #d7f6fb; }

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 6rem 2rem; }
  .image-frame { width: 70%; }
}
