/* Reset and base styles - mobile-first */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; padding: 0; }

/* Theme variables */
:root {
  --red: #ff2d2d;
  --red-dark: #d60000;
  --bg-start: #2b140a;
  --bg-mid: #4a1f0d;
  --bg-end: #7a1d12;
  --glass: rgba(255, 255, 255, 0.12);
  --text: #f8f8f8;
  --text-dim: #d7d7d7;
  --shadow: 0 10px 25px rgba(0,0,0,.4);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  /* Brown sunset gradient */
  background: linear-gradient(135deg, #2b140a 0%, #4a1f0d 40%, #7a231e 75%, #b04121 100%);
  background-attachment: fixed;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle cyberpunk vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 70% 0%, rgba(255, 0, 0, 0.08), transparent 40%),
              radial-gradient(circle at 20% 100%, rgba(0, 255, 200, 0.05), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  min-height: calc(100vh - 240px); /* accommodate footer height on small screens */
}

.image-frame {
  width: 100%;
  max-width: 700px;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  backdrop-filter: saturate(120%) blur(2px);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

/* Footer with frosted glass card */
footer {
  padding: 1.75rem 1rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.15);
}

.product-ad {
  width: min(720px, 92%);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(15,15,15,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.product-ad h3 {
  margin: 0 0 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #ffd2d2;
  text-shadow: 0 0 8px rgba(255,0,0,.6);
  letter-spacing: .4px;
  font-size: 1rem;
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
  outline: none;
}

.product-ad a p {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin: 0;
  background: linear-gradient(135deg, #ff4545, #e30000);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  text-transform: none;
}

/* Ensure keyboard focus visibility on CTA */
.product-ad a:focus-visible p {
  outline: 3px solid #9effff;
  outline-offset: 2px;
}

/* Minor footer text */
footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: .92rem;
  text-align: center;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 6rem 2rem 3rem; min-height: calc(100vh - 180px); }
  .image-frame { max-width: 860px; padding: 1.25rem; }
  .image-frame img { border-radius: 14px; }
}

@media (min-width: 1024px) {
  :root { --bg-end: #9a2c1c; }
  .image-frame { transform: translateZ(0); }
  footer { padding: 2rem 2rem; }
}

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