/* Reset and base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

/* Theme: hacker future cyberpunk with frost glass and maroon accents */
:root {
  --maroon: #7a0d0d;
  --maroon-dark: #5a0000;
  --bg: #0a0a0f;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.25);
  --text: #f2f2f2;
  --muted: #d8d8d8;
}

/* Crosshatch black background with maroon tint */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.25) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-45deg, rgba(76,0,0,0.25) 0 2px, transparent 2px 8px);
  background-blend-mode: overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container for hero image (mobile-first) */
main { padding: 2rem 1rem 0; }

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92vw, 1000px);
  margin: 0 auto;
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Image styling with subtle glow edge */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 20px rgba(0,0,0,.25);
}

/* Footer area with frosted glass product ad */
footer { padding: 1.5rem 1rem 2rem; }
.product-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 1000px;
  margin: 0 auto;
}
.product-ad h3 { font-size: 1rem; color: #ffd8d8; display: inline-block; }

/* CTA button-style derived from anchor in HTML */
.product-ad a {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(122,0,0,.6);
}
.product-ad a:hover { background: #9a0d0d; }
.product-ad a:focus-visible { outline: 2px solid #ffd166; outline-offset: 2px; }

/* Footer small print */
footer p { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* Accessibility: focus for keyboard users on interactive elements */
a:focus-visible { outline: 2px solid #ffd166; outline-offset: 2px; }

/* Responsive tweaks (tablet/desktop) */
@media (min-width: 640px) {
  main { padding: 3rem 2rem 0; }
  .image-frame { width: min(70vw, 960px); }
  .product-ad { grid-template-columns: auto 1fr; padding: 1rem 1.25rem; }
  .product-ad h3 { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .image-frame { padding: 1.25rem; border-radius: 20px; }
  .product-ad { padding: 1.25rem 1.75rem; border-radius: 14px; }
  .product-ad a { font-size: 1rem; padding: 0.9rem 1.4rem; }
}