/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
:root {
  --olive: #8aa24a;
  --olive-dark: #6b7f2d;
  --olive-darker: #5a6b21;
  --bg: #0f1111;
  --panel: rgba(16, 20, 16, 0.65);
  --panel-border: rgba(120, 160, 110, 0.65);
  --text: #e6f0d0;
  --text-dim: #a9c58a;
  --cta: linear-gradient(#3b4212, #2b2f0b);
  --cta-hover: linear-gradient(#465015, #2e310f);
  --shadow: 0 6px 18px rgba(0,0,0,.35);
}
html, body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Gray crosshatch background */
  background-image:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    linear-gradient(45deg, rgba(0,0,0,.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.12) 25%, transparent 25%);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-position: 0 0, 0 0, 16px 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { -webkit-tap-highlight-color: transparent; }

/* Layout */
body { margin: 0; }
main {
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem;
}
.image-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: .75rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(6px) saturate(110%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px;
  display: block;
  /* Subtle olive glow on image edge for hacker vibe */
  filter: saturate(1.05);
  mix-blend-mode: normal;
}

/* Footer / CTA card */
footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-dim);
}
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(16, 20, 16, 0.65);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.32);
}
.product-ad h3 {
  margin: 0 0 .25rem 0;
  font-size: 1rem;
  color: #cfe5a3;
  display: flex; align-items: center; gap: .4rem;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  font-weight: 700;
  color: #f7ffd6;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--cta);
  border: 1px solid rgba(170,190,140,.9);
  display: inline-block;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); background: var(--cta-hover); }
.product-ad a:focus-visible p {
  outline: 2px solid #a8d08d;
  outline-offset: 2px;
}
footer p { margin: .75rem 0 0; font-size: .9rem; color: var(--text-dim); }

/* Cards spacing on larger screens */
@media (min-width: 700px) {
  main { padding: 2rem; }
  footer { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; }
  .product-ad { align-items: flex-start; }
}

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