/* ============================================================
   Iqea landing page — styles
   ============================================================ */

*{margin:0;padding:0;box-sizing:border-box}

html:focus-within{scroll-behavior:smooth}

body{
  font-family:system-ui,-apple-system,sans-serif;
  background:#0d0d0d;
  color:#e0e0e0;
  line-height:1.6;
}

/* Skip link (a11y) — visually hidden until focused */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  background:#00B894;
  color:#0d0d0d;
  padding:10px 16px;
  font-size:13px;
  font-weight:600;
  border-radius:0 0 6px 0;
  z-index:100;
}
.skip-link:focus{left:0}

/* Visually-hidden utility (screen readers only) */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.container{max-width:960px;margin:0 auto;padding:0 24px}

/* ---------- Header ---------- */
header{
  padding:48px 0 0;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}
.stealth{
  color:#00B894;
  font-size:14px;
  font-weight:700;
  letter-spacing:3px;
  text-transform:uppercase;
  border:2px solid #00B894;
  padding:6px 18px;
  border-radius:6px;
  margin-top:4px;
}
.logo{
  font-size:32px;
  font-weight:700;
  color:#fff;
  letter-spacing:-1px;
}
.tag{
  color:#00B894;
  font-size:14px;
  font-weight:500;
  margin-top:4px;
  letter-spacing:0.5px;
}

