:root {
  --blue: #016ff7;
  --blue-2: #58a4ec;
  --navy: #06152d;
  --text: #0b1730;
  --muted: #68758a;
  --line: #dce4ef;
  --line-strong: #c8d7e8;
  --surface: #fefefe;
  --surface-soft: #f4f8fc;
  --surface-blue: #edf6ff;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 80px rgba(6, 21, 45, 0.09);
  --shadow-card: 0 14px 44px rgba(6, 21, 45, 0.07);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.87, 0, 0.13, 1);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

::selection { background: #cbe4ff; color: var(--navy); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 254, 254, 0.94);
  border-bottom: 1px solid transparent;
  transition: opacity 150ms var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(6, 21, 45, 0.05); }
.header-inner { min-height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { width: 214px; display: block; border-radius: 8px; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 30px; }
.desktop-nav a, .footer-links a { text-decoration: none; color: #44536d; font-weight: 620; font-size: 0.92rem; }
.desktop-nav a { position: relative; padding: 10px 0; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms var(--ease-out);
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.015em;
  transition: transform 150ms var(--ease-out);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6, 21, 45, 0.11); border-color: #b9cce2; }
.button:active { transform: scale(0.97); }
.button-primary { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 12px 30px rgba(1, 111, 247, 0.22); }
.button-primary:hover { background: #0064df; border-color: #0064df; box-shadow: 0 16px 34px rgba(1, 111, 247, 0.28); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 0.9rem; }
.button-large { min-height: 58px; padding-inline: 28px; }
.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: transform 150ms var(--ease-out), text-decoration-color 150ms var(--ease-out);
}
.text-link:hover { transform: translateX(3px); text-decoration-color: transparent; }

.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { background: var(--surface); border-top: 1px solid var(--line); padding: 14px 20px 24px; }
.mobile-menu a:not(.button) { display: block; padding: 13px 0; text-decoration: none; font-weight: 720; border-bottom: 1px solid var(--line); }
.mobile-menu .button { margin-top: 16px; width: 100%; }
.noscript-nav { display: flex; justify-content: center; gap: 22px; padding: 10px 20px 14px; border-top: 1px solid var(--line); font-size: 0.86rem; font-weight: 700; }
.noscript-nav a { color: #405878; }

:focus-visible { outline: 3px solid rgba(1, 111, 247, 0.35); outline-offset: 3px; }

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  padding-block: clamp(60px, 8vw, 112px);
}
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.25rem, 7vw, 6.8rem); line-height: 0.93; letter-spacing: -0.062em; font-weight: 850; color: var(--navy); }
.hero-lead { margin: 28px 0 0; max-width: 620px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.58; color: #53627a; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }

.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; isolation: isolate; overflow-x: visible; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 164, 236, 0.16) 0%, rgba(88, 164, 236, 0.04) 55%, rgba(88, 164, 236, 0) 74%);
  z-index: -2;
}
.phone-frame {
  width: min(360px, 78vw);
  min-height: 540px;
  background: #f6f9fc;
  border: 9px solid #e4ebf3;
  border-radius: 46px;
  box-shadow: 0 36px 90px rgba(23, 57, 101, 0.16), inset 0 0 0 1px #c6d3e1;
  padding: 18px;
  transform: rotate(2.2deg);
  position: relative;
  overflow: hidden;
}
.phone-frame::before { content: ""; position: absolute; top: 7px; left: 50%; width: 95px; height: 24px; transform: translateX(-50%); border-radius: 0 0 16px 16px; background: #dae2eb; }
.phone-topbar { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; margin-top: 22px; padding-bottom: 16px; border-bottom: 1px solid #e5ebf2; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.82rem; letter-spacing: -0.04em; }
.phone-topbar strong { display: block; font-size: 0.95rem; }
.phone-topbar div span { display: block; margin-top: 2px; color: var(--blue); font-size: 0.72rem; }
.menu-dots { letter-spacing: 1px; color: #69809e; transform: rotate(90deg); }
.chat-window { min-height: 350px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 30px 0 20px; }
.bubble { max-width: 86%; padding: 13px 15px; border-radius: 18px; font-size: 0.9rem; line-height: 1.38; box-shadow: 0 5px 12px rgba(6, 21, 45, 0.04); }
.bubble-user { align-self: flex-end; background: #d9f7c9; border-bottom-right-radius: 6px; }
.bubble-bot { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; }
.typing-indicator { align-self: flex-start; display: flex; gap: 4px; background: var(--white); padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 6px; }
.typing-indicator span { width: 5px; height: 5px; border-radius: 50%; background: #8b9bb0; }
.message-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--white); padding: 10px 10px 10px 14px; border-radius: 18px; color: #8a9bb2; font-size: 0.78rem; }
.send-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); position: relative; }
.send-dot::after { content: ""; position: absolute; width: 8px; height: 8px; border-right: 2px solid white; border-top: 2px solid white; transform: rotate(45deg); top: 9px; left: 8px; }
.automation-chip { position: absolute; display: flex; align-items: center; gap: 9px; padding: 11px 14px; background: rgba(255,255,255,0.98); border: 1px solid #d7e4f1; border-radius: 14px; box-shadow: 0 16px 36px rgba(6,21,45,0.10); font-size: 0.75rem; color: #334865; }
.automation-chip span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-blue); color: var(--blue); font-weight: 800; }
.automation-chip strong { font-weight: 760; }
.chip-one { top: -20px; left: 0; }
.chip-two { right: -93px; top: 375px; }
.chip-three { left: 18px; bottom: -5px; }
.route { position: absolute; border: 1px dashed #a5caef; border-radius: 50%; z-index: -1; }
.route-a { width: 500px; height: 500px; }
.route-b { width: 590px; height: 390px; transform: rotate(-20deg); opacity: 0.55; }

.intro-strip { border-block: 1px solid var(--line); background: #fbfdff; }
.intro-strip-inner { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.intro-strip p { margin: 0; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 700; color: #2b405e; }
.intro-strip p:last-child { text-align: right; }
.intro-strip span { width: 78px; height: 1px; background: var(--blue); }

.section { padding-block: clamp(88px, 10vw, 140px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 28px 60px; align-items: end; margin-bottom: 58px; }
.section-heading .section-label { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: 0.94; letter-spacing: -0.05em; color: var(--navy); }
.section-heading > p:last-child { margin: 0 0 8px; max-width: 540px; color: var(--muted); line-height: 1.65; font-size: 1.03rem; }
.section-label { margin: 0 0 12px; font-size: 0.86rem; font-weight: 760; color: var(--blue); letter-spacing: -0.01em; }

.service-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.service-card { grid-column: span 4; position: relative; min-height: 390px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); overflow: hidden; transition: transform 160ms var(--ease-out); }
.service-card:hover { transform: translateY(-4px); border-color: #bcd3ec; box-shadow: var(--shadow-card); }
.service-card-wide { grid-column: span 8; display: grid; grid-template-columns: 1fr 190px; gap: 28px; }
.service-card-wide .service-content { align-self: end; }
.service-card h3 { margin: 0 0 14px; max-width: 330px; font-size: clamp(1.55rem, 2.8vw, 2.35rem); line-height: 1.03; letter-spacing: -0.04em; }
.service-card p { margin: 0; color: #5d6e86; line-height: 1.56; }
.service-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 9px; color: #38516e; font-size: 0.9rem; }
.service-card li { position: relative; padding-left: 18px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 2px; background: var(--blue); }
.service-card-blue { background: var(--blue); color: white; border-color: var(--blue); }
.service-card-blue p, .service-card-blue ul { color: #e9f4ff; }
.service-card-blue li::before { background: white; }
.service-card-dark { background: var(--navy); color: white; border-color: var(--navy); grid-column: span 5; }
.service-card-dark p, .service-card-dark ul { color: #d5dfeb; }
.service-card-dark li::before { background: var(--blue-2); }
.service-card-custom { grid-column: span 12; min-height: 310px; background: #f7fbff; border-color: #9dc8f8; display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-rows: auto 1fr; column-gap: 70px; align-items: start; }
.service-card-custom h3, .service-card-custom p { grid-column: 1; }
.service-card-custom ul { grid-column: 2; grid-row: 1 / span 2; margin-top: 70px; }
.service-badge { position: absolute; top: 24px; right: 24px; border: 1px solid #b9dafb; color: var(--blue); background: var(--white); padding: 8px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 760; }
.service-art { align-self: stretch; position: relative; min-height: 260px; border-left: 1px solid #cfe0f0; }
.flow-node { position: absolute; width: 132px; min-height: 58px; padding: 10px 12px; border: 1px solid #c7ddf2; border-radius: 12px; background: var(--white); box-shadow: 0 10px 28px rgba(6,21,45,0.06); z-index: 2; }
.flow-node span { display: block; color: #7790ad; font-size: 0.68rem; margin-bottom: 4px; }
.flow-node strong { display: block; color: #233b59; font-size: 0.78rem; line-height: 1.2; }
.flow-entry { left: 24px; top: 24px; }
.flow-rule { right: 4px; top: 112px; }
.flow-human { left: 22px; bottom: 18px; width: 150px; }
.flow-connector { position: absolute; display: block; height: 2px; background: #7eb9f5; transform-origin: left center; z-index: 1; }
.flow-connector-a { width: 106px; left: 86px; top: 92px; transform: rotate(32deg); }
.flow-connector-b { width: 92px; left: 74px; top: 181px; transform: rotate(-28deg); }


.process-section { background: var(--surface-soft); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.process-copy { position: sticky; top: calc(var(--header-h) + 30px); }
.process-copy h2 { margin: 0; font-size: clamp(2.4rem, 4.6vw, 4.15rem); line-height: 1; letter-spacing: -0.05em; }
.process-copy > p:not(.section-label) { max-width: 520px; color: var(--muted); line-height: 1.65; margin: 24px 0; }
.process-list { list-style: none; padding: 0; margin: 0; display: grid; }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid #cad8e7; }
.process-list li:last-child { border-bottom: 1px solid #cad8e7; }
.step-number { font-size: 0.78rem; color: var(--blue); font-weight: 840; letter-spacing: 0.1em; padding-top: 5px; }
.process-list h3 { margin: 0; font-size: 1.4rem; letter-spacing: -0.025em; }
.process-list p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.demo-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(50px, 7vw, 90px); align-items: start; }
.demo-heading { position: sticky; top: calc(var(--header-h) + 30px); }
.demo-heading h2 { margin: 0; font-size: clamp(2.3rem, 4.7vw, 4.1rem); line-height: 1; letter-spacing: -0.05em; }
.demo-heading > p:last-child { color: var(--muted); line-height: 1.6; max-width: 460px; }
.demo-panel { background: var(--navy); color: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 28px 70px rgba(6,21,45,0.16); }
.demo-tabs { display: flex; gap: 4px; padding: 12px; background: #0c1e3a; border-bottom: 1px solid #1b3152; }
.demo-tab { border: 0; background: transparent; color: #9bb0cb; padding: 10px 14px; border-radius: 9px; font-weight: 760; cursor: pointer; transition: transform 150ms var(--ease-out); }
.demo-tab:hover { color: white; background: #122947; }
.demo-tab:active { transform: scale(0.97); }
.demo-tab.is-active { background: white; color: var(--navy); }
.demo-body { min-height: 480px; display: grid; grid-template-columns: 64px 1fr minmax(180px, 0.52fr); }
.demo-sidebar { padding: 20px 12px; background: #071832; border-right: 1px solid #1b3152; display: flex; align-items: center; flex-direction: column; gap: 20px; }
.demo-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-size: 0.7rem; font-weight: 900; }
.demo-sidebar span { width: 22px; height: 2px; background: #536b8b; }
.demo-conversation { padding: 28px; min-width: 0; }
.demo-status { font-size: 0.78rem; color: #9bb0cb; display: flex; align-items: center; gap: 7px; }
.demo-status span { width: 7px; height: 7px; border-radius: 50%; background: #7ee28a; }
.demo-messages { display: grid; gap: 12px; align-content: end; min-height: 380px; padding-top: 30px; }
.demo-message { max-width: 90%; padding: 13px 15px; border-radius: 16px; line-height: 1.45; font-size: 0.9rem; }
.demo-message.user { justify-self: end; background: var(--blue); }
.demo-message.bot { justify-self: start; background: #152b4b; color: #eaf2fc; }
.demo-rules { padding: 28px 20px; border-left: 1px solid #1b3152; background: #0a1b35; }
.demo-rules p { margin-top: 0; color: #9bb0cb; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.demo-rules ul { list-style: none; padding: 0; display: grid; gap: 12px; color: #dce7f5; font-size: 0.85rem; line-height: 1.45; }
.demo-rules li { padding-left: 16px; position: relative; }
.demo-rules li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 2px; background: var(--blue-2); }

.integration-section { background: #f8fbff; border-block: 1px solid var(--line); }
.integration-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(50px, 8vw, 100px); align-items: center; }
.integration-visual { position: relative; aspect-ratio: 600 / 420; }
.integration-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.integration-visual path { fill: none; stroke: #a7c7e9; stroke-width: 1.5; stroke-dasharray: 8 10; }
.node { position: absolute; z-index: 2; display: grid; place-items: center; width: 104px; height: 48px; border-radius: 12px; background: white; border: 1px solid #c8d9ea; box-shadow: 0 12px 30px rgba(6,21,45,0.06); color: #405471; font-weight: 760; font-size: 0.85rem; }
.node-center { width: 124px; height: 124px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--blue); color: white; border: 0; font-weight: 900; letter-spacing: 0.08em; box-shadow: 0 20px 45px rgba(1,111,247,0.22); }
.node-a { left: 4%; top: 10%; }
.node-b { right: 4%; top: 10%; }
.node-c { left: 4%; bottom: 10%; }
.node-d { right: 4%; bottom: 10%; }
.integration-copy h2 { margin: 0; font-size: clamp(2.4rem, 4.8vw, 4.4rem); line-height: 0.99; letter-spacing: -0.05em; }
.integration-copy > p:not(.section-label) { color: var(--muted); line-height: 1.65; margin: 24px 0; }
.integration-list { display: flex; flex-wrap: wrap; gap: 9px; }
.integration-list span { padding: 8px 11px; border-bottom: 2px solid #cfe2f5; color: #3c5573; font-size: 0.86rem; font-weight: 700; }

.proof-section { display: grid; gap: 50px; }
.section-heading.narrow { display: block; margin-bottom: 0; max-width: 780px; }
.section-heading.narrow h2 { max-width: 760px; }
.proof-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.proof-grid article { padding: 32px 30px 34px 0; }
.proof-grid article + article { border-left: 1px solid var(--line-strong); padding-left: 30px; }
.proof-grid h3 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -0.025em; }
.proof-grid p { margin: 0; color: var(--muted); line-height: 1.58; }

.faq-section { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(52px, 8vw, 108px); align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-heading h2 { margin: 0; font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1; letter-spacing: -0.05em; }
.faq-list { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line-strong); }
summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: 1.05rem; font-weight: 760; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--blue); font-size: 1.5rem; font-weight: 500; transition: transform 160ms var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -4px 0 24px; color: var(--muted); line-height: 1.65; max-width: 700px; }

.final-cta { padding-block: 48px 84px; }
.final-cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding: clamp(38px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--navy); color: white; position: relative; overflow: hidden; }
.final-cta-inner::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(88,164,236,0.28); border-radius: 50%; right: 16%; top: -108px; }
.final-cta .section-label { color: #8cbdf4; }
.final-cta h2 { margin: 0; max-width: 720px; font-size: clamp(2.35rem, 4.5vw, 4.25rem); line-height: 0.94; letter-spacing: -0.05em; }
.final-cta p:not(.section-label) { margin-bottom: 0; color: #b9c9dd; }
.final-cta .button { position: relative; z-index: 1; }

.site-footer { border-top: 1px solid var(--line); padding-block: 42px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: end; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; font-size: 0.88rem; }
.footer-links { display: flex; gap: 24px; }
.footer-note { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #8a99ac; font-size: 0.8rem; }

html.motion-ready [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(5px); }
html.motion-ready [data-reveal="hero"] { transform: translateY(18px); }
html.motion-ready [data-reveal="hero-visual"] { transform: translateY(10px) scale(0.985); }
html.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), filter 280ms var(--ease-out); }
html.motion-ready [data-reveal="line"] { transform: translateY(8px); }
.service-card.is-visible:nth-child(2) { transition-delay: 40ms; }
.service-card.is-visible:nth-child(3) { transition-delay: 80ms; }
.service-card.is-visible:nth-child(4) { transition-delay: 40ms; }
.service-card.is-visible:nth-child(5) { transition-delay: 80ms; }

html.motion-ready #bots .service-card:nth-child(n + 3)[data-reveal="card"] {
  transform: translateY(34px);
}

html.motion-ready #bots .service-card:nth-child(n + 3)[data-reveal="card"].is-visible {
  transform: translateY(0);
  transition-duration: 560ms;
}

html.motion-ready #bots .service-card:nth-child(3).is-visible { transition-delay: 60ms; }
html.motion-ready #bots .service-card:nth-child(4).is-visible { transition-delay: 140ms; }
html.motion-ready #bots .service-card:nth-child(5).is-visible { transition-delay: 220ms; }

html.motion-ready .phone-frame { animation: phone-settle 300ms var(--ease-out) both; }
html.motion-ready .chip-one { animation: chip-settle-a 280ms 120ms var(--ease-out) both; }
html.motion-ready .chip-two { animation: chip-settle-b 280ms 165ms var(--ease-out) both; }
html.motion-ready .chip-three { animation: chip-settle-c 280ms 210ms var(--ease-out) both; }
html.motion-ready .typing-indicator span { animation: dot-once 280ms 360ms var(--ease-out) 2 both; }
html.motion-ready .typing-indicator span:nth-child(2) { animation-delay: 405ms; }
html.motion-ready .typing-indicator span:nth-child(3) { animation-delay: 450ms; }

@keyframes phone-settle {
  from { opacity: 0; transform: translateY(12px) rotate(0.5deg) scale(0.97); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) rotate(2.2deg) scale(1); filter: blur(0); }
}
@keyframes chip-settle-a { from { opacity: 0; transform: translate(-10px, 6px); } to { opacity: 1; transform: translate(0,0); } }
@keyframes chip-settle-b { from { opacity: 0; transform: translate(10px, 6px); } to { opacity: 1; transform: translate(0,0); } }
@keyframes chip-settle-c { from { opacity: 0; transform: translate(-8px, 6px); } to { opacity: 1; transform: translate(0,0); } }
@keyframes dot-once { 0%, 100% { opacity: 0.45; transform: translateY(0); } 45% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 1020px) {
  :root { --header-h: 76px; }
  .desktop-nav, .header-inner > .button-small { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-button { display: block; }
  .brand { width: 190px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 70px; }
  .hero-copy { max-width: 820px; }
  .hero-visual { min-height: 620px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .section-label { grid-column: auto; }
  .service-card { grid-column: span 6; }
  .service-card-wide { grid-column: span 12; }
  .service-card-dark { grid-column: span 6; }
  .service-card-custom { grid-column: span 12; }
  .process-grid, .demo-section, .integration-grid, .faq-section { grid-template-columns: 1fr; }
  .process-copy, .demo-heading, .faq-heading { position: static; }
  .demo-section { gap: 34px; }
  .integration-visual { max-width: 720px; width: 100%; justify-self: center; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid article, .proof-grid article + article { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .proof-grid article:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .brand { width: 168px; }
  .hero { padding-block: 54px 70px; gap: 34px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .text-link { justify-content: center; }
  .hero-visual { min-height: 540px; margin-inline: -4px; }
  .phone-frame { width: 292px; min-height: 474px; border-width: 7px; border-radius: 38px; padding: 15px; }
  .chat-window { min-height: 302px; }
  .bubble { font-size: 0.82rem; }
  .automation-chip { font-size: 0.68rem; padding: 9px 11px; }
  .automation-chip span { width: 20px; height: 20px; }
  .chip-one { left: 22px; top: -16px; }
  .chip-two { right: 22px; top: -16px; }
  .chip-three { left: 30px; bottom: -16px; }
  .route-a { width: 380px; height: 380px; }
  .route-b { width: 420px; height: 300px; }
  .intro-strip-inner { min-height: 104px; grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .intro-strip p, .intro-strip p:last-child { text-align: left; }
  .intro-strip span { width: 42px; }
  .section { padding-block: 78px; }
  .section-heading { margin-bottom: 34px; gap: 12px; }
  .section-heading h2, .process-copy h2, .demo-heading h2, .integration-copy h2, .faq-heading h2 { font-size: clamp(2.25rem, 11.5vw, 3.7rem); }
  .service-mosaic { grid-template-columns: 1fr; }
  .service-card, .service-card-wide, .service-card-dark, .service-card-custom { grid-column: auto; min-height: 0; }
  .service-card-custom { display: block; }
  .service-card-custom ul { margin-top: 24px; }
  .service-card { padding: 26px; }
  .service-card-wide { display: block; }
  .service-art { display: none; }
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .demo-sidebar { display: none; }
  .demo-rules { border-left: 0; border-top: 1px solid #1b3152; }
  .demo-tabs { overflow-x: auto; scrollbar-width: none; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-messages { min-height: 300px; }
  .integration-visual { transform: scale(1.06); margin-block: 20px; }
  .node { width: 82px; height: 42px; font-size: 0.73rem; }
  .node-center { width: 94px; height: 94px; }
  .final-cta { padding-bottom: 60px; }
  .final-cta-inner { grid-template-columns: 1fr; align-items: start; }
  .final-cta .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .phone-frame { width: 270px; }
  .automation-chip { padding: 6px 8px; gap: 7px; font-size: 0.6rem; border-radius: 12px; }
  .automation-chip span { width: 18px; height: 18px; border-radius: 6px; }
  .chip-one { left: 0; top: -12px; }
  .chip-two { right: 0; top: -12px; }
  .chip-three { left: 4px; bottom: -12px; }
  .automation-chip strong { max-width: 86px; }
  .integration-visual { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .phone-frame { transform: rotate(2.2deg); }
}

/* ==========================================================================
   Bots — ajuste visual fiel à referência aprovada (2026-09-20)
   ========================================================================== */
#bots {
  width: min(1268px, calc(100% - 48px));
  padding-top: 58px;
  padding-bottom: 56px;
}

#bots .section-heading {
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  column-gap: clamp(72px, 7.2vw, 102px);
  row-gap: 28px;
  align-items: center;
  margin-bottom: 50px;
}

#bots .section-heading .section-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--blue);
}

#bots .bots-title {
  max-width: 660px;
  font-size: clamp(3.5rem, 5.3vw, 4.625rem);
  line-height: 0.94;
  letter-spacing: -0.058em;
}

#bots .bots-title > span {
  display: block;
  white-space: nowrap;
}

#bots .section-heading > p:last-child {
  max-width: 460px;
  margin: 16px 0 0;
  align-self: center;
  color: #7888a1;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.6;
}

#bots .service-mosaic {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 18px;
  align-items: stretch;
}

#bots .service-card {
  min-height: 334px;
  padding: 34px 34px 32px;
  border-color: #b8d6f3;
  border-radius: 19px;
  box-shadow: none;
}

#bots .service-card:hover {
  transform: translateY(-2px);
  border-color: #92c4f2;
  box-shadow: 0 14px 34px rgba(6, 21, 45, 0.06);
}

#bots .service-card h3 {
  max-width: none;
  margin: 0 0 18px;
  color: inherit;
  font-size: 2rem;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

#bots .service-card p {
  max-width: 100%;
  color: #73839b;
  font-size: 0.98rem;
  line-height: 1.55;
}

#bots .service-card ul {
  margin-top: 22px;
  gap: 10px;
  color: #6b7c95;
  font-size: 0.93rem;
  line-height: 1.35;
}

#bots .service-card li {
  padding-left: 24px;
}

#bots .service-card li::before {
  top: 0.66em;
  width: 8px;
  height: 2px;
  background: var(--blue);
}

#bots .service-card-wide {
  grid-column: span 8;
  min-height: 348px;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 34px;
}

#bots .service-card-wide .service-content {
  align-self: start;
}

#bots .service-card-wide .service-content h3 {
  max-width: 220px;
}

#bots .service-card-wide .service-content p {
  max-width: 535px;
}

#bots .service-card:nth-child(2) {
  grid-column: span 4;
  min-height: 348px;
}

#bots .service-card:nth-child(2) h3 {
  max-width: 230px;
}

#bots .service-card-blue,
#bots .service-card-dark,
#bots .service-card-custom {
  grid-column: span 4;
  min-height: 339px;
}

#bots .service-card-blue {
  background: #0b73f5;
  border-color: #0b73f5;
  color: #fff;
}

#bots .service-card-blue p,
#bots .service-card-blue ul {
  color: #edf6ff;
}

#bots .service-card-blue li::before {
  background: #fff;
}

#bots .service-card-dark {
  background: #07162e;
  border-color: #07162e;
  color: #fff;
}

#bots .service-card-dark p,
#bots .service-card-dark ul {
  color: #e1e8f1;
}

#bots .service-card-dark li::before {
  background: #dce9f7;
}

#bots .service-card-custom {
  display: block;
  background: #fff;
  border-color: #b8d6f3;
}

#bots .service-card-custom h3,
#bots .service-card-custom p,
#bots .service-card-custom ul {
  grid-column: auto;
  grid-row: auto;
}

#bots .service-card-custom ul {
  margin-top: 22px;
}

