/* Light reset and basic variables */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #06131a;
  --teal: #1bd4c0;
  --teal-dark: #0e8f88;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #e7fffe;
  --muted: #b6f0ea;
  --shadow: 0 12px 28px rgba(0,0,0,.25);
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* turquoise carbon fiber background with frosted cyberpunk vibe */
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, rgba(27,212,192,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(27,212,192,.08) 25%, transparent 25%),
    linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.25) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 6vh 4vw 2rem;
  display: grid;
  place-items: center;
}

.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

footer { padding: 1.5rem 1rem 2rem; margin-top: auto; }

.product-ad {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #cafffe;
  text-shadow: 0 0 8px rgba(0, 255, 230, .6);
}

/* CTA styled as a pill button for the ad link */
.product-ad a { text-decoration: none; outline: none; }
.product-ad a p {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: #082626;
  background: rgba(0,255,230,.35);
  border: 1px solid rgba(0,255,230,.8);
  min-width: 140px;
  text-align: center;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:focus-visible {
  outline: 2px solid #00e6d6;
  outline-offset: 2px;
  border-radius: 999px;
}
.product-ad a:hover p {
  background: rgba(0,255,230,.45);
  transform: translateY(-1px);
}

/* Focusable elements accessibility improvements */
.product-ad h3 { color: #c8fff0; text-shadow: 0 0 8px rgba(0, 255, 230, 0.6); }

/* Responsive tweaks */
@media (max-width: 900px) {
  .image-frame { width: 92vw; }
  .product-ad { grid-template-columns: 1fr; align-items: start; padding: 12px; }
  .product-ad a p { min-width: auto; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}