@font-face {
  font-family: 'Waldenburg';
  src: url('fonts/Waldenburg-Buch.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Tokens ───────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy:      #18244C;
  --navy-08:   rgba(24, 36, 76, 0.08);
  --navy-15:   rgba(24, 36, 76, 0.15);
  --navy-40:   rgba(24, 36, 76, 0.40);
  --navy-60:   rgba(24, 36, 76, 0.60);
  --offwhite:  #F2F2F2;
  --white:     #FFFFFF;
  --font:      'Waldenburg', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ───────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 60px;
  border-bottom-color: var(--navy-08);
}

#nav.scrolled .nav-logo       { color: var(--navy); }
#nav.scrolled .nav-links a    { color: var(--navy-60); }
#nav.scrolled .nav-links a:hover { color: var(--navy); }
#nav.scrolled .nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy) !important;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 22px;
  width: auto;
  display: block;
  transition: filter 0.4s ease;
}

#nav.scrolled .nav-logo-img {
  filter: invert(1) brightness(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.45) !important;
  padding: 9px 20px !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
  color: var(--white) !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--white); }

.nav-link.active {
  color: var(--white);
  font-weight: 500;
}

#nav.scrolled .nav-link { color: var(--navy-60); }
#nav.scrolled .nav-link:hover { color: var(--navy); }
#nav.scrolled .nav-link.active { color: var(--navy); font-weight: 500; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-videos {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 20, 42, 0.30) 0%,
    rgba(14, 20, 42, 0.55) 45%,
    rgba(14, 20, 42, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 220px 60px 0;
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.hero-content h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(14px, 2.1vw, 17px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  max-width: min(100%, 720px);
  margin: 0 0 44px;
  letter-spacing: 0.1px;
}

.hero-sub-primary,
.hero-sub-secondary {
  display: block;
}

.hero-sub-secondary {
  margin-top: 0.2em;
  line-height: 1.45;
}

/* First sentence one line only when it actually fits */
@media (min-width: 1100px) {
  .hero-sub-primary {
    white-space: nowrap;
  }
}

/* Tagline one line once there’s width (stays off a cramped “third line” split) */
@media (min-width: 700px) {
  .hero-sub-secondary {
    white-space: nowrap;
  }
}

/* ── Hero Chat (Sierra-style) ────────────────── */
.hero-chat {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 454px;
  height: 420px;
  z-index: 3;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
}

.hero-chat-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 24px 32px;
  min-height: 100%;
}

.chat-msg {
  max-width: 340px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-msg.kalinda {
  align-self: flex-start;
}

.chat-msg.plaintiff {
  align-self: flex-end;
}

.chat-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

.chat-sender-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-text {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  letter-spacing: 0.05px;
}

/* Calendar confirmation card */
.chat-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.chat-confirm-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.chat-confirm-cal {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.chat-confirm-cal-header {
  width: 100%;
  height: 9px;
  background: rgba(120, 180, 120, 0.7);
}

.chat-confirm-cal-day {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 23px;
}

.chat-confirm-check {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5cb85c;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease 0.6s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
}

.chat-msg.visible .chat-confirm-check {
  opacity: 1;
  transform: scale(1);
}

.chat-confirm-check svg {
  width: 10px;
  height: 10px;
}

.chat-confirm-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-confirm-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.chat-confirm-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-white:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--white); }

/* ── Intro ────────────────────────────────────── */
.intro {
  padding: 96px 60px;
  background: var(--white);
  border-bottom: 1px solid var(--navy-08);
}

.intro-inner {
  max-width: 820px;
}

.intro-inner p {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1.4;
}

/* ── Platform ─────────────────────────────────── */
.platform {
  background: var(--white);
}

.platform-header {
  padding: 56px 60px 0;
}

.label {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--navy-40);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--navy-08);
  border-bottom: 1px solid var(--navy-08);
}

.product-col {
  padding: 60px;
  border-right: 1px solid var(--navy-08);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.25s ease;
}

.product-col:last-child {
  border-right: none;
}

.product-col:hover {
  background: var(--offwhite);
}

.product-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--navy-40);
  font-variant-numeric: tabular-nums;
  margin-bottom: 36px;
}

