/* Neon cyberpunk landing - beige low-poly triangles background, maroon hacker theme, frosted glass, mobile-first */

/* Reset + base */
*, *::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; color: #2b1c1c; background: #f5ecd9; min-height: 100vh; position: relative; }

/* Beige low-poly triangle background (subtle, decorative) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #f5ecd9;
  /* layered triangle shards for a low-poly feel */
  background-image:
    linear-gradient(135deg, rgba(226, 201, 153, 0.65) 0 25%, transparent 25% 50%, rgba(210, 181, 125, 0.65) 50% 75%, transparent 75% 100%),
    linear-gradient(45deg, rgba(213, 184, 120, 0.55) 0 25%, transparent 25% 50%, rgba(205, 169, 110, 0.55) 50% 75%, transparent 75% 100%),
    linear-gradient(135deg, rgba(238, 206, 158, 0.40) 0 25%, transparent 25% 50%, rgba(210, 170, 110, 0.40) 50% 75%, transparent 75% 100%),
    linear-gradient(-45deg, rgba(225, 196, 140, 0.45) 0 25%, transparent 25% 50%, rgba(200, 164, 110, 0.45) 50% 75%, transparent 75% 100%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px, 0 30px, 30px 0;
  opacity: 0.95;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Layout: mobile-first, center content */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

/* Frosted glass "hero" frame around the image */
.image-frame {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 1rem;
  max-width: 92vw;
  width: min(720px, 92vw);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  /* Subtle neon maroon glow edge */
  outline: 1px solid rgba(0,0,0,0.04);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(140, 0, 8, 0.25);
}
.image-frame:hover {
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
  /* optional decline to "glow" on the image itself for hacker vibe */
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Footer with "Product Ad" frosted card style and maroon accents */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #4a2a2a;
  background: linear-gradient(to bottom, rgba(255,255,255,0.0), rgba(255,255,255,0.0));
}
.product-ad {
  display: inline-block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #6a2e2e;
  letter-spacing: .2px;
}
.product-ad a {
  color: #2b0b12;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.product-ad a:focus-visible {
  outline: 3px solid #2c8;
  outline-offset: 2px;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0,0,0,0.15), 0 0 22px rgba(0, 230, 230, 0.6);
}
footer p {
  margin: 0;
  font-size: 0.92rem;
  color: #5b4a4a;
}

/* Links baseline color for accessibility */
a { color: #5b0b14; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: #7a0d1a; }

/* Subtle maroon accents for the "hacker" vibe on text blocks if any appear later */
h1, h2, h3, h4, h5, h6 { color: #3b0d16; }

/* Small screens: ensure comfortable tap targets */
.button, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame { transform: none !important; }
}

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding-top: 3rem; padding-bottom: 3rem; }
  .image-frame { width: min(720px, 70vw); padding: 1.25rem; }
  footer { padding: 2rem 0; }
}
