:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --blue: #2f6bff;
  --blue-hover: #2459d9;
  --blue-soft: #eef3ff;
  --border: #e4e7ec;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --success: #0f8a5f;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 20px 60px rgba(30, 64, 175, 0.12);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1200px;
  --font-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  transform: translateY(-140%);
  border-radius: 10px;
  color: #fff;
  background: var(--dark);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

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

.surface-section {
  background: var(--surface);
}

.section-header {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 40px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #d7e2ff;
  border-radius: 999px;
  color: #234fc2;
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5.4vw, 4.35rem);
  font-weight: 700;
  line-height: 1.03;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 650;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.17rem;
  font-weight: 650;
  line-height: 1.35;
}

.lead-copy {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.3vw, 1.17rem);
  line-height: 1.7;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 78px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  background: rgba(247, 248, 250, 0.9);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links,
.language-switch {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  color: #475467;
  font-size: 0.91rem;
  font-weight: 550;
  transition: color 150ms ease;
}

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

.language-switch {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.language-switch a,
.language-switch span {
  display: grid;
  min-width: 30px;
  min-height: 28px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.language-switch [aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(47, 107, 255, 0.22);
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 10px 26px rgba(47, 107, 255, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #fbfcfe;
}

.btn-small {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 0.86rem;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.mobile-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 158px 0 94px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 72px;
  right: -160px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.08), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 1.04fr);
  gap: 58px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 18px;
  color: #475467;
  font-size: clamp(1.08rem, 1.55vw, 1.25rem);
  line-height: 1.65;
}

.hero-supporting {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-microcopy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-microcopy svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--success);
}

.workflow-shell {
  position: relative;
  min-height: 530px;
  padding: 18px;
  border: 1px solid rgba(210, 219, 234, 0.9);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 249, 255, 0.96));
  box-shadow: var(--shadow-md);
}

.workflow-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7dee9;
}

.workflow-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.workflow-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.1);
  content: "";
}

.workflow-canvas {
  position: relative;
  min-height: 464px;
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 19px;
  background-color: #fbfcff;
  background-image: radial-gradient(#dce4f1 0.7px, transparent 0.7px);
  background-size: 17px 17px;
}

.source-row {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: calc(100% - 44px);
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.source-chip {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #e3e8f2;
  border-radius: 11px;
  color: #475467;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
}

.source-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: var(--blue-soft);
}

.join-line {
  position: absolute;
  top: 75px;
  left: 15%;
  width: 70%;
  height: 53px;
  border-right: 1px solid #cfd9ee;
  border-bottom: 1px solid #cfd9ee;
  border-left: 1px solid #cfd9ee;
  border-radius: 0 0 12px 12px;
}

.join-line::after {
  position: absolute;
  bottom: -27px;
  left: 50%;
  width: 1px;
  height: 27px;
  background: #cfd9ee;
  content: "";
}

.workflow-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-height: 57px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid #dde5f2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.workflow-node strong {
  font-family: var(--font-display);
  font-size: 0.76rem;
  line-height: 1.25;
}

.workflow-node small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.25;
}

.node-new {
  top: 151px;
  left: 35%;
  width: 30%;
  border-color: #b8cbff;
  background: var(--blue-soft);
}

.node-response { top: 260px; left: 4%; width: 17%; }
.node-qualify { top: 260px; left: 24%; width: 17%; }
.node-crm { top: 260px; left: 44%; width: 14%; }
.node-booking { top: 260px; left: 61%; width: 16%; }
.node-followup { top: 260px; left: 80%; width: 16%; }

.process-line {
  position: absolute;
  top: 288px;
  left: 12%;
  width: 77%;
  height: 2px;
  background: #cfd9ee;
}

.new-to-flow {
  position: absolute;
  top: 208px;
  left: 50%;
  width: 1px;
  height: 81px;
  background: #cfd9ee;
}