.product-col h3 {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.product-col p {
  font-size: 15px;
  font-weight: 400;
  color: var(--navy-60);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 32px;
}

.row-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.2px;
  opacity: 0.4;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.row-link:hover { opacity: 1; }

/* ── Vision / About ───────────────────────────── */
.vision {
  padding: 100px 60px;
  background: var(--offwhite);
  border-top: 1px solid var(--navy-08);
  border-bottom: 1px solid var(--navy-08);
}

.vision-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
}

.vision-left { padding-top: 4px; }

.vision-right blockquote {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1.5;
  margin-bottom: 64px;
  max-width: 680px;
}

.vision-stats {
  display: flex;
  align-items: center;
  gap: 48px;
}

.stat h4 {
  font-size: 52px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -2.5px;
  line-height: 1;
}

.stat p {
  font-size: 12px;
  font-weight: 400;
  color: var(--navy-60);
  margin-top: 8px;
  letter-spacing: 0.2px;
  max-width: 90px;
  line-height: 1.45;
}

.stat-divider {
  width: 1px;
  height: 52px;
  background: var(--navy-15);
  flex-shrink: 0;
}

/* ── Dark Canvas (CTA + Footer) ──────────────── */
.dark-canvas {
  position: relative;
  background: linear-gradient(
    160deg,
    #07091a 0%,
    #0d1530 35%,
    #111d3e 65%,
    #0a1228 100%
  );
}

/* ── Security & compliance (above footer) ─────── */
.security-section {
  position: relative;
  z-index: 2;
  padding: 100px 60px 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.security-inner {
  max-width: 720px;
}

.security-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0 0 20px;
}

.security-copy {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.75;
  margin: 0;
  letter-spacing: 0.1px;
}

.cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.2px;
}

/* ── Footer ───────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-intro {
  padding: 48px 60px 40px;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.15px;
  color: rgba(255, 255, 255, 0.42);
  max-width: 400px;
}

.footer-brand {
  overflow: hidden;
  height: 1em;
  font-size: clamp(140px, 20vw, 320px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 90%);
}

.footer-brand-text {
  display: block;
  font-family: var(--font);
  font-size: inherit;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: -4px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  text-align: center;
}

.footer-top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 40px 60px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 60px 40px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.2px;
}

.footer-bottom a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.55); }

/* ── Product Animations ───────────────────────── */
.anim {
  height: 64px;
  margin-bottom: 36px;
  pointer-events: none;
  user-select: none;
}

/* Voice waveform (Intake) */
.anim-voice {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vb {
  display: block;
  width: 3px;
  height: 40px;
  background: var(--navy);
  border-radius: 2px;
  transform-origin: center;
  animation: vb-wave 1.5s ease-in-out infinite;
}

.vb:nth-child(1)  { animation-delay: 0.00s; opacity: 0.12; }
.vb:nth-child(2)  { animation-delay: 0.10s; opacity: 0.20; }
.vb:nth-child(3)  { animation-delay: 0.20s; opacity: 0.32; }
.vb:nth-child(4)  { animation-delay: 0.30s; opacity: 0.45; }
.vb:nth-child(5)  { animation-delay: 0.40s; opacity: 0.60; }
.vb:nth-child(6)  { animation-delay: 0.50s; opacity: 0.70; }
.vb:nth-child(7)  { animation-delay: 0.40s; opacity: 0.60; }
.vb:nth-child(8)  { animation-delay: 0.30s; opacity: 0.45; }
.vb:nth-child(9)  { animation-delay: 0.20s; opacity: 0.32; }
.vb:nth-child(10) { animation-delay: 0.10s; opacity: 0.20; }
.vb:nth-child(11) { animation-delay: 0.00s; opacity: 0.12; }

@keyframes vb-wave {
  0%, 100% { transform: scaleY(0.18); }
  50%       { transform: scaleY(1); }
}

/* Document shuffle (Record Review) */
.anim-docs {
  display: block;
  position: relative;
}

.doc {
  position: absolute;
  top: 4px;
  left: 0;
  width: 42px;
  height: 52px;
  border: 1.5px solid rgba(24, 36, 76, 0.16);
  border-radius: 3px;
  background: var(--white);
}

/* Horizontal lines inside each doc */
.doc::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 7px;
  right: 7px;
  height: 1.5px;
  background: rgba(24, 36, 76, 0.10);
  border-radius: 1px;
  box-shadow:
    0 7px 0 rgba(24, 36, 76, 0.07),
    0 14px 0 rgba(24, 36, 76, 0.05),
    0 21px 0 rgba(24, 36, 76, 0.04);
}

