/* Light reset and CSS variables for cyberpunk hacker vibe */
:root{
  --bg: #0b0b0f;
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.25);
  --red: #e50914;
  --red-dark: #b40012;
  --text: #e7e7e7;
  --soft: rgba(0,0,0,.25);
  --glow: 0 0 14px rgba(229,9,20,.8);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Red low-poly background (tiling SVG) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><polygon points='0,0 20,0 0,20' fill='%23d4181a'/><polygon points='20,0 20,20 0,20' fill='%23b40f16'/><polygon points='0,10 10,20 0,20' fill='%23e13c2d'/><polygon points='10,0 20,10 20,0' fill='%23ff5a5a'/></svg>");
  background-size: 40px 40px;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* Ensure a frosted glass feel on key panels */
.main, header, footer, .image-frame, .product-ad {
  will-change: transform;
}

/* Layout: mobile-first, single-column flow */
header {
  padding: 1.25rem 1rem 0.5rem;
  text-align: center;
}

header h1 {
  font-size: clamp(1.4rem, 2.6vw + 0.8rem, 2.6rem);
  margin: 0.25rem auto;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,0,0,.75);
  letter-spacing: .5px;
}

main {
  display: block;
  padding: 0 1rem;
}

.image-frame {
  max-width: 1000px;
  margin: 1.25rem auto 0;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 26px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  filter: saturate(1.05);
  outline: 1px solid rgba(255,255,255,.15);
}

footer {
  padding: 1.75rem 1rem 2rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
}

/* Frosted glass card for product ad */
.product-ad {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  width: min(92%, 720px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

.product-ad h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #ff2d2d 0%, #e50914 60%, #b40012 100%);
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 6px 14px rgba(229,9,20,.6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(229,9,20,.82);
}
.product-ad a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.product-ad > a > p {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 0.95em;
  display: inline;
}

/* Small screens: tighten space for readability */
@media (max-width: 600px) {
  .image-frame { margin-top: 0.75rem; }
  .product-ad { padding: .9rem; width: 100%; }
}

/* Medium and up: more generous hero feel */
@media (min-width: 768px) {
  header { padding-top: 1.75rem; }
  .image-frame { margin: 2rem auto; border-radius: 18px; padding: 1rem; }
  .product-ad { padding: 1.25rem; }
  header h1 { font-size: 2.2rem; }
}
