/* Global reset and tokens */
:root{
  --teal: #14b8a6;
  --teal-dark: #0a6b68;
  --red: #e11d48;
  --red-dark: #b3133a;
  --bg: #031018;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --text: #eaffff;
  --shadow: 0 20px 40px rgba(0,0,0,.45);
}
*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
  line-height:1.4;
  position: relative;
}

/* Teal waves background (light, performant) */
body::before,
body::after{
  content:"";
  position: fixed;
  left: -25%;
  width: 150%;
  height: 60vh;
  bottom: -10vh;
  background: radial-gradient(circle at 20% 60%, rgba(20,184,166,.25), transparent 40%),
              radial-gradient(circle at 60% 40%, rgba(0,210,210,.25), transparent 40%),
              linear-gradient(180deg, rgba(5,60,60,.50), rgba(0,0,0,0));
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: drift 22s linear infinite;
  opacity: .75;
}
body::after{ bottom:-8vh; animation-duration: 28s; }

@keyframes drift{
  0%{ transform: translateX(-8px); }
  50%{ transform: translateX(12px); }
  100%{ transform: translateX(-8px); }
}

/* Layout and hero area (mobile-first) */
main{
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 6rem 1rem 2rem;
}
.image-frame{
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: grid;
}
.image-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frosted glass for the hero frame label (subtle detail) */
.image-frame::after{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,.08), rgba(255,255,255,0));
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

/* Footer with hacker-theme product ad */
footer{
  width: 100%;
  padding: 1.25rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.product-ad{
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 1rem;
  width: min(92vw, 740px);
  margin: 0 auto 1rem;
  padding: .75rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.product-ad h3{
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
}
.product-ad a{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d48 0%, #b3133a 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.product-ad a:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
footer p{ color: rgba(234,246,246,.85); margin: .25rem 0 0; font-size: .92rem; }

/* Accessibility: ensure focus styles for keyboard navigation on all links if any */
a:focus-visible{
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible{
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 768px){
  main{ padding: 8rem 1rem 3rem; }
  .image-frame{ width: min(60vw, 760px); }
  footer{ padding-bottom: 3rem; }
}
@media (min-width: 1024px){
  .image-frame{ width: min(56vw, 820px); }
}