/* Global reset and base styles (mobile-first) */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #0b0f14;
  --bg2: #111418;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(120, 240, 235, 0.25);
  --accent: #2be3d4;
  --accent-dark: #0bd0c3;
  --text: #e6fbff;
  --muted: #a3b4c2;
}
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg);
  /* Gray carbon-fiber-like pattern (subtle) */
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.4), rgba(0,0,0,.4)),
    repeating-linear-gradient(45deg, rgba(60,60,60,.25) 0 8px, rgba(0,0,0,0) 8px 16px),
    repeating-linear-gradient(-45deg, rgba(60,60,60,.25) 0 8px, rgba(0,0,0,0) 8px 16px);
  background-size: 100% 100%, 16px 16px, 16px 16px;
  background-blend-mode: overlay;
  min-height: 100dvh;
}

/* Layout: centered hero area with frosted glass frame on the image */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 2.5rem;
  gap: 1.25rem;
}

.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(120, 240, 235, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

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

footer {
  padding: 1.5rem 1rem 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Card-like product ad in footer with frosted glass feel */
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.25);
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Ad heading and text */
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #a6fbff;
  letter-spacing: 0.5px;
}

/* CTA button styling (turquoise hacker vibe) */
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 210, 210, 0.95), rgba(0, 170, 170, 0.95));
  color: #071f1b;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 14px rgba(0, 210, 210, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 210, 210, 0.75);
}
.product-ad a:focus-visible {
  outline: 3px solid #00f5d1;
  outline-offset: 2px;
}
.product-ad a > p {
  margin: 0;
  color: inherit;
}

/* Footer text styling for balance */
footer p {
  text-align: center;
  color: #9fb4c9;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

/* Accessibility: focus states for all links/buttons */
a:focus-visible, button:focus-visible {
  outline: 3px solid #00e5d0;
  outline-offset: 2px;
}

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

/* Responsive tweaks for larger viewports */
@media (min-width: 768px) {
  main {
    padding: 4rem 2rem 3rem;
  }
  .image-frame {
    width: 860px;
    border-radius: 22px;
  }
  .product-ad { align-items: stretch; }
}
