:root {
  --ink: #0B1D3A;
  --ink-soft: #4A5A72;
  --paper: #F7FAFE;
  --paper-alt: #ECF4FF;
  --line: #DCE5F0;
  --teal: #0B1D3A;
  --teal-deep: #07142B;
  --teal-ink: #FFFFFF;
  --teal-ink-soft: #B8C6DC;
  --accent: #246BFD;
  --radius: 4px;
  --wrap: 1040px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF0F8;
    --ink-soft: #A3B1C6;
    --paper: #070F20;
    --paper-alt: #0D1A33;
    --line: #1C2B47;
    --teal: #0B1D3A;
    --teal-deep: #050C1A;
    --teal-ink: #F1F5FB;
    --teal-ink-soft: #A3B1C6;
    --accent: #67E8F9;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

a { color: var(--accent); }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--paper);
  z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--wrap); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none; color: var(--ink);
}
.brand-logo { display: block; width: 160px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.main-nav a:hover { color: var(--ink); }

.lang-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.cta-nav {
  background: var(--teal);
  color: var(--teal-ink);
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.cta-nav:hover { background: var(--teal-deep); }

/* one orchestrated motion moment: sections rise into place once, as they're reached */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.16,.8,.3,1), transform 0.8s cubic-bezier(.16,.8,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* hero — committed teal band, headline + console mockup side by side */
.hero { background: var(--teal); color: var(--teal-ink); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 460px);
  gap: 56px;
  align-items: center;
  padding: 96px 28px 88px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 64px 24px 56px; gap: 40px; }
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: #67E8F9;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
}
.hero-sub { color: var(--teal-ink-soft); font-size: 1.1rem; max-width: 46ch; margin: 0 0 36px; }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-secondary {
  color: var(--teal-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.cta-secondary:hover { color: var(--teal-ink); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal-ink);
  color: var(--teal-deep);
  padding: 13px 24px 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.18); transform: translateY(-1px); }
.cta-arrow { transition: transform 0.15s ease; }
.cta:hover .cta-arrow { transform: translateX(3px); }

/* automation console mockup — the one concrete "prove it" moment in the hero */
.console {
  background: #06122A;
  border: 1px solid #1C2E4D;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
}
.console-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: #0A1A36;
  border-bottom: 1px solid #1C2E4D;
}
.console-title { font-family: var(--font-mono); font-size: 0.74rem; color: #9FB3D1; letter-spacing: 0.01em; }
.console-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #67E8F9;
  background: rgba(103,232,249,0.12);
  border: 1px solid rgba(103,232,249,0.3);
  border-radius: 999px;
  padding: 3px 9px;
}
.console-body { padding: 16px; }
.console-queue { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.console-queue li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 10px;
  border-radius: 6px;
  color: #8FA3C2;
}
.console-queue li.is-done { color: #6B7F9E; text-decoration: line-through; text-decoration-color: #34496B; }
.console-queue li.is-active { color: #F1F5FB; background: rgba(103,232,249,0.08); }
.console-queue li.is-queued { color: #7489AA; }
.q-icon { width: 13px; height: 13px; flex: none; }
.q-icon-spin { animation: q-spin 1.4s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
.console-log {
  margin: 0;
  padding: 12px 12px 4px;
  border-top: 1px solid #1C2E4D;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #67E8F9;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 118px;
}
.console-caption {
  margin: 0;
  padding: 0 16px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #7489AA;
}

section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

/* problem + guide, merged into one connected narrative spine instead of two flat stacked
   blocks — each node is its own flex row so the dot sits at that row's own top regardless
   of how the paragraph reflows; no hardcoded pixel offsets. */
.narrative { padding: 76px 0; }
.spine-node { display: flex; gap: 28px; }
.spine-node + .spine-node .spine-content { padding-top: 0; }
.spine-rail { flex: none; width: 18px; display: flex; flex-direction: column; align-items: center; }
.spine-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.spine-dot-alt { width: 8px; height: 8px; background: #67E8F9; border: 2px solid var(--accent); }
.spine-line { width: 2px; flex: 1; background: var(--line); margin-top: 8px; }
.spine-content { flex: 1; padding-bottom: 44px; }
.spine-content h2 { max-width: 620px; }
.spine-content p { color: var(--ink-soft); font-size: 1.05rem; max-width: 66ch; margin: 0; }

/* work / services */
.work { padding: 84px 0; }
.work-block { padding: 44px 0; border-top: 1px solid var(--line); }
.work-block:first-child { border-top: none; padding-top: 0; }
.work-block h2 { max-width: 620px; }
.work-block > p { color: var(--ink-soft); font-size: 1.05rem; max-width: 68ch; margin: 0; }

/* grant callout — the honest, sourced differentiator; own visual weight, not a generic card */
.grant { padding: 72px 0; background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grant h2 { max-width: 680px; color: var(--accent); }
.grant p { color: var(--ink-soft); font-size: 1.05rem; max-width: 68ch; margin: 0 0 14px; }
.grant-disclaimer { font-size: 0.85rem; opacity: 0.75; margin: 0; }

/* how we work — typographic columns, no cards, no icons, no numbers */
.how { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 84px 0; }
.how-thread { display: flex; align-items: center; margin-bottom: 20px; }
.thread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.thread-line { flex: 1; height: 1px; background: var(--line); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
}
.how-step {
  padding: 4px 28px;
  border-left: 1px solid var(--line);
}
.how-step:first-child { border-left: none; padding-left: 0; }
.how-step h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; }
.how-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 820px) {
  .how-thread { display: none; } /* the per-step left rule below already carries the sequence on mobile */
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-step { border-left: none; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
  .how-step:first-child { padding-left: 18px; border-left: 2px solid var(--line); }
}

/* faq — objections handled right before the ask, "validate then resolve" phrasing */
.faq { padding: 84px 0; }
.faq h2 { max-width: 620px; margin-bottom: 36px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { padding: 26px 0 26px 20px; border-top: 1px solid var(--line); border-left: 2px solid transparent; transition: border-color 0.2s ease; }
.faq-item:hover { border-left-color: var(--accent); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 1rem; max-width: 68ch; }

/* products — plain list, no card chrome */
.products { padding: 72px 0; }
.products-note { color: var(--ink-soft); max-width: 600px; margin: 0 0 22px; }
.product-list { list-style: none; margin: 0; padding: 0; }
.product-list li { border-top: 1px solid var(--line); padding: 16px 0; }
.product-list a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.product-list a:hover strong { color: var(--accent); }
.product-list strong { font-weight: 700; }

/* contact — bookend teal band */
.contact { background: var(--teal); color: var(--teal-ink); padding: 84px 0; }
.contact h2 { color: var(--teal-ink); }
.contact p { color: var(--teal-ink-soft); margin: 0 0 26px; max-width: 45ch; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 28px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}
.site-footer p { margin: 0 0 4px; }
.site-footer p:last-child { margin-bottom: 0; }
.footer-reg { opacity: 0.75; }
.footer-products { margin-top: 10px !important; }
.footer-products a { color: var(--ink-soft); font-size: 0.8rem; }

/* browser surfaces carry the palette too, not just the elements we draw */
::selection { background: var(--accent); color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html { scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* narrow screens: keep the logo at its 160px brand minimum, drop section links, keep CTA + language */
@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; }
  .main-nav { gap: 12px; }
  .main-nav a:not(.cta-nav) { display: none; }
}
