:root {
  --bg: #0a111a;
  --panel: rgba(8, 28, 40, 0.65);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.9);
  --text: #eaffff;
}

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

/* Global reset for readability without removing layout margins on elements */
html, body {
  height: 100%;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: #050b12;
  /* turquoise dots background pattern */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 229, 255, 0.9) 2px, transparent 2px);
  background-size: 22px 22px;
  background-position: 0 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Hero / main area */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  flex: 1 1 auto;
}

.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 28, 40, 0.55);
  border: 1px solid rgba(0, 255, 255, 0.65);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 12px 40px rgba(0, 255, 255, 0.25);
}

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

/* Frosted glass footer card for the product ad */
footer {
  padding: 20px 16px 40px;
  width: 100%;
  display: block;
}

.product-ad {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(6, 20, 26, 0.65);
  border: 1px solid rgba(0, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 720px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 28px rgba(0, 255, 255, 0.15);
}

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

.product-ad a {
  text-decoration: none;
  outline: none;
}

.product-ad a p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #041414;
  font-weight: 700;
  background: linear-gradient(135deg, #00e5ff 0%, #2affd0 100%);
  display: inline-block;
  box-shadow: 0 6px 16px rgba(0, 230, 255, 0.6);
  transition: transform .15s ease;
}

.product-ad a p:hover {
  transform: translateY(-1px);
}

footer p {
  text-align: center;
  color: #b8f7ff;
  margin: 6px auto 0;
  font-size: .92rem;
  opacity: .95;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
[data-focus="true"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screens: emphasize vertical layout, full-width hero */
@media (max-width: 767.98px) {
  .image-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .product-ad { width: 100%; padding: 12px 14px; }
}

/* Medium and up: slightly larger hero and ad alignment */
@media (min-width: 768px) {
  main { padding: 40px 0; }
  .image-frame { width: 70%; }
  footer { padding: 22px 0 40px; }
  .product-ad { margin: 0 auto; }
}