/* CSS for cyberpunk hacker landing with yellow waves, frosted glass, mobile-first */ 

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --yellow: #ffd166;
  --yellow-dk: #e6b400;
  --text: #eaf0ff;
}

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

html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--fg);
  background: var(--bg);
  /* Yellow waves background (data-URL SVG) */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'>\
  <defs>\
    <linearGradient id='g' x1='0' y1='0' x2='0' y2='1'>\
      <stop stop-color='%23ffd166' offset='0'/>\
      <stop stop-color='%23ffb300' offset='1'/>\
    </linearGradient>\
  </defs>\
  <path d='M0,420 C200,380 400,460 600,420 C800,380 1000,360 1200,420 L1200,600 L0,600 Z' fill='url(%23g)' opacity='0.95'/>\
  <path d='M0,460 C180,420 360,500 540,460 C720,420 900,420 1080,460 C1200,480 1200,480 1200,480 L1200,600 L0,600 Z' fill='%23ffd94d' opacity='0.5'/>\
</svg>");
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset for readability on all elements within body */
main, footer { width: 100%; }

/* Layout: mobile-first, centered hero image with frosted glass overlay */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 160px);
}

.image-frame {
  position: relative;
  width: min(92vw, 1000px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: #111;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.35s ease;
}
.image-frame:hover { transform: translateY(-2px); }

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

/* Frosted glass overlay at bottom of image */
.image-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
}

/* Subtle caption area text (future use) - kept minimal for now */
.image-frame::before {
  content: "";
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 12px;
  letter-spacing: .4px;
  opacity: 0; /* hidden by default; reserved for potential caption/brand tag */
  pointer-events: none;
}

/* Footer area with product ad CTA */
footer {
  text-align: center;
  padding: 1.75rem 1rem;
  color: #e8e8e8;
  background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0.0));
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.28);
  margin-bottom: 0.75rem;
}
.product-ad h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: .3px;
}
.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.product-ad a p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  background: var(--yellow);
  color: #1a1a1a;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Focus styles for accessibility */
a:focus-visible {
  outline: 0;
}
.product-ad a:focus-visible p {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9);
  transform: translateY(-1px);
  outline: none;
}
.product-ad a:focus-visible {
  outline: none;
  filter: saturate(1.1);
}

/* Global text readability on dark backdrop */
body, button, input, textarea {
  color: var(--fg);
}
h1, h2, h3, h4, h5, h6 {
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 120px); }
  .image-frame { width: min(88vw, 1120px); }
  footer { display: grid; grid-template-columns: auto 1fr; align-items: center; justify-items: center; gap: 1.25rem; }
  .product-ad { margin: 0; }
}
@media (min-width: 1024px) {
  .image-frame { border-radius: 22px; }
}