.route-dot {
  position: absolute;
  z-index: 4;
  top: 282px;
  left: 12%;
  width: 12px;
  height: 12px;
  border: 3px solid #dbe6ff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
  animation: leadRoute 5.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.branch-line {
  position: absolute;
  top: 317px;
  left: 86%;
  width: 1px;
  height: 42px;
  background: #cfd9ee;
}

.branch-line::before,
.branch-line::after {
  position: absolute;
  left: -68px;
  width: 137px;
  height: 1px;
  background: #cfd9ee;
  content: "";
}

.branch-line::before { top: 42px; }
.branch-line::after { top: 94px; }

.node-human,
.node-continue {
  left: 68%;
  width: 28%;
  min-height: 43px;
}

.node-human {
  top: 360px;
  border-color: #bed0ff;
  background: #f4f7ff;
}

.node-continue { top: 412px; }

.status-toast {
  position: absolute;
  z-index: 5;
  left: 4%;
  bottom: 21px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 8px 11px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  color: #344054;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  font-size: 0.66rem;
  animation: toastCycle 10.8s ease-in-out infinite;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.problem-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.problem-card .card-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid #dce5fb;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-soft);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 750;
}

.problem-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes leadRoute {
  0%, 9% { left: 12%; opacity: 0; }
  13% { opacity: 1; }
  22% { left: 30%; }
  38% { left: 49%; }
  54% { left: 68%; }
  70%, 82% { left: 88%; opacity: 1; }
  90%, 100% { left: 88%; opacity: 0; }
}

@keyframes toastCycle {
  0%, 7%, 92%, 100% { opacity: 0; transform: translateY(6px); }
  12%, 86% { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .workflow-shell { transform: scale(0.94); transform-origin: center right; }
}

@media (max-width: 1100px) {
  .desktop-nav .btn { display: none; }
  .mobile-toggle { display: block; }
  .mobile-panel {
    position: fixed;
    inset: 78px 0 0;
    z-index: 99;
    padding: 22px;
    background: rgba(247, 248, 250, 0.98);
    backdrop-filter: blur(18px);
  }
  .mobile-panel.is-open { display: block; }
  .mobile-panel nav { display: grid; gap: 6px; }
  .mobile-panel nav a {
    padding: 13px 6px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 650;
  }
  .mobile-panel .mobile-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
  }
}

@media (max-width: 860px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .workflow-shell { width: 100%; max-width: 680px; margin: 20px auto 0; transform: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: 0; }
  .problem-card .card-number { margin-bottom: 24px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .hero { min-height: auto; padding: 122px 0 72px; }
  h1 { font-size: clamp(2.45rem, 11vw, 3.3rem); }
  h2 { font-size: clamp(1.9rem, 8vw, 2.55rem); }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .workflow-shell { min-height: 515px; padding: 11px; border-radius: 20px; }
  .workflow-canvas { min-height: 565px; }
  .source-row { top: 18px; left: 16px; width: calc(100% - 32px); grid-template-columns: repeat(2, 1fr); }
  .source-chip { min-height: 40px; }
  .join-line { top: 112px; height: 35px; }
  .node-new { top: 166px; left: 29%; width: 42%; }
  .new-to-flow { top: 223px; height: 50px; }
  .process-line { top: 272px; left: 10%; width: 80%; }
  .node-response { top: 291px; left: 2%; width: 29%; }
  .node-qualify { top: 291px; left: 35%; width: 29%; }
  .node-crm { top: 291px; left: 68%; width: 29%; }
  .node-booking { top: 363px; left: 2%; width: 29%; }
  .node-followup { top: 363px; left: 35%; width: 29%; }
  .process-line,
  .route-dot,
  .branch-line { display: none; }
  .node-human { top: 439px; left: 3%; width: 44%; }
  .node-continue { top: 439px; left: 53%; width: 44%; }
  .status-toast { left: 3%; right: auto; bottom: 15px; }
}

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