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

/* Theme + cyan zigzag background (mobile-first, dark cyberpunk) */
:root {
  --bg: #041019;
  --fg: #eaffff;
  --cyan: #00e6ff;
  --cyan-dark: #00b8cc;
  --glass: rgba(8, 18, 28, 0.65);
  --glass-border: rgba(0, 230, 255, 0.55);
  --shadow: 0 8px 40px rgba(0, 230, 255, 0.28);
  --radius: 14px;
  --glow: 0 0 12px rgba(0, 230, 255, 0.9);
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--fg);
  background-color: var(--bg);
  /* cyan zigzag background */
  background-image:
    linear-gradient(135deg, rgba(0, 230, 255, 0.18) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0, 230, 255, 0.18) 25%, transparent 25%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout: mobile-first, center the hero image as the clear focus */
main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding: 1.5rem;
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: rgba(7, 14, 22, 0.6);
  border: 1px solid rgba(0, 230, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(0, 230, 255, 0.25), transparent 40%),
              radial-gradient(circle at 85% 60%, rgba(0, 180, 255, 0.15), transparent 45%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Subtle frosted caption area (appears on hover/focus) */
.image-frame::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(5, 15, 25, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.image-frame:hover::after,
.image-frame:focus-within::after { opacity: 1; transform: translateY(0); }

/* Footer CTA area: prominent turquoise button-like ad */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #b6f2ff;
  background: linear-gradient(to top, rgba(2, 12, 18, 0.6), rgba(2, 12, 18, 0.25) 60%, rgba(2,12,18,0));
  border-top: 1px solid rgba(0, 230, 255, 0.25);
}
.product-ad {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(3,16,26,0.6);
  border: 1px solid rgba(0, 230, 255, 0.55);
  margin-bottom: 0.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 14px rgba(0,230,255,0.25);
}
.product-ad h3 {
  font-size: 0.95rem;
  margin: 0;
  padding: 0.25rem 0.6rem;
  display: inline-block;
  color: #b7ffff;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  display: inline-block;
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #06292b;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0,255,255,0.95), rgba(0,180,220,0.85));
  border: 1px solid rgba(180,255,255,0.95);
  box-shadow: 0 0 14px rgba(0,255,255,0.9);
  transition: transform .2s ease;
}
.product-ad a:focus-visible { outline: 2px solid #00e6ff; outline-offset: 2px; }
.product-ad a:hover { transform: translateY(-1px); }
footer p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #99f6ff;
}

/* Accessibility: respects light mode if user prefers it */
@media (prefers-color-scheme: light) {
  body { color: #062027; background-color: #eaf6ff; }
  .image-frame { background: rgba(255,255,255,0.9); border-color: rgba(0,140,180,0.5); box-shadow: 0 8px 28px rgba(0,180,200,0.25); }
  .image-frame img { filter: none; }
  footer { color: #0b2b35; }
  .product-ad a p { background: linear-gradient(135deg, rgba(0,140,180,0.9), rgba(0,100,120,0.9)); }
}

/* Responsive tweaks for larger screens */
@media (min-width: 768px) {
  main { padding: 2.5rem; min-height: calc(100vh - 140px); }
  .image-frame { width: min(80vw, 900px); }
  footer { padding: 2rem 1rem; }
  .product-ad h3 { font-size: 1.05rem; }
  .product-ad a p { padding: 0.95rem 1.25rem; }
}