/* ---------- Hero ---------- */
.hero{padding:64px 0 16px}
.hero h1{
  font-size:clamp(28px,5vw,44px);
  font-weight:700;
  color:#fff;
  line-height:1.2;
  max-width:700px;
}
.hero h1 span{color:#00B894}
.hero p{
  font-size:18px;
  color:#888;
  margin-top:16px;
  max-width:600px;
}

/* ---------- Stats (single rotating slot) ---------- */
#stats{padding:16px 0 24px}
.stats-rotator{
  padding:6px 0 8px;
}
.stats-rotator .stat-line{
  display:flex;
  align-items:center;
  gap:clamp(10px,2.5vw,20px);
  padding:clamp(14px,3vw,22px) clamp(14px,3.5vw,26px);
  background:#111;
  border:1px solid #1d1d1d;
  border-radius:6px;
  font-family:'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  height:92px;
  box-sizing:border-box;
  overflow:hidden;
}
.stats-rotator .stat-top{
  display:contents;
}
.stats-rotator .num,
.stats-rotator .label,
.stats-rotator .src{
  display:flex;
  align-items:center;
  height:48px;
  line-height:1;
  position:relative;
}
.stats-rotator .num{
  flex:0 0 auto;
  font-size:clamp(20px,5.5vw,30px);
  font-weight:700;
  color:#fff;
  letter-spacing:-.5px;
  line-height:1.1;
}
.stats-rotator .label{
  flex:1 1 auto;
  font-size:clamp(12px,2.8vw,15px);
  color:#c4c4c4;
  font-family:system-ui,-apple-system,sans-serif;
  line-height:1.35;
}
.stats-rotator .src{
  flex:0 0 auto;
  font-size:clamp(9px,2vw,11px);
  color:#00B894;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  white-space:nowrap;
}

/* Caret — sits on whichever field is actively typing or erasing */
.stats-rotator .typing::after{
  content:'';
  width:2px;
  height:1em;
  background:currentColor;
  margin-left:3px;
  align-self:center;
  animation:iqea-caret 1s step-end infinite;
  flex:0 0 auto;
}
.stats-rotator .num.typing::after{background:#fff}
.stats-rotator .src.typing::after{background:#00B894}

/* Progress dots */
.stats-dots{
  list-style:none;
  margin:14px 0 0;
  padding:0;
  display:flex;
  gap:8px;
  justify-content:center;
}
.stats-dots li{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#2a2a2a;
  transition:background .25s ease, width .25s ease;
}
.stats-dots li.active{
  background:#00B894;
  width:22px;
  border-radius:3px;
}

@media (max-width: 600px){
  .stats-rotator .stat-line{
    display:block;
    position:relative;
    padding:0;
    height:86px;
    overflow:hidden;
  }
  .stats-rotator .stat-top{
    display:flex;
    align-items:center;
    gap:12px;
    position:absolute;
    top:14px;
    left:16px;
    right:16px;
    height:32px;
    overflow:hidden;
  }
  .stats-rotator .num{
    flex:0 0 auto;
    height:32px;
  }
  .stats-rotator .label{
    flex:1 1 auto;
    height:32px;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:clip;
  }
  .stats-rotator .src{
    position:absolute;
    bottom:14px;
    right:16px;
    height:18px;
  }
}

/* Screen-reader / no-JS fallback list — hidden visually */
.stats-sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@keyframes iqea-caret{
  0%,50%{opacity:1}
  51%,100%{opacity:0}
}

.divider{border:none;border-top:1px solid #1a1a1a;margin:16px 0}

/* ---------- Generic section ---------- */
section{padding:16px 0 24px}
section h2{
  font-size:24px;
  font-weight:700;
  color:#fff;
  margin-bottom:8px;
}
section .sub{
  font-size:14px;
  color:#666;
  margin-bottom:32px;
}

/* ---------- Engines ---------- */
.engines{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.engines-sub{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:16px;
}
.engine{
  background:#161616;
  border:1px solid #222;
  border-radius:8px;
  padding:24px;
  position:relative;
  overflow:hidden;
}
.engine::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:#333;
}
.engine.e1::before{background:#00B894}
.engine.e2::before{background:#888}
.engine.e3::before{background:#555}
.engine .phase{
  font-size:11px;
  color:#666;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:8px;
}
.engine h3{
  font-size:18px;
  font-weight:600;
  color:#fff;
  margin-bottom:8px;
}
.engine p{
  font-size:13px;
  color:#888;
  margin-bottom:12px;
}
.engine .metric{
  font-size:13px;
  font-weight:600;
  color:#00B894;
  background:#0d1f1a;
  padding:6px 12px;
  border-radius:4px;
  display:inline-block;
}

/* Governance card: description left, compliance chip right */
.engine.e3 .e3-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.engine.e3 .e3-row p{margin-bottom:0;flex:1 1 auto;min-width:0}
.engine.e3 .e3-row .metric{flex:0 0 auto;white-space:nowrap}

/* ---------- OSS ---------- */
.oss{padding:16px 0 24px}
.oss-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  list-style:none;
}
.oss-grid-sub{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:12px;
  list-style:none;
}
.oss-card{
  background:#161616;
  border:1px solid #222;
  border-radius:8px;
  padding:16px;
  text-align:center;
}
.oss-card .name{font-size:16px;font-weight:600;color:#fff}
.oss-card .role{font-size:12px;color:#00B894;margin-top:4px}
.oss-card .scale{font-size:11px;color:#555;margin-top:8px}

/* ---------- CTA ---------- */
.cta-section{padding:16px 0 24px;text-align:center}
.cta-section h2{
  font-size:28px;
  font-weight:700;
  color:#fff;
  margin-bottom:8px;
}
.cta-section p{
  font-size:16px;
  color:#888;
  margin-bottom:24px;
}
.email-form{
  display:flex;
  gap:8px;
  max-width:440px;
  margin:0 auto;
  flex-wrap:wrap;
  justify-content:center;
}
.email-form input{
  flex:1;
  min-width:240px;
  padding:12px 16px;
  background:#161616;
  border:1px solid #333;
  border-radius:6px;
  color:#fff;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease;
}
.email-form input:focus{border-color:#00B894}
.email-form input:invalid:not(:placeholder-shown){border-color:#c84a4a}
.email-form input[aria-invalid="true"]{border-color:#c84a4a}

.email-form button{
  padding:12px 24px;
  background:#00B894;
  color:#0d0d0d;
  border:none;
  border-radius:6px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, opacity .15s ease;
  position:relative;
}
.email-form button:hover:not(:disabled){background:#00a383}
.email-form button:disabled{opacity:.6;cursor:wait}
.email-form button .spinner{
  display:inline-block;
  width:12px;
  height:12px;
  border:2px solid #0d0d0d;
  border-top-color:transparent;
  border-radius:50%;
  margin-right:8px;
  vertical-align:-2px;
  animation:iqea-spin .7s linear infinite;
}
@keyframes iqea-spin{to{transform:rotate(360deg)}}

/* Form message area (polite live region) */
.form-msg{
  font-size:14px;
  margin-top:14px;
  min-height:1.4em;
}
.form-msg.success{color:#00B894}
.form-msg.error{color:#d46a6a}

/* ---------- Footer ---------- */
footer{
  padding:32px 0;
  border-top:1px solid #1a1a1a;
  text-align:center;
}
footer p{font-size:12px;color:#444}
.badges{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:12px;
  flex-wrap:wrap;
}
.badge{
  font-size:11px;
  color:#666;
  background:#161616;
  border:1px solid #222;
  padding:4px 12px;
  border-radius:4px;
}

/* ---------- Reduced motion: no typewriter, no spin, no caret ---------- */
@media (prefers-reduced-motion: reduce){
  .stats-rotator .typing::after{display:none}
  .email-form button .spinner{animation:none}
  html:focus-within{scroll-behavior:auto}
}

/* Honeypot: off-screen, off the tab order, hidden from a11y tree. */
.hp-field{
  position:absolute !important;
  left:-10000px !important;
  width:1px;
  height:1px;
  overflow:hidden;
}
