/* Global reset and base styles (light, accessible, mobile-first) */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  color: #f7f7f7;
  /* Blue parchment look with a subtle parchment texture hint and glow */
  background:
    linear-gradient(135deg, rgba(14,40,90,0.95) 0%, rgba(9,20,60,0.95) 60%, rgba(14,40,90,0.95) 100%),
    radial-gradient(circle at 20% -10%, rgba(120,180,255,0.15), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Handy color tokens for hacker/cyberpunk red accents on blue parchment */
:root {
  --red: #ff2b2b;
  --red-dark: #b30b0b;
  --paper: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
  --text: #f6f6f6;
  --muted: rgba(255,255,255,0.85);
}

/* Layout containers to center content on small screens and scale up on larger ones */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
}

/* Frosted glass card around the image (hero) */
.image-frame {
  width: min(680px, 92%);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  isolation: isolate;
}

/* Subtle red glow accent on the frame for hacker vibe */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,0,0,0.25), 0 0 40px rgba(255,0,0,0.15);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* The actual image fills the frame */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* Footer area with a prominent product ad CTA and copyright */
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1rem;
  gap: 0.75rem;
  color: #e6e6e6;
  background: linear-gradient(to top, rgba(3,6,12,0.4), rgba(3,6,12,0.0));
  border-top: 1px solid rgba(255,0,0,0.25);
}

/* The product ad block uses frosted glass with red CTA styling */
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(15, 20, 40, 0.75);
  border: 1px solid rgba(255,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #ffd9d9;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

/* CTA button styling (accessible, high contrast) */
.product-ad a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(#e6002b, #a8001a);
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 4px 10px rgba(214,0,0,0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  background: linear-gradient(#ff3b61, #c8141b);
  box-shadow: 0 6px 14px rgba(255, 0, 0, 0.5);
}
.product-ad a:focus-visible {
  outline: 3px solid #7ed6ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(126,214,255,0.5);
}

/* Small text under the hero for visual balance on footer left/right on wide screens */
p { margin: 0; }

/* Small screens: preserved spacing, single-column layout by default (mobile-first) */
@media (min-width: 600px) {
  main {
    padding: 3rem 1.5rem;
  }
  .image-frame { width: 760px; }
  footer { padding: 2rem 1.5rem; }
}

/* Larger screens: center overall composition, keep visual rhythm */
@media (min-width: 1024px) {
  main { padding: 4rem 2rem; align-items: center; }
  .image-frame { width: 860px; }
  footer { flex-direction: row; justify-content: center; align-items: flex-start; gap: 2rem; }
}