/* Minimal, responsive, hacker-themed stylesheet (maroon crosshatch + magenta accents) */

/* Reset and root variables */
:root {
  --bg-maroon: #2b0000;
  --bg-maroon-dark: #200000;
  --magenta: #ff00ff;
  --magenta-soft: rgba(255, 0, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #d9d9d9;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

/* Light reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial, sans-serif; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg-maroon);
  /* maroon crosshatch background (two magenta tints) */
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 0, 128, 0.20) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg, rgba(180, 0, 120, 0.20) 0 6px, transparent 6px 12px);
  background-blend-mode: overlay;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first hero, then content */
main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  flex: 1 1 auto;
}

.image-frame {
  width: min(92vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.0); /* keep image lively under frosted layer */
  isolation: isolate;
  transform: translateZ(0);
}
.image-frame::before {
  /* frosted glass overlay on the image for readability and cyberpunk glow */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  pointer-events: none;
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* subtle hue shift for cyberpunk vibe */
  filter: hue-rotate(-8deg) saturate(1.05);
}

/* Footer / product ad: prominent CTA with accessible focus */
footer {
  padding: 1.25rem;
  width: 100%;
}
.product-ad {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a {
  text-decoration: none;
}
.product-ad p {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 6px 14px rgba(255, 0, 255, 0.65);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad p:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 0, 255, 0.75);
}
.product-ad a:focus-visible, .product-ad p:focus-visible, .product-ad button:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 8px;
}
footer p {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: .75rem;
  opacity: 0.95;
}

/* Accessibility helpers for high contrast */
a, button {
  color: #fff;
}
a:focus, button:focus {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 6px;
}
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .image-frame { border-radius: 20px; }
  .product-ad { grid-template-columns: auto 1fr; }
  .product-ad p { padding: .85rem 1.2rem; }
}

@media (min-width: 1024px) {
  main { padding: 2.5rem; }
  .image-frame { width: min(900px, 55vw); }
  .product-ad { grid-template-columns: auto 1fr; }
  .product-ad h3 { font-size: 1.05rem; }
}