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

html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Color system: navy hacker vibe with red neon accents */
:root {
  --bg-navy: #0a1020;
  --bg-navy-dk: #070b1a;
  --frame: rgba(12, 18, 40, 0.72);
  --glass: rgba(14, 22, 52, 0.70);
  --text: #e6f0ff;
  --muted: #a6b3d0;
  --red: #ff2b2b;
  --red-dark: #c31212;
  --focus: 0 0 0 3px rgba(255,255,255,.35);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: var(--bg-navy);
  min-height: 100vh;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Red waves background (soft parallax-like layers) */
body::before,
body::after {
  content: "";
  position: fixed;
  left: -15%;
  width: 130%;
  height: 48vh;
  bottom: -8vh;
  background-repeat: repeat-x;
  z-index: -1;
  pointer-events: none;
  filter: blur(0.2px);
}
body::before {
  /* subtle red wave line (layer 1) */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='200' height='60' viewBox='0 0 200 60'>\
<path d='M0,28 C40,6 80,46 120,28 S 180,28 200,28' fill='none' stroke='%23ff2b2b' stroke-width='6' stroke-linecap='round'/>\
</svg>");
  animation: drift 16s linear infinite;
  opacity: .6;
  bottom: -6vh;
}
body::after {
  /* deeper red wave line (layer 2) */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='240' height='70' viewBox='0 0 240 70'>\
<path d='M0,36 C60,8 100,60 180,18 S 240,36 240,36' fill='none' stroke='%23ff3b3b' stroke-width='6' stroke-linecap='round'/>\
</svg>");
  animation: drift2 26s linear infinite;
  opacity: .55;
  bottom: -8vh;
}
@keyframes drift { 0% { transform: translateX(0); } 100% { transform: translateX(-60px); } }
@keyframes drift2 { 0% { transform: translateX(0); } 100% { transform: translateX(60px); } }

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

.image-frame {
  width: min(94vw, 720px);
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  outline: 0;
}

/* Footer with product ad as frosted glass card + CTA */
footer {
  margin-top: auto;
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  width: 100%;
  background: transparent;
  color: var(--muted);
}

.product-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .9rem;
  width: min(92vw, 700px);
  border-radius: 12px;
  background: rgba(13, 18, 40, 0.72);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  font-size: 1.05rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.product-ad a {
  text-decoration: none;
  color: #fff;
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), #e01616);
  border: 1px solid rgba(0,0,0,.25);
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25),
              0 0 0 6px rgba(255,0,0,.6);
  transform: translateY(-1px);
}
.product-ad a:hover { transform: translateY(-1px); }

/* Subtle helper: focus for links in case of keyboard nav inside footer */
.product-ad a:focus { outline: none; }

/* Small helpers to keep content readable on narrow screens */
@media (min-width: 600px) {
  main { padding: 5rem 2rem 3rem; }
}
@media (min-width: 900px) {
  /* Optional: keep a pleasant vertical rhythm on larger screens */
  footer { padding: 2rem 2rem 2.5rem; }
}
