/* ============================================================
   dispall — autonomous dispatching system / landing page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  --ink:        #131a30;   /* near-black navy for headings  */
  --ink-soft:   #2a3552;
  --navy:       #15244b;   /* brand deep navy (logo node, pills) */
  --navy-2:     #1b2e5c;
  --blue:       #2b62f0;   /* electric accent */
  --blue-2:     #3b6ef5;
  --blue-soft:  #eaf0fe;
  --blue-soft2: #f1f5ff;
  --muted:      #5b6478;
  --muted-2:    #828ca3;
  --line:       #e6eaf2;
  --line-2:     #eef1f7;
  --card:       #ffffff;
  --bg:         #fbfcfe;
  --bg-tint:    #f4f6fb;
  --pill:       #eef0f7;
  --green:      #25b07a;
  --amber:      #f2b03d;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 1px 2px rgba(20,34,75,.04), 0 6px 18px rgba(20,34,75,.04);
  --shadow-md:  0 2px 6px rgba(20,34,75,.05), 0 18px 50px rgba(20,34,75,.08);
  --shadow-lg:  0 30px 80px rgba(20,34,75,.12);

  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* page atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% -4%, #eef3ff 0%, rgba(238,243,255,0) 60%),
    radial-gradient(900px 700px at 2% 8%, #f3f6fd 0%, rgba(243,246,253,0) 55%),
    var(--bg);
}
body::after { /* faint grain */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.08; font-weight: 800; }

.eyebrow { color: var(--muted-2); }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; line-height: 1;
  padding: 9px 16px; border-radius: 999px;
  background: var(--pill); color: var(--ink-soft);
}
.pill-status { color: var(--muted); font-weight: 500; }

/* ============================================================
   header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(251,252,254,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(251,252,254,.86); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo {
  font-size: 1.85rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.045em; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.logo::after { content: ''; }

/* ============================================================
   hero
   ============================================================ */
.hero { padding: 56px 0 30px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.04fr);
  gap: 46px; align-items: center;
}

.hero h1 { font-size: clamp(1.95rem, 3vw, 2.4rem); line-height: 1.14; letter-spacing: -.028em; }
.hero h1 .accent { color: var(--ink); }

.hero .lede { max-width: 30em; }
.hero .lede p { color: var(--muted); font-size: 1.04rem; margin: 22px 0 0; }
.hero .lede p strong { color: var(--ink); font-weight: 700; }

/* three quick-value items under hero copy */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.value .ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #eceff7;
  color: var(--navy); margin-bottom: 16px;
}
.value .ico svg { width: 22px; height: 22px; }
.value h4 { font-size: .92rem; font-weight: 700; color: var(--ink); margin: 0; white-space: nowrap; }
.value p { font-size: .9rem; color: var(--muted); margin: 3px 0 0; }

/* right column: map + callout */
.hero-copy, .hero-visual { min-width: 0; }
.hero-visual { display: flex; flex-direction: column; gap: 22px; }

.map-card { position: relative; }
.us-map { width: 100%; height: auto; display: block; overflow: visible; }
.us-map .land path {
  fill: #e9eef9; stroke: #ced9ee; stroke-width: 1;
  stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.us-map .route {
  fill: none; stroke: var(--blue-2); stroke-width: 2;
  stroke-dasharray: 5 9; stroke-linecap: round;
  opacity: .9;
  animation: dash 2.6s linear infinite;
}
.us-map .route.r2 { animation-duration: 3.2s; }
.us-map .route.r3 { animation-duration: 2.9s; }
.us-map .route.r4 { animation-duration: 3.5s; }
.us-map .route.r5 { animation-duration: 2.4s; }
.us-map .route.r6 { animation-duration: 3.0s; }
@keyframes dash { to { stroke-dashoffset: -110; } }

.us-map .endpoint { fill: var(--blue); }
.us-map .endpoint-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: .55; r: 6; } 70%,100% { opacity: 0; r: 17; } }