#bots .service-art {
  min-height: 274px;
  border-left-color: #b8d6f3;
}

#bots .flow-node {
  width: 140px;
  min-height: 58px;
  padding: 10px 12px;
  border-color: #bdd9f4;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(6, 21, 45, 0.045);
}

#bots .flow-node span {
  color: #8da4bf;
  font-size: 0.65rem;
}

#bots .flow-node strong {
  color: #0b2342;
  font-size: 0.78rem;
}

#bots .flow-entry {
  left: 42px;
  top: 4px;
}

#bots .flow-rule {
  right: 0;
  top: 92px;
}

#bots .flow-human {
  left: 42px;
  bottom: 4px;
  width: 152px;
}

#bots .flow-connector-a {
  width: 86px;
  left: 100px;
  top: 70px;
  transform: rotate(30deg);
}

#bots .flow-connector-b {
  width: 82px;
  left: 93px;
  top: 166px;
  transform: rotate(-28deg);
}

@media (max-width: 1120px) {
  #bots .section-heading {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  #bots .section-heading .section-label {
    grid-column: auto;
  }

  #bots .section-heading > p:last-child {
    max-width: 720px;
    margin-top: 0;
  }

  #bots .service-card-wide,
  #bots .service-card:nth-child(2) {
    grid-column: span 12;
  }

  #bots .service-card-blue,
  #bots .service-card-dark,
  #bots .service-card-custom {
    grid-column: span 4;
  }
}