/* Short line */
.doc::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 7px;
  width: 55%;
  height: 1.5px;
  background: rgba(24, 36, 76, 0.07);
  border-radius: 1px;
}

/* The shuffle: front → slide off right → invisible → back → mid → front */
@keyframes doc-cycle {
  0%   { transform: translate(0px,  0px)  scale(1);    opacity: 1;    }
  28%  { transform: translate(0px,  0px)  scale(1);    opacity: 1;    }
  33%  { transform: translate(28px,-10px) scale(1);    opacity: 0;    }
  34%  { transform: translate(10px,  8px) scale(0.84); opacity: 0;    }
  46%  { transform: translate(10px,  8px) scale(0.84); opacity: 0.35; }
  66%  { transform: translate(5px,   4px) scale(0.92); opacity: 0.62; }
  100% { transform: translate(0px,  0px)  scale(1);    opacity: 1;    }
}

/* Stagger each doc through the same cycle */
.doc:nth-child(1) { z-index: 1; animation: doc-cycle 3s cubic-bezier(0.4,0,0.2,1) infinite; animation-delay: -1.4s; }
.doc:nth-child(2) { z-index: 2; animation: doc-cycle 3s cubic-bezier(0.4,0,0.2,1) infinite; animation-delay: -2s;   }
.doc:nth-child(3) { z-index: 3; animation: doc-cycle 3s cubic-bezier(0.4,0,0.2,1) infinite; animation-delay:  0s;   }

/* Chat (Agent) */
.anim-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.chat-user,
.chat-ai {
  display: flex;
  align-items: center;
}

.chat-user {
  justify-content: flex-end;
}

.chat-user {
  background: var(--navy-08);
  border-radius: 10px 10px 2px 10px;
  padding: 9px 14px;
  gap: 6px;
  align-self: flex-end;
}

.chat-ai {
  background: var(--offwhite);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 14px;
  gap: 5px;
  align-self: flex-start;
}

.ctl {
  display: block;
  height: 2px;
  width: 56px;
  background: var(--navy);
  opacity: 0.25;
  border-radius: 1px;
}

.ctl-s { width: 32px; }

.cd {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.35;
  animation: cd-bounce 1.3s ease-in-out infinite;
}

.cd:nth-child(2) { animation-delay: 0.18s; }
.cd:nth-child(3) { animation-delay: 0.36s; }

@keyframes cd-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.25; }
  50%       { transform: translateY(-5px); opacity: 0.7; }
}

/* ── How It Works ─────────────────────────────── */
.how-it-works {
  background: var(--offwhite);
  padding: 100px 60px 60px;
}

.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hiw-dot {
  width: 6px;
  height: 6px;
  background: var(--navy);
  flex-shrink: 0;
}

.hiw-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--navy-40);
  flex-shrink: 0;
}

.hiw-rule {
  flex: 1;
  height: 1px;
  background: var(--navy-15);
}

.hiw-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.hiw-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -2px;
  line-height: 1.1;
}

.hiw-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--navy-60);
  line-height: 1.7;
  max-width: 480px;
}

/* ── Tabs with timer bar ─────────────────────── */
.hiw-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--navy-08);
}

.hiw-tab {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 16px 0 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  position: relative;
  font-family: var(--font);
}

.hiw-tab-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-40);
  letter-spacing: 0.3px;
  text-align: center;
  transition: color 0.3s;
}

.hiw-tab.active .hiw-tab-text {
  color: var(--navy);
}

