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

:root {
  --coral: #FF7F50;
  --olive: #6B8E23;
  --olive-deep: #556B2F;
  --bg: #FF7F50;
  --text: #eaf7e0;
  --glass: rgba(255, 255, 255, 0.08);
}

html, body { height: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue";
  color: var(--text);
  background: var(--coral);
  /* coral noise texture (soft grain) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.08) 1px, transparent 1px),
    radial-gradient(circle at 4px 7px, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 6px 6px, 6px 6px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Layout */
main { display: grid; place-items: center; padding: 2rem 1rem; width: 100%; }

.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
}

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

/* Subtle overlay to enhance "hacker" depth on hero image */
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* Frosted glass footer card (CTA) and text */
footer {
  margin-top: 2rem;
  padding: 1.5rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  color: rgba(234, 245, 235, 0.95);
  width: 100%;
}

.product-ad {
  display: inline-block;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15, 24, 12, 0.55);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  text-align: center;
}

.product-ad h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: #eaffea;
  letter-spacing: .2px;
}

.product-ad p { margin: 0; }

/* CTA button (olive on coral hacker vibe) */
.product-ad a {
  display: inline-block;
  margin-top: .4rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover, .product-ad a:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  outline: none;
}
.product-ad a:focus-visible {
  outline: 3px solid #FFD166;
  outline-offset: 2px;
}

/* Text under ad / copyright */
footer p { opacity: .92; }

/* Accessibility focus on links outside of ad as well */
a:focus-visible {
  outline: 3px solid #FFD166;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 4rem 2rem; }
  .image-frame { width: min(70vw, 1000px); }
  footer { padding: 2rem; grid-auto-flow: column; justify-items: center; }
  .product-ad { padding: 1.1rem 1.5rem; }
}