/* Cyberpunk landing: maroon zigzag background, frosted glass, purple accents (mobile-first) */

/* Light reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Color tokens and global styles */
:root {
  --bg-maroon-1: #2b0000;
  --bg-maroon-2: #6b0f22;
  --text: #f6f3ff;
  --muted: rgba(246,243,255,0.9);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --focus: 0 0 0 3px rgba(165, 92, 246, 0.6);
  --shadow: 0 10px 28px rgba(0,0,0,.25);
  --cta-start: #5b10a3;
  --cta-end: #8a3fea;
}

/* Maroon zigzag background (subtle, space-friendly) */
body {
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background-color: var(--bg-maroon-1);
  /* Zigzag pattern using layered gradients */
  background-image:
    linear-gradient(135deg, var(--bg-maroon-2) 25%, transparent 25%),
    linear-gradient(225deg, var(--bg-maroon-2) 25%, transparent 25%),
    linear-gradient(315deg, var(--bg-maroon-2) 25%, transparent 25%),
    linear-gradient(45deg, var(--bg-maroon-2) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  /* Slight vignette to enhance hacker vibe on edges */
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container basics (centered content) */
main {
  display: block;
  padding: 24px 12px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Frosted glass image frame for the painting */
.image-frame {
  width: min(92vw, 680px);
  margin: 40px auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* Subtle glow to enhance cyber aesthetic */
  filter: saturate(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* CTA-like ad block in the footer area (frosted glass) */
footer {
  padding: 18px 12px;
  text-align: center;
  color: rgba(246,243,255,0.95);
  background: transparent;
}

.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(980px, 92%);
  margin: 22px auto 10px;
  padding: 14px 18px;
  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);
  box-shadow: var(--shadow);
}

.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0;
  white-space: nowrap;
}

.product-ad p {
  margin: 0;
  color: white;
}

/* CTA button styling (purple hacker vibe) */
.product-ad a {
  text-decoration: none;
  display: inline-block;
}

.product-ad a p {
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 14px rgba(122, 60, 255, 0.4);
  transition: transform .2s ease, filter .2s ease;
  display: inline-block;
}

.product-ad a p:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.product-ad a:focus-visible p {
  outline: none;
  box-shadow: 0 0 0 0 transparent;
  border: 2px solid rgba(255,255,255,0.8);
  /* Focus ring to meet accessibility requirements */
  box-shadow: 0 0 0 3px rgba(167, 107, 255, 0.75);
}
.product-ad a:focus-visible {
  outline: none;
}

/* Text inside ad for accessibility on small screens */
@media (max-width: 420px) {
  .product-ad {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-ad h3 {
    margin-bottom: 6px;
  }
}

/* Basic responsive tweaks for larger screens (still mobile-first) */
@media (min-width: 640px) {
  .image-frame {
    width: min(72vw, 760px);
  }
}

@media (min-width: 1024px) {
  main { padding: 40px 0; }
  .image-frame { margin: 60px auto; }
  footer { padding: 24px 0; }
}
