/* Reset and base styles (mobile-first) */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  color: #f6efe6;
  background-color: #0a0a0a;
  /* brown dots pattern background for hacker-cyberpunk vibe */
  background-image: radial-gradient(circle, rgba(149, 98, 42, 0.9) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  background-position: 0 0;
}

/* Frosted glass and cyberpunk header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header h1 {
  font-size: 1.25rem;
  margin: 0;
  text-align: center;
  letter-spacing: 0.4px;
  color: #f9f3e8;
  text-shadow: 0 0 6px rgba(255, 171, 72, 0.6);
}
@media (min-width: 768px) {
  header h1 { font-size: 1.6rem; }
}

/* Main content area - center the hero/image */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 1.5rem;
}

/* Frosted frame around the image to emphasize hero */
.image-frame {
  width: min(92%, 720px);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px) saturate(1.25);
  -webkit-backdrop-filter: blur(6px) saturate(1.25);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
  /* subtle neon glow on image to hint cyberpunk theme */
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
  .image-frame { width: min(86%, 860px); }
}

/* Footer / product ad block with frosted glass look */
footer {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem 2rem;
}
.product-ad {
  width: min(92%, 720px);
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  color: #f9e5cc;
}
.product-ad a { display: inline-flex; align-items: center; text-decoration: none; }
.product-ad a p {
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
footer p {
  color: #d7cfc0;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

/* Focus styles for accessibility on all interactive elements */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Subtle hover/active states for the CTA button in product ad */
.product-ad a p {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-ad a:hover p {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}
.product-ad a:active p {
  transform: translateY(0);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

/* Small screens: ensure readability and spacing remains friendly */
@media (max-width: 420px) {
  header { padding: 0.75rem; }
  header h1 { font-size: 1.15rem; }
  .image-frame { padding: 0.75rem; }
  .product-ad { gap: 0.75rem; }
  .product-ad a p { padding: 0.55rem 0.9rem; font-size: 0.95rem; }
}