.hiw-tab-bar {
  height: 3px;
  background: var(--navy-08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.hiw-tab-fill {
  position: absolute;
  inset: 0;
  background: var(--navy);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}

.hiw-tab.active .hiw-tab-fill {
  animation: hiw-timer 7s linear forwards;
}

@keyframes hiw-timer {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Single panel area ───────────────────────── */
.hiw-panel {
  position: relative;
  min-height: 460px;
}

.hiw-slide {
  display: none;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: stretch;
  animation: hiw-fadein 0.5s ease;
}

.hiw-slide.active {
  display: grid;
}

@keyframes hiw-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hiw-slide-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  border: 1px solid var(--navy-08);
  background: var(--white);
}

.hiw-step-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--navy-40);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hiw-slide-text h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hiw-slide-text p {
  font-size: 15px;
  font-weight: 400;
  color: var(--navy-60);
  line-height: 1.7;
}

.hiw-slide-visual {
  min-height: 380px;
}

/* ── Mock UI (light grey theme) ──────────────── */
.hiw-mock {
  background: #f4f5f7;
  border: 1px solid #e2e4e9;
  border-radius: 12px;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.hiw-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e4e9;
}

.hiw-mock-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.hiw-mock-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-40);
  padding: 3px 8px;
  border: 1px solid #d0d3d9;
  border-radius: 4px;
}

.hiw-mock-badge-live {
  color: #2e8b57;
  border-color: rgba(46,139,87,0.3);
  background: rgba(46,139,87,0.06);
}

/* Mock rows */
.hiw-mock-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ecedf0;
}

.hiw-mock-field {
  font-size: 12px;
  color: var(--navy-60);
  letter-spacing: 0.2px;
}

.hiw-mock-value {
  font-size: 11px;
  color: var(--navy-40);
  margin-left: auto;
  margin-right: 10px;
}

.hiw-mock-status {
  flex-shrink: 0;
}

.hiw-mock-status.complete {
  color: #2e8b57;
}

.hiw-mock-status.missing {
  color: #d97706;
}

.hiw-mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e4e9;
  font-size: 11px;
  color: var(--navy-40);
}

.hiw-mock-warn {
  color: #d97706;
}

.hiw-mock-good {
  color: #2e8b57;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Sync mock - filled rows */
.hiw-row-filled {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

/* ── Feature 4: Triage Records mock ──────────── */
.hiw-mock-triage {
  position: relative;
}

.hiw-triage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hiw-triage-dropzone {
  border: 2px dashed #d0d3d9;
  border-radius: 8px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  background: #fff;
}

.hiw-triage-cursor {
  position: absolute;
  top: -20px;
  right: 60px;
  opacity: 0;
  transition: top 0.6s cubic-bezier(0.22,1,0.36,1), right 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
  z-index: 2;
}

.hiw-triage-cursor.anim-enter {
  opacity: 0.8;
  top: 20px;
  right: 40px;
}

.hiw-triage-cursor.anim-drop {
  opacity: 0.8;
  top: 40px;
  right: 50%;
  transform: translateX(50%);
}

.hiw-triage-cursor.anim-hide { opacity: 0; }

.hiw-triage-doc {
  position: absolute;
  top: -30px;
  right: 55px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #d0d3d9;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--navy);
  opacity: 0;
  transition: top 0.6s cubic-bezier(0.22,1,0.36,1), right 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hiw-triage-doc.anim-enter {
  opacity: 1;
  top: 10px;
  right: 35px;
}

.hiw-triage-doc.anim-drop {
  opacity: 1;
  top: 30px;
  right: 50%;
  transform: translateX(50%);
}

.hiw-triage-doc.anim-hide { opacity: 0; }

.hiw-triage-upload-icon {
  opacity: 0.5;
  margin-bottom: 2px;
  transition: opacity 0.3s;
}

.hiw-triage-dropzone.uploaded .hiw-triage-upload-icon {
  opacity: 0;
}

.hiw-triage-drop-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.3s;
}

.hiw-triage-drop-sub {
  font-size: 10px;
  color: var(--navy-40);
  transition: all 0.3s;
}

.hiw-triage-dropzone.uploaded {
  border-color: #2e8b57;
  border-style: solid;
  background: rgba(46,139,87,0.04);
}

.hiw-triage-chat-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #fff;
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  padding: 10px 12px;
}

.hiw-triage-input-text {
  flex: 1;
  font-size: 11px;
  color: var(--navy);
  line-height: 1.5;
}

.hiw-triage-send {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.hiw-triage-toast {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #c6ecd4;
  border-radius: 6px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  font-size: 12px;
  font-weight: 500;
  color: #2e8b57;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.hiw-triage-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hiw-triage-input-text {
  border-right: 2px solid transparent;
}

.hiw-triage-input-text.typing {
  border-right-color: var(--navy);
  animation: triage-blink 0.6s step-end infinite;
}

@keyframes triage-blink {
  50% { border-right-color: transparent; }
}

/* ── See your cases enriched ─────────────────── */
.enriched {
  background: var(--offwhite);
  padding: 48px 60px 120px;
}

.enriched-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.enriched-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.enriched-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--navy-40);
  flex-shrink: 0;
}

