:root {
  --hull: #14284B;
  --sail: #3A4D75;
  --fog: #EEF1F5;
  --white: #FFFFFF;
  --ink: #1B2233;
  --mist: #6B7690;
  --line: #D6DCE6;
  --buoy: #E8734A;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sail); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sail); margin-bottom: 18px;
}
.section__title {
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--hull); max-width: 20ch; text-wrap: balance;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--hull); color: var(--white); }
.btn--primary:hover { background: #0F2247; box-shadow: 0 6px 20px rgba(20,40,75,.25); }
.btn--ghost { color: var(--hull); box-shadow: inset 0 0 0 1.5px var(--hull); }
.btn--ghost:hover { background: var(--white); }
.btn--light { background: var(--white); color: var(--hull); }
.btn--light:hover { background: var(--fog); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(238,241,245,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,40,75,.08);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--hull); letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; color: var(--sail); }
.nav__links a:hover { color: var(--hull); }
@media (max-width: 640px) { .nav__links { display: none; } .nav__inner .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; }
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.025em;
  color: var(--hull); max-width: 18ch; text-wrap: balance;
}
.hero__title-soft { display: block; color: var(--sail); opacity: .75; }
.hero__lede { max-width: 56ch; margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: var(--mist); }
.hero__actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* signature diagram */
.lead { margin: clamp(48px, 7vw, 88px) auto 0; }
.lead__svg { width: 100%; height: auto; overflow: visible; }
.lead__caption { text-align: center; margin-top: 22px; font-size: 14px; color: var(--mist); }

.draw {
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 1.1s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.12s);
}
.lead__out { stroke-dasharray: 300; stroke-dashoffset: 300; animation-duration: .7s; }
.lead__done { opacity: 0; animation: fade .6s ease forwards 1.7s; }
.lead__pulse {
  opacity: 0;
  offset-path: path("M538 190 H 800");
  animation: pulse 2.4s linear infinite 2.2s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .draw, .lead__out { animation: none; stroke-dashoffset: 0; }
  .lead__done { animation: none; opacity: 1; }
  .lead__pulse { display: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  .lead__svg { min-width: 640px; }
  .lead { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
@media (max-width: 720px) { .grid3 { grid-template-columns: 1fr; gap: 36px; } }
.feature__icon { width: 40px; height: 40px; margin-bottom: 22px; }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--hull); margin-bottom: 10px; letter-spacing: -0.01em; }
.feature p { color: var(--mist); max-width: 36ch; }

/* ---------- dasher ---------- */
.section--dasher { background: var(--white); border-block: 1px solid var(--line); }
.dasher { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .dasher { grid-template-columns: 1fr; gap: 40px; } }
.dasher__lede { color: var(--mist); margin-top: 20px; max-width: 46ch; }

.switch { display: inline-flex; margin-top: 28px; padding: 4px; background: var(--fog); border-radius: 999px; }
.switch__btn { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mist); }
.switch__btn.is-active { background: var(--white); color: var(--hull); box-shadow: 0 1px 3px rgba(20,40,75,.15); }

/* chat mockup: skin switches by [data-app] */
.chat {
  --rail: #4A154B; --rail-ink: #E8DCE8; --accent: #4A154B;
  display: grid; grid-template-columns: 150px 1fr; min-height: 460px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 50px rgba(20,40,75,.10); font-size: 14.5px;
  transition: --rail .3s;
}
.chat[data-app="teams"] { --rail: #2E3358; --rail-ink: #D7DAF0; --accent: #5B5FC7; }
.chat__rail { background: var(--rail); color: var(--rail-ink); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; transition: background-color .3s; }
.chat__rail-brand { font-weight: 700; color: var(--white); margin-bottom: 12px; }
.chat__rail-item { padding: 5px 8px; border-radius: 6px; opacity: .8; }
.chat__rail-item.is-current { background: rgba(255,255,255,.14); opacity: 1; color: var(--white); }
.chat__rail-teams, .chat__head-teams { display: none; }
.chat[data-app="teams"] .chat__rail-teams, .chat[data-app="teams"] .chat__head-teams { display: inline; }
.chat[data-app="teams"] .chat__rail-slack, .chat[data-app="teams"] .chat__head-slack { display: none; }
@media (max-width: 480px) { .chat { grid-template-columns: 1fr; } .chat__rail { display: none; } }

.chat__pane { display: flex; flex-direction: column; }
.chat__head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.chat__msgs { padding: 14px 18px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.msg__avatar { position: relative; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; }
.msg__avatar--person { background: #D9C7B0; color: #4A3A24; }
.msg__avatar--bot { background: var(--fog); }
.msg__avatar--bot img { width: 28px; height: 28px; }
.msg__presence { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--buoy); border: 2px solid var(--white); }
.msg__meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.msg__meta time { color: var(--mist); font-size: 12px; }
.msg__tag { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; background: var(--fog); color: var(--mist); }
.msg p { color: var(--ink); }
.msg__card { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--fog); border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink); transition: border-color .3s; }
.msg__card-flag { color: var(--buoy); font-weight: 600; }
.chat__input { margin: 0 18px 18px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--mist); font-size: 14px; }

/* ---------- cta ---------- */
.cta { background: var(--hull); color: var(--white); padding: clamp(72px, 9vw, 112px) 0; }
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; }
.cta__lede { margin: 18px 0 32px; color: rgba(255,255,255,.7); max-width: 44ch; }

/* ---------- footer ---------- */
.footer { padding: 36px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--mist); }
.footer .brand__name { font-size: 16px; }
.footer__mail { margin-left: auto; color: var(--sail); }
.footer__mail:hover { color: var(--hull); }