@media (max-width: 860px) {
  #bots {
    width: min(100% - 32px, 1268px);
  }

  #bots .bots-title {
    max-width: 720px;
    font-size: clamp(2.8rem, 9vw, 4rem);
  }

  #bots .bots-title > span {
    white-space: normal;
  }

  #bots .service-card-wide,
  #bots .service-card:nth-child(2),
  #bots .service-card-blue,
  #bots .service-card-dark,
  #bots .service-card-custom {
    grid-column: span 6;
  }

  #bots .service-card-wide {
    grid-column: span 12;
  }
}

@media (max-width: 620px) {
  #bots {
    width: min(100% - 28px, 1268px);
    padding-top: 72px;
    padding-bottom: 78px;
  }

  #bots .section-heading {
    margin-bottom: 34px;
  }

  #bots .bots-title {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
  }

  #bots .service-mosaic {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #bots .service-card-wide,
  #bots .service-card:nth-child(2),
  #bots .service-card-blue,
  #bots .service-card-dark,
  #bots .service-card-custom {
    grid-column: auto;
    min-height: 0;
  }

  #bots .service-card {
    padding: 28px 26px;
  }

  #bots .service-card-wide {
    display: block;
  }

  #bots .service-art {
    display: none;
  }
}

/* Revisão mobile isolada. Regras acima de 768px permanecem intactas. */
@media (max-width: 768px) {
  .shell,
  #bots {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 16px;
  }

  .brand {
    width: min(168px, calc(100vw - 92px));
  }

  .menu-button {
    flex: 0 0 44px;
  }

  .mobile-menu a:not(.button),
  .mobile-menu .button {
    min-height: 48px;
  }

  .hero {
    gap: 42px;
    padding-top: 48px;
    padding-bottom: 68px;
  }

  .hero-copy,
  .hero-visual,
  .demo-panel,
  .demo-tabs,
  .demo-body,
  .integration-visual {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.052em;
    overflow-wrap: normal;
  }

  .hero-lead {
    margin-top: 22px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    min-height: 50px;
  }

  .hero-visual {
    width: 100%;
    min-height: 530px;
    margin-inline: 0;
    overflow: hidden;
  }

  .route-a,
  .route-b {
    left: 50%;
    top: 50%;
  }

  .route-a {
    width: min(88vw, 380px);
    height: min(88vw, 380px);
    transform: translate(-50%, -50%);
  }

  .route-b {
    width: min(94vw, 430px);
    height: min(68vw, 310px);
    transform: translate(-50%, -50%) rotate(-20deg);
  }

  .automation-chip {
    max-width: calc(50% - 8px);
    padding: 8px 10px;
    gap: 8px;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .automation-chip span {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .automation-chip strong {
    max-width: none;
    white-space: normal;
  }

  .chip-one {
    left: 0;
    top: 8px;
  }

  .chip-two {
    right: 0;
    top: 8px;
  }

  .chip-three {
    left: 0;
    bottom: 8px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading h2,
  .process-copy h2,
  .demo-heading h2,
  .integration-copy h2,
  .faq-heading h2,
  .final-cta h2 {
    font-size: clamp(2.25rem, 9.5vw, 3.75rem);
    line-height: 1;
  }

  .process-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }

  .demo-section {
    width: calc(100% - 32px);
  }

  .demo-tabs {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .demo-tab {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .demo-conversation,
  .demo-rules {
    padding: 22px 18px;
  }

  .demo-message {
    max-width: 94%;
    overflow-wrap: anywhere;
  }

  .integration-visual {
    width: 100%;
    transform: none;
    margin-block: 8px 18px;
  }

  summary {
    min-height: 56px;
    padding-right: 44px;
    overflow-wrap: anywhere;
  }

  .final-cta-inner {
    padding: clamp(30px, 8vw, 48px) clamp(22px, 6vw, 36px);
  }

  .footer-links {
    gap: 18px 24px;
  }
}

@media (max-width: 430px) {
  .shell,
  #bots,
  .demo-section {
    width: calc(100% - 28px);
  }

  .brand {
    width: min(154px, calc(100vw - 86px));
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 62px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12.8vw, 3.45rem);
  }

  .hero-visual {
    min-height: 500px;
  }

  .phone-frame {
    width: min(270px, calc(100vw - 66px));
  }

  .automation-chip {
    max-width: calc(50% - 5px);
    padding: 7px 8px;
    gap: 6px;
    font-size: 0.58rem;
  }

  .automation-chip span {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .chip-one,
  .chip-two {
    top: 10px;
  }

  .chip-three {
    bottom: 10px;
  }

  .intro-strip-inner {
    padding-block: 24px;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading h2,
  .process-copy h2,
  .demo-heading h2,
  .integration-copy h2,
  .faq-heading h2,
  .final-cta h2 {
    font-size: clamp(2.15rem, 10.8vw, 3rem);
  }

  #bots .service-card {
    padding: 26px 22px;
  }

  #bots .service-card h3 {
    font-size: 1.75rem;
  }

  .demo-tabs {
    padding: 8px;
  }

  .demo-tab {
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .integration-visual {
    aspect-ratio: 1 / 0.82;
  }

  .node {
    width: 76px;
    height: 42px;
    font-size: 0.72rem;
  }

  .node-center {
    width: 88px;
    height: 88px;
  }

  .final-cta {
    padding-bottom: 52px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
