/* Reset and base styles (light reset) */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e8fbff;
  background-color: #0b1b2b;
  /* Navy zigzag background + subtle cyber glow */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><polyline points='0,30 15,15 30,30 45,15 60,30' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='3'/></svg>"),
    radial-gradient(circle at 20% -10%, rgba(125,249,255,.15), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(0,0,0,.25), transparent 40%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 60px 60px, 100% 100%, 100% 100%;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: ui-sans-serif, system-ui, -apple-system;
  line-height: 1.4;
  /* Ensure accessible color contrast for white text on dark bg */
  color-scheme: dark;
}

main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Frosted glass card for the hero image frame */
.image-frame {
  width: min(90vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 50px rgba(0,0,0,.6);
}

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

/* Footer / product ad area with frosted glass */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #e5f3ff;
}

.product-ad {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 999px;
  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);
  margin-bottom: .75rem;
}

.product-ad h3 {
  font-size: .9rem;
  margin: 0 0 .25rem;
  letter-spacing: .5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  border-radius: 8px;
  text-decoration: none;
  color: #e9feff;
  background: rgba(0, 170, 230, 0.25);
  border: 1px solid rgba(125, 249, 255, 0.6);
}

.product-ad a:hover {
  background: rgba(0, 170, 230, 0.38);
  border-color: rgba(125, 249, 255, 0.9);
}

/* Link and button focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #7df9ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Hero typography with hacker vibe */
h3, h2 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
h3 {
  color: #eaffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
  letter-spacing: .5px;
}

/* Small screens first (mobile-first) */
@media (max-width: 639px) {
  .image-frame { border-radius: 18px; }
  footer { padding: 1.25rem 1rem; }
  .product-ad { padding: .5rem .75rem; }
}

/* Larger screens */
@media (min-width: 640px) {
  main { padding: 3rem 1.5rem; }
  .image-frame { border-radius: 22px; }
  .product-ad { font-size: 0.95rem; }
}

/* Desktop / wide screens */
@media (min-width: 1024px) {
  main { padding: 4rem 2rem; }
  .image-frame { width: min(860px, 60vw); }
  footer { padding: 2rem 1rem; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}