/* Mind Trial Hacker Landing - CSS (single stylesheet, mobile-first, purple zigzag + olive hacker theme) */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
:root {
  --olive: #8dbb22;
  --olive-dark: #6b9418;
  --olive-soft: #a3c24a;
  --violet: #8a5cff;
  --bg: #0a0612;
  --fg: #e8fbdc;
  --fg-dim: #b8d6a2;
  --card: rgba(12, 24, 12, 0.68);
  --card-border: rgba(141, 190, 110, 0.45);
  --focus: 0 0 0 3px rgba(139, 252, 199, 0.65);
  --shadow: 0 20px 40px rgba(0,0,0,.5);
}
* { margin: 0; padding: 0; }

body {
  color: var(--fg);
  background: linear-gradient(#0b0412 0%, #0a0612 60%, #0b0412 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Purple zigzag background overlay (data-URL SVG tile) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'>\
  <polyline points='0,40 10,30 20,40 30,30 40,40' fill='none' stroke='%238a5cff' stroke-width='2'/>\
</svg>");
  background-size: 40px 40px;
  opacity: 0.45;
  mix-blend-mode: overlay;
  filter: saturate(1.2);
}

/* Layout: mobile-first hero container centered */
main {
  display: grid;
  place-items: center;
  padding: 28px 16px 20px;
  min-height: calc(100vh - 120px);
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92%, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(14, 28, 14, 0.65);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  display: grid;
  align-items: stretch;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom right, rgba(0,0,0,.0), rgba(0,0,0,.25));
  mix-blend-mode: multiply;
  border-radius: 18px;
  /* note: ::after on a non-positioned element may not overlay; kept for visual depth if positioned */
}

/* Footer with featured product card (CTA) */
footer {
  padding: 20px 16px 40px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.product-ad {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  text-align: center;
  width: min(480px, 92%);
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 26, 12, 0.62);
  border: 1px solid rgba(140, 170, 80, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.product-ad h3 {
  font-size: 1.05rem;
  color: #eaffdc;
  letter-spacing: .2px;
}
.product-ad a {
  text-decoration: none;
  width: 100%;
  display: block;
}
.product-ad a p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #041509;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(170, 255, 210, 0.95), rgba(125, 210, 110, 0.95));
  border: 1px solid rgba(180, 255, 210, 0.9);
  text-align: center;
  transition: transform .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }
.product-ad a:focus-visible p {
  outline: none;
  box-shadow: var(--focus);
}

/* Footer copyright text */
footer p {
  color: var(--fg-dim);
  font-size: 0.84rem;
  text-align: center;
  user-select: none;
}

/* Focus styles for accessibility (any link within page) */
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Small utility for subtle neon glow on focusable elements (buttons/links) */
button, [role="button"], a {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
a:hover { filter: brightness(1.05); }

/* Responsive tweaks: larger screens show more breathing room / slightly bigger hero */
@media (min-width: 768px) {
  main {
    padding-top: 52px;
    padding-bottom: 28px;
  }
  .image-frame {
    width: 720px;
    height: auto;
  }
  footer { padding-top: 10px; }
}
  
@media (min-width: 1024px) {
  main { padding: 80px 0 40px; }
  .image-frame { transform: translateY(-6px); }
}