.enriched-rule {
  flex: 1;
  height: 1px;
  background: var(--navy-15);
}

.enriched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.enriched-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.enriched-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--navy-60);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

.enriched-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}

.enriched-cta:hover {
  background: var(--navy-90);
}

.enriched-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.enriched-point {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.enriched-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--navy-40);
  flex-shrink: 0;
  font-family: var(--font);
}

.enriched-point h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.enriched-point p {
  font-size: 14px;
  font-weight: 400;
  color: var(--navy-60);
  line-height: 1.6;
}

/* ── Trust and reliability ────────────────────── */
.trust {
  background: var(--white);
  padding: 80px 60px 60px;
  text-align: center;
}

.trust-inner {
  max-width: 800px;
  margin: 0 auto;
}

.trust-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.trust-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--navy-40);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 40px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.trust-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── FAQ ─────────────────────────────────────── */
.faq {
  background: var(--offwhite);
  padding: 48px 60px 100px;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--navy-08);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.faq-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e8b57;
}

.faq-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 32px;
}

.faq-list {
  border-top: 1px solid var(--navy-08);
}

.faq-item {
  border-bottom: 1px solid var(--navy-08);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  outline: none;
}

.faq-q:hover { text-decoration: underline; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--navy-40);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--navy-60);
  line-height: 1.7;
  padding: 0 0 0;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 0 20px;
}

/* ── Company Page ────────────────────────────── */
.company-letter {
  padding: 140px 60px 100px;
  background: var(--offwhite);
}

.company-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.company-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.company-dot {
  width: 6px;
  height: 6px;
  background: var(--navy);
  flex-shrink: 0;
}

.company-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--navy-40);
  flex-shrink: 0;
}

