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

html, body { height: 100%; }
:root {
  --orange: #ff6b00;
  --orange-dark: #ff4d00;
  --bg-1: #ffffff;
  --bg-2: #fff7f0;
  --bg-3: #ffd9a8;
  --glass: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.55);
  --text: #1a1a1a;
  --shadow: 0 12px 28px rgba(0,0,0,.15);
}

html { font-size: 16px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  /* White sunset gradient background */
  background: linear-gradient(135deg,
    #ffffff 0%,
    #fffaf6 25%,
    #fff2e2 50%,
    #ffd9a8 75%,
    #ff7a1f 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Subtle cyberpunk overlay (optional decorative noise/scanlines) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.04;
  z-index: 0;
}

/* Light reset for layout elements */
main, footer { width: 100%; }
main { display: grid; place-items: center; padding: 4vw 1rem; min-height: calc(100vh - 120px); z-index: 0; }

/* Frosted glass hero container around the image */
.image-frame {
  width: min(92vw, 860px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

/* Subtle neon glow around the frame to enhance hacker vibe */
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 20px;
  box-shadow: 0 0 40px 8px rgba(255, 107, 0, 0.25);
  pointer-events: none;
  z-index: 0;
}

/* Image styling */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
  transform: translateZ(0);
  z-index: 1;
}

/* Ensure the hero content is readable on top of the image if needed */
.image-frame > * { position: relative; z-index: 1; }

/* Footer with frosted glass card and CTA styling */
footer {
  padding: 1.75rem 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.product-ad {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  min-width: 210px;
  max-width: 380px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.product-ad h3 {
  font-size: 0.92rem;
  margin: 0 0 0.25rem;
  color: #111;
  text-shadow: 0 0 6px rgba(255,120,0,0.25);
}

.product-ad a { text-decoration: none; }

.product-ad a p {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  font-weight: 700;
  margin: 0;
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-ad a:hover p {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.9);
}

.product-ad a:focus-visible p {
  outline: 3px solid rgba(255, 213, 128, 0.95);
  outline-offset: 2px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  opacity: 0.92;
}

/* Accessibility: focus ring for keyboard users across links */
a:focus-visible { outline: 3px solid rgba(255, 213, 128, 0.9); outline-offset: 2px; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 640px) {
  main { padding: 5vw 2rem; }
  .image-frame { border-radius: 22px; }
  .product-ad { align-self: flex-start; }
}

@media (min-width: 900px) {
  footer { justify-content: space-between; padding: 2rem 2rem; }
  .product-ad { min-width: 260px; }
} 

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