/* Innovution site — layout, page chrome, animation utilities */

html, body { height: 100%; margin: 0; }
body { overflow-x: hidden; background: var(--bg); }
button, select, textarea, input { font-family: inherit; }
a { border-bottom: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--steel-200); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel-300); }

#app { min-height: 100vh; }

/* Page transitions */
.page-enter { animation: pageIn 320ms var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-2 { transition-delay: 80ms; }
.reveal-3 { transition-delay: 160ms; }
.reveal-4 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .page-enter, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Section helpers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }

/* Navy band — used for proof, gov-con, footer */
.band-navy { background: var(--navy-900); color: var(--fg-inverse); }
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: var(--fg-inverse); }
.band-navy p { color: var(--steel-300); }

/* Dot grid background for navy sections */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Axis line — thin orange rule */
.rule-orange { width: 32px; height: 1.5px; background: var(--orange-600); display: inline-block; }
.rule-orange.on-dark { background: var(--orange-500); }

/* Eyebrow override — vertical bar (token CSS has horizontal). Matches React Eyebrow. */
.eyebrow::before {
  content: '';
  width: 2.5px;
  height: 14px;
  background: var(--fg-accent);
  display: inline-block;
  border-radius: 1px;
}

/* Pill tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg2);
  background: var(--bg-elevated);
  font-family: var(--font-body);
  white-space: nowrap;
}
.pill.on-dark { color: var(--steel-200); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--orange-500); display: inline-block; }

/* Orange dot bullet — brand mark */
.brand-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--orange-600); display: inline-block; }

/* Mono caption */
.mono-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}
.mono-cap.on-dark, .on-dark.mono-cap { color: var(--steel-400); }

/* Terminal */
.terminal {
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,114,42,0.05);
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.terminal-head .traf { width: 10px; height: 10px; border-radius: 999px; }
.terminal-body { padding: 18px 20px 22px; min-height: 280px; }
.terminal .c-comment { color: var(--steel-400); }
.terminal .c-key { color: var(--orange-500); }
.terminal .c-str { color: #9ec5fe; }
.terminal .c-num { color: #f8975f; }
.terminal .c-ok  { color: #6ad29a; }
.terminal .c-fn  { color: #e2e8f0; }
.terminal .c-dim { color: var(--steel-500); }
.terminal .cursor { display: inline-block; width: 7px; height: 14px; background: var(--orange-500); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Card grid utility */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 980px) {
  .grid-12 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* Subtle underline link */
.text-link {
  color: var(--fg-accent);
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover { color: var(--orange-700); }
.text-link.on-dark { color: var(--orange-500); }
.text-link.on-dark:hover { color: var(--orange-400); }

/* FAQ accordion */
.faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--fg1);
  user-select: none;
}
.faq-a {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.65;
  max-width: 720px;
  margin-top: 12px;
}
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: all 140ms var(--ease-out);
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { background: var(--orange-100); border-color: var(--orange-300); }