.company-rule {
  flex: 1;
  height: 1px;
  background: var(--navy-15);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.company-text p {
  font-size: 16px;
  font-weight: 400;
  color: var(--navy-60);
  line-height: 1.8;
  margin-bottom: 24px;
}

.company-text p:last-of-type {
  margin-bottom: 40px;
}

.company-sig {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-sig-names {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.company-sig-title {
  font-size: 13px;
  color: var(--navy-40);
}

.company-photo-wrap {
  position: sticky;
  top: 120px;
}

.company-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* ── Scroll Fade-in ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────── */
/* ── Tablet breakpoint ── */
@media (max-width: 900px) {
  #nav,
  #nav.scrolled { padding: 22px 28px; }

  .nav-links li:not(:last-child) { display: none; }

  .hero-content { padding: 0 28px 60px; }
  .hero-content h1 { letter-spacing: -2px; }

  .intro { padding: 72px 28px; }

  .platform-header { padding: 44px 28px 0; }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-col {
    padding: 44px 28px;
    border-right: none;
    border-bottom: 1px solid var(--navy-08);
  }

  .product-col:last-child {
    border-bottom: none;
  }

  .vision { padding: 72px 28px; }

  .vision-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-stats { gap: 28px; }
  .stat h4 { font-size: 40px; }

  .security-section { padding: 72px 28px 56px; }

  .footer-intro {
    padding: 40px 28px 32px;
    gap: 16px;
  }

  .footer-top {
    flex-direction: column;
    gap: 44px;
    padding: 44px 28px 36px;
  }

  .footer-nav { gap: 40px; }
  .footer-bottom { padding: 20px 28px; flex-direction: column; gap: 8px; }

  .how-it-works { padding: 64px 28px 80px; }

  .hiw-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .hiw-tabs { gap: 0; }
  .hiw-tab-text { font-size: 12px; }

  .hiw-slide.active {
    grid-template-columns: 1fr;
  }

  .hiw-slide-text { padding: 32px 24px; }
  .hiw-slide-visual { min-height: 300px; }

  .enriched { padding: 48px 28px 60px; }
  .enriched-grid { grid-template-columns: 1fr; gap: 40px; }

  .faq { padding: 48px 28px 72px; }

  .company-letter { padding: 110px 28px 60px; }
  .company-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-chat {
    width: 300px;
    height: 320px;
  }

  .hero-chat-track {
    padding: 16px 14px 24px;
  }

  .chat-msg {
    max-width: 260px;
    padding: 10px 12px;
  }

  .chat-text { font-size: 12px; }
}

/* ── Mobile breakpoint ── */
@media (max-width: 480px) {

  /* Nav */
  #nav,
  #nav.scrolled {
    padding: 14px 16px;
  }

  .nav-logo-img { height: 18px; }

  .nav-links { gap: 0; }

  .nav-links li:not(:last-child) { display: none; }

  .nav-cta {
    font-size: 12px !important;
    padding: 7px 14px !important;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding: 100px 20px 0;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 18px;
  }

  .hero-sub {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .hero-sub-primary,
  .hero-sub-secondary {
    white-space: normal !important;
  }

  .btn-outline {
    font-size: 13px;
    padding: 10px 22px;
  }

  /* Chat widget */
  .hero-chat {
    width: 260px;
    height: 280px;
    right: 8px;
    bottom: 12px;
  }

  .hero-chat-track {
    padding: 12px 10px 20px;
  }

  .chat-msg {
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .chat-sender { font-size: 10px; gap: 4px; margin-bottom: 3px; }
  .chat-sender-avatar { width: 16px; height: 16px; }
  .chat-text { font-size: 11px; line-height: 1.4; }

  /* How It Works section */
  .how-it-works {
    padding: 48px 20px 60px;
  }

  .hiw-label-row { margin-bottom: 20px; }

  .hiw-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .hiw-header h2 {
    font-size: 28px;
  }

  .hiw-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .hiw-tabs {
    gap: 0;
    margin-bottom: 20px;
  }

  .hiw-tab {
    padding: 10px 4px;
  }

  .hiw-tab-text {
    font-size: 10px;
    letter-spacing: 0;
  }

  .hiw-slide.active {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hiw-slide-visual {
    min-height: 260px;
    padding: 24px 16px;
    border-radius: 12px 12px 0 0;
  }

  .hiw-slide-text {
    padding: 24px 20px;
    border-radius: 0 0 12px 12px;
  }

  .hiw-slide-text h3 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .hiw-slide-text p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Mock UI panels */
  .hiw-mock {
    transform: scale(0.85);
    transform-origin: top center;
  }

  /* Enriched section */
  .enriched {
    padding: 40px 20px 48px;
  }

  .enriched-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .enriched-title {
    font-size: 28px;
  }

  .enriched-desc,
  .enriched-point p {
    font-size: 14px;
  }

  .enriched-point h4 {
    font-size: 16px;
  }

  /* FAQ */
  .faq {
    padding: 40px 20px 60px;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-q {
    font-size: 14px;
    padding: 16px 0;
  }

  .faq-a {
    font-size: 13px;
  }

  /* Security section */
  .security-section {
    padding: 48px 20px 40px;
  }

  .security-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .security-section p {
    font-size: 14px;
  }

  /* Footer */
  .footer-intro {
    padding: 32px 20px 24px;
    gap: 14px;
  }

  .footer-tagline {
    font-size: 14px;
  }

  .footer-top {
    padding: 32px 20px 28px;
  }

  .footer-nav {
    gap: 32px;
  }

  .footer-col a {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 16px 20px;
  }

  .footer-brand {
    height: 0.7em;
    font-size: clamp(80px, 22vw, 160px);
  }

  /* Company page */
  .company-letter {
    padding: 90px 20px 48px;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-text p {
    font-size: 14px;
  }

  .company-photo {
    max-height: 300px;
  }
}