.us-map .node-glow { fill: var(--blue); opacity: .14; animation: glow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 0%,100% { opacity: .10; transform: scale(1);} 50% { opacity: .2; transform: scale(1.12);} }
.us-map .node { fill: var(--navy); }
.us-map .node-d { fill: #fff; font: 800 34px 'Plus Jakarta Sans', sans-serif; }

/* shield callout */
.callout {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.callout .shield { flex: 0 0 auto; color: var(--navy); }
.callout .shield svg { width: 34px; height: 34px; }
.callout p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* ============================================================
   generic section
   ============================================================ */
section.block { padding: 70px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }

/* ============================================================
   how it works — 6 steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 18px; }
.step { text-align: center; position: relative; }
.step .num {
  position: relative;
  width: 46px; height: 46px; margin: 0 auto 26px;
  border-radius: 50%; background: var(--blue-soft2);
  border: 1px solid #dde6fb;
  display: grid; place-items: center;
  font-weight: 700; color: var(--navy); font-size: 1.02rem;
}
/* connector arrow: anchored to the step and centred in the gap between
   adjacent number circles (each circle is centred in its 1fr column, so the
   gap centre sits at the column edge + half the 18px column-gap). */
.step:not(:last-child)::after {
  content: '';
  position: absolute; top: 23px; left: 100%;
  width: 36px; height: 9px;
  margin-left: 9px;
  transform: translate(-50%, -50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='9' viewBox='0 0 40 9'%3E%3Cpath d='M0 4.5h35M31 1l5 3.5-5 3.5' fill='none' stroke='%23c2cbde' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  pointer-events: none;
}
.step .step-ico { color: var(--ink); margin-bottom: 16px; height: 40px; display: grid; place-items: center; }
.step .step-ico svg { width: 38px; height: 38px; }
.step h4 { font-size: .98rem; font-weight: 700; color: var(--ink); }
.step p { font-size: .86rem; color: var(--muted); margin: 8px auto 0; max-width: 15em; }

/* ============================================================
   two feature cards
   ============================================================ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 38px 38px 42px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.panel > h3 { font-size: clamp(1.2rem, 2.3vw, 1.4rem); }
.panel > .panel-sub { color: var(--muted); margin: 14px 0 30px; max-width: 30em; }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 14px; }
.compare-col { }
.compare-head {
  text-align: center; font-weight: 700; font-size: .92rem;
  padding: 11px; border-radius: 11px; margin-bottom: 20px;
}
.compare-head.human { background: var(--pill); color: var(--ink-soft); }
.compare-head.agent { background: var(--navy); color: #fff; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.compare-col li { display: flex; gap: 11px; font-size: .9rem; color: var(--ink-soft); line-height: 1.35; }
.compare-col li .mk { flex: 0 0 auto; margin-top: 1px; }
.mk.x   { color: #aeb6c6; }
.mk.ok  { color: var(--blue); }
.vs {
  align-self: center; margin-top: 14px;
  width: 50px; height: 50px; border-radius: 50%;
  background: #eef1f8; color: var(--ink-soft);
  display: grid; place-items: center; font-weight: 800; font-size: .92rem;
}

/* mode subcards */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; flex: 1; }
.mode {
  text-align: center; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 22px; background: #fcfdff;
  display: flex; flex-direction: column; justify-content: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dbe3f3; }
.mode .badge {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center;
}
.mode .badge.auto { background: var(--navy); color: #fff; font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; }
.mode .badge.copilot { background: var(--blue-soft); color: var(--navy); }
.mode .badge.copilot svg { width: 28px; height: 28px; }
.mode h4 { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.mode p { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }

/* ============================================================
   live dashboard strip (from elements.png) — adds product flavor
   ============================================================ */
.dash {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 38px; box-shadow: var(--shadow-sm); margin-top: 26px;
}
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.stat .label { font-size: .82rem; color: var(--muted); }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 4px 0 0; letter-spacing: -.03em; }
.stat .unit { font-size: .82rem; color: var(--muted-2); }
.track { display: flex; align-items: center; margin-top: 30px; }
.track .seg { flex: 1; display: flex; align-items: center; }
.track .seg:last-child { flex: 0 0 auto; }
.track .knob {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line);
  position: relative; flex: 0 0 auto;
}
.track .knob.open { background: #fff; box-shadow: inset 0 0 0 2px #cdd5e6, 0 0 0 4px #fff; }
.track .knob span {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-size: .78rem; color: var(--muted); white-space: nowrap;
}
.track .bar { flex: 1; height: 3px; background: linear-gradient(90deg, var(--navy), var(--navy)); border-radius: 3px; }
.track .bar.dim { background: var(--line); }

/* ============================================================
   impact
   ============================================================ */
.impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; align-items: start; }
.impact-item { display: flex; gap: 15px; align-items: flex-start; padding: 4px 20px; }
.impact-item:first-child { padding-left: 0; }
.impact-item + .impact-item { border-left: 1px solid var(--line); }
/* bare line-icons, no wrapper ring — top-aligned to the title, like the mockup */
.impact-item .ic {
  flex: 0 0 auto; color: var(--ink);
  display: grid; place-items: center;
  margin-top: 2px;
}
.impact-item .ic svg { width: 48px; height: 48px; }
.impact-item h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.2; }
.impact-item p { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }

/* ============================================================
   closing band
   ============================================================ */
.closing {
  text-align: center;
  background: #f8fafd;
  border: 1px solid var(--line); border-radius: 24px;
  padding: 52px 30px;
}
.closing h2 { font-size: clamp(1.4rem, 2.5vw, 1.92rem); max-width: 44rem; margin: 0 auto; line-height: 1.28; }
.closing .seq { margin-top: 16px; font-weight: 600; color: var(--ink-soft); }

/* footer */
.site-footer { padding: 40px 0 56px; text-align: center; }
.site-footer p { color: var(--muted-2); font-size: .9rem; margin: 0; }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal[data-d="6"] { transition-delay: .48s; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .hero-visual { order: -1; }
  .duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .step:nth-child(3n)::after { display: none; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 30px; }
  .impact-item { padding: 0; }
  .impact-item + .impact-item { border-left: none; }
  .dash-stats { grid-template-columns: repeat(2,1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 20px; }
  .hero { padding-top: 34px; }
  .values { grid-template-columns: 1fr; gap: 4px; margin-top: 34px; }
  .value { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
  .value + .value { border-top: 1px solid var(--line-2); }
  .value .ico { margin-bottom: 0; }
  .value .value-text { min-width: 0; }
  .value h4 { white-space: normal; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3n)::after { display: block; }
  .step:nth-child(2n)::after { display: none; }
  .compare { grid-template-columns: 1fr; }
  .vs { margin: 6px auto; }
  .modes { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .panel { padding: 28px 24px 32px; }
  .track .knob span { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
