/* CSS: Hacker cyberpunk landing with frosted glass, yellow circuit vibe */

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

html, body { height: 100%; }
/* Mobile-first, dark with yellow circuit pattern background */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #f5f0c6;
  background-color: #050505;
  /* Yellow circuit-board look: layered gradients for a subtle glow grid */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 225, 90, 0.25) 0 6px, transparent 6px),
    radial-gradient(circle at 70% 40%, rgba(255, 225, 90, 0.18) 0 6px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(255, 210, 0, 0.08) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 210, 0, 0.08) 0 1px, transparent 1px 40px),
    linear-gradient(#0a0a0a, #050505);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px, cover;
  background-attachment: fixed;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  min-height: calc(100vh - 180px);
}

/* Frosted glass frame for hero image */
.image-frame {
  width: min(94vw, 860px);
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 180, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  position: relative;
  overflow: hidden;
}

.image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 0%, rgba(255,255,0,.15), transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,223,0,.5);
  background: #111;
}

/* Footer with a "Product Ad" card and copyright */
footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: #e6df9a;
  border-top: 1px solid rgba(255, 214, 0, 0.25);
  background: linear-gradient(#0a0a0a, #0a0a0a);
}

.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255, 214, 0, 0.4);
  width: min(92vw, 420px);
  margin: 0 auto 0.75rem;
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #ffd84a;
  letter-spacing: .3px;
}

.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #221;
  background: linear-gradient(#ffd600, #f7c400);
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.product-ad a:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }

.product-ad p { margin: 0; font-size: .9rem; color: #f8f1a5; }

footer > p { margin: .5rem 0 0; font-size: .85rem; color: #a79b50; }

/* Layout tweak for larger screens: center the ad with the frame */
@media (min-width: 700px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 8rem); }
  .image-frame { padding: 1.25rem; }
  footer { display: flex; justify-content: center; padding: 2rem 0; }
  .product-ad { margin: 0 1rem 0 0; }
}

@media (min-width: 900px) {
  .image-frame { width: 860px; }
  footer { width: 100%; justify-content: center; gap: 3rem; }
  .product-ad { margin: 0; }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}