/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #0b1020;
  --glass: rgba(14, 25, 60, 0.72);
  --glass-border: rgba(120, 180, 255, 0.45);
  --text: #e7f0ff;
  --muted: #a5b4d9;
  --blue: #4cc9ff;
  --blue-dark: #2a7bd4;
  --red: #ff2b2b;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--bg);
  /* red dot pattern + blue cyberpunk wash (mobile-friendly) */
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255,0,0,.95) 1px, transparent 1px),
    linear-gradient(135deg, rgba(10,12,40,.95), rgba(0,0,60,.95));
  background-size: 14px 14px, cover;
  background-attachment: scroll;
  background-blend-mode: screen;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
}

/* Frosted glass image frame (hero-ish focus) */
.image-frame {
  width: min(100%, 940px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem auto 1.25rem;
  border-radius: 20px;
  padding: 0.75rem;
  background: rgba(15, 25, 60, 0.65);
  border: 1px solid rgba(120, 180, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  overflow: hidden;
}

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

/* Footer with product ad (prominent CTA) */
footer {
  width: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #d7e4ff;
  background: rgba(2, 6, 23, 0.65);
  border-top: 1px solid rgba(120, 180, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: rgba(8, 16, 40, .75);
  border: 1px solid rgba(120, 180, 255, .65);
  margin: 0 auto 0.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad h3 {
  font-size: .9rem;
  margin: 0;
  line-height: 1.2;
  letter-spacing: .2px;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .55rem .95rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e63ff, #0c49ff);
  color: white;
  font-weight: 700;
  font-size: .92rem;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(30,110,255,.55);
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); }

/* Focus accessibility */
a:focus-visible,
.product-ad a:focus-visible {
  outline: 2px solid #61dafb;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Inline link styling fallback */
a { color: #cfe2ff; text-decoration: none; }

/* Small screens (mobile-first) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 180px); }
  .image-frame { border-radius: 28px; padding: 1rem; }
  footer { padding: 2rem; }
}
