/* Light reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Theme: teal sunset gradient, gray hacker vibe, frosted glass */
:root {
  --bg-teal-1: #0b7f82;
  --bg-teal-2: #1aa8a0;
  --bg-deep: #2c2c2c;
  --text: #e6f0f2;
  --muted: #a6adb5;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --shadow: 0 12px 40px rgba(0,0,0,.4);
  --cta: #1ee2cd;
  --cta-dark: #0fb4a8;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(135deg,
              #0f8f8f 0%,
              #1bb7b0 25%,
              #2c2a66 60%,
              #171717 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first, center the hero image with frosted glass frame */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  min-height: 60vh;
}

.image-frame {
  width: min(92vw, 760px);
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.25);
  -webkit-backdrop-filter: blur(8px) saturate(1.25);
  position: relative;
  overflow: hidden;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.04) 0 1px,
    transparent 1px 2px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .25;
}

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

/* Footer with a frosted glass CTA card */
footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,.0) 60%);
}

.product-ad {
  display: inline-block;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  margin: 0.5rem auto 1rem;
  min-width: min(90vw, 420px);
}

.product-ad h3 {
  margin: 0 0 .5rem;
  color: #eafffb;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .3px;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1ee2cd 0%, #0aa3a0 100%);
  color: #041012;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); filter: brightness(1.05); }
.product-ad a:focus-visible {
  outline: 3px solid #aaf5ff;
  outline-offset: 2px;
}

footer p {
  margin-top: .75rem;
  color: #cbd5e1;
  font-size: .9rem;
}

/* Accessibility: focus indication for all focusable elements */
a:focus-visible {
  outline: 3px solid #aaf5ff;
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 6rem 0; }
  .image-frame { width: min(80vw, 860px); padding: 1.25rem; }
  .product-ad { margin-top: 1rem; }
}

@media (min-width: 1024px) {
  body {
    background: linear-gradient(135deg,
      #0b7f82 0%,
      #1aa8a0 32%,
      #3a2e63 72%,
      #0f0f0f 100%);
  }
  .image-frame { border-radius: 24px; }
}