/* Hacker-olive cyberpunk landing: mobile-first, single stylesheet */

/* Light reset */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Theme */
:root {
  --olive: #6b8e23;
  --olive-dark: #4a6b1e;
  --olive-soft: #7faa3a;
  --purple: #b46cff;
  --purple-dark: #7a48e8;
  --bg: #0b0b12;
  --text: #e8f0e8;
  --muted: #a6c6a3;
  --glass: rgba(19, 25, 20, 0.65);
  --card: rgba(20, 26, 20, 0.65);
  --shadow: 0 8px 28px rgba(0,0,0,.55);
  --radius: 14px;
}

/* Global */
html, body { height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: var(--bg);
  /* Purple diagonal lines + subtle olive haze */
  background-image:
    repeating-linear-gradient(135deg,
      rgba(124, 0, 255, .25) 0 6px,
      rgba(0,0,0,0) 6px 12px),
    linear-gradient(to bottom, rgba(8,12,14,.9), rgba(8,12,14,.9));
  background-blend-mode: overlay;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */
main { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
footer { padding: 1.25rem; text-align: center; background: rgba(6,10,14,.65); border-top: 1px solid rgba(122,255,210,.25); }

.image-frame {
  width: min(960px, 92%);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(180,190,170,.25);
  box-shadow: var(--shadow), inset 0 0 0 rgba(0,0,0,0);
  backdrop-filter: blur(2px) saturate(110%);
  -webkit-backdrop-filter: blur(2px) saturate(110%);
  isolation: isolate;
  /* subtle neon glow around the frame */
  outline: 1px solid rgba(120,255,210,.25);
}
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  /* faint diagonal shimmer for cyberpunk vibe */
  background: linear-gradient(135deg, rgba(0,0,0,0) 40%, rgba(120,0,200,.15) 60%, rgba(0,0,0,0) 100%);
  mix-blend-mode: overlay;
}
.image-frame:hover { outline-color: rgba(120,255,210,.5); outline-width: 2px; }

/* Image sizing inside frame (responsive) */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background: #04060a;
}

/* Frosted-glass top bar illusion for caption (optional future use) */
.image-frame + .caption { 
  display: block;
  text-align: center;
  padding-top: .75rem;
  color: var(--muted);
  font-size: .92rem;
  opacity:.9;
}

/* CTA styling in footer (prominent buttons) */
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  max-width: 640px;
  margin: 0 auto 0.75rem;
  padding: .6rem;
  border-radius: 12px;
  background: var(--glass);
  background: linear-gradient(to bottom right, rgba(20,26,20,.75), rgba(10,16,12,.75));
  border: 1px solid rgba(122,255,210,.28);
  backdrop-filter: saturate(120%) blur(4px);
  -webkit-backdrop-filter: saturate(120%) blur(4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #eafff1;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.product-ad a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  color: #041a0b;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(49, 193, 135, .85), rgba(20, 99, 60, .85));
  border: 1px solid rgba(120,255,210,.75);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 0 14px rgba(20,180,120,.6);
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20,180,120,.8); }
.product-ad a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}
footer p {
  margin-top: .25rem;
  font-size: .85rem;
  color: #cbdcc8;
  opacity: .9;
}

/* Accessibility helpers */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 600px) {
  .image-frame { border-radius: 16px; }
  .product-ad { flex-direction: row; justify-content: center; align-items: center; }
  .product-ad h3 { font-size: 1.05rem; }
}
@media (min-width: 900px) {
  main { padding: 3rem 0; }
  .image-frame { border-radius: 20px; }
  .image-frame img { max-height: 70vh; }
  .product-ad { padding: 1rem 1.25rem; }
}
