:root {
  --ink: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #dc2626;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

body::selection {
  color: white;
  background: var(--blue);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

section {
  scroll-margin-top: 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-shell,
.footer-inner {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #64748b;
}

.logo-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.logo-word {
  display: grid;
  gap: 5px;
}

.logo-word strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.82;
}

.logo-word span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  background: var(--blue-dark);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  box-shadow: none;
}

.button-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: white;
  box-shadow: none;
}

.button-ghost:hover {
  color: var(--blue);
  background: white;
  box-shadow: var(--shadow-soft);
}

.section-shell {
  padding: 108px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 92px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 850;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 800;
}

.hero-lede {
  max-width: 660px;
  color: var(--slate);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 650;
  line-height: 1.45;
}

.hero-subcopy,
.section-copy p,
.section-head > p,
.centered-head p,
.authority-copy p,
.faq-list p,
.service-card p,
.framework-card p,
.timeline-step p,
.form-note,
.site-footer p,
.site-footer span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.trust-strip div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, white, #fbfdff);
  box-shadow: var(--shadow-soft);
}

.trust-strip i,
.timeline-step i,
.trust-badges i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue);
}

.trust-strip svg,
.timeline-step svg,
.trust-badges svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.trust-strip span {
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
}

.workflow-visual {
  position: relative;
  min-height: 620px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 32px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workflow-visual::before,
.workflow-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
}

.workflow-visual::before {
  inset: 132px 96px;
}

.workflow-visual::after {
  inset: 204px 160px;
}

.visual-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-topline strong {
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.workflow-map {
  position: relative;
  z-index: 2;
  min-height: 430px;
  margin-top: 42px;
}

.system-node,
.automation-core {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.system-node {
  width: 138px;
  height: 98px;
  border-radius: 14px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
}

.system-node i,
.service-card i,
.icon-list i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
}

.system-node svg,
.service-card svg,
.icon-list svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.node-mail { top: 22px; left: 32px; }
.node-docs { top: 36px; right: 32px; }
.node-crm { bottom: 30px; left: 50px; }
.node-report { bottom: 42px; right: 48px; }

.automation-core {
  top: 50%;
  left: 50%;
  width: 210px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-color: rgba(37, 99, 235, 0.38);
  border-radius: 20px;
  text-align: center;
}

.automation-core span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.automation-core b {
  display: block;
  max-width: 150px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
}

.visual-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.visual-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.visual-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.visual-metrics b {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 58px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.roi-card,
.comparison-card,
.service-card,
.framework-card,
.timeline-step,
.use-case,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.roi-card {
  padding: 32px;
}

.calculator-grid {
  display: grid;
  gap: 24px;
}

.range-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  color: var(--slate);
  font-weight: 800;
}

.range-control output {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.range-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--blue);
}

.roi-output {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.roi-output span,
.label {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roi-output strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.roi-output p {
  color: var(--muted);
}

.centered-head {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.comparison-card {
  padding: 34px;
}

.comparison-card.automated {
  border-color: rgba(37, 99, 235, 0.32);
}

.label.danger {
  color: var(--red);
}

.icon-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.icon-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  color: var(--slate);
  font-weight: 750;
}

.manual .icon-list i {
  color: var(--red);
  background: #fef2f2;
}

.soft-band {
  position: relative;
}

.soft-band::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.card-grid,
.framework-grid,
.use-case-grid {
  display: grid;
  gap: 20px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  min-height: 260px;
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.framework-card:hover,
.use-case:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card h3 {
  margin-top: 24px;
}

.framework-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.framework-card {
  padding: 30px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mini-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.mini-flow span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.framework-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 850;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0));
}

.timeline-step {
  position: relative;
  min-height: 286px;
  padding: 30px;
  overflow: hidden;
  isolation: isolate;
}

.timeline-step i {
  position: relative;
  z-index: 2;
  margin-bottom: 38px;
  background: white;
  box-shadow: 0 0 0 8px var(--soft);
}

.timeline-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.timeline-step::after {
  content: attr(data-step);
  position: absolute;
  right: 18px;
  bottom: -22px;
  z-index: -1;
  color: rgba(37, 99, 235, 0.06);
  font-size: 112px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.use-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.use-case {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 104px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.use-case span {
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.use-case i {
  height: 1px;
  background: var(--blue);
  opacity: 0.5;
}

.authority-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 52px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.authority-copy {
  max-width: 650px;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trust-badges article {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 38%),
    white;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.trust-badges article:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.trust-badges span {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.trust-badges p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-soft);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 24px 22px;
}

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

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
}

.lead-form label {
  color: var(--slate);
  font-size: 13px;
  font-weight: 850;
}

.lead-form input,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 15px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lead-form textarea {
  min-height: 126px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.lead-form .full,
.lead-form .form-note {
  grid-column: 1 / -1;
}

.lead-form button {
  justify-self: center;
  grid-column: 1 / -1;
  min-width: 260px;
}

.form-note {
  margin: 0;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 34px;
  padding: 42px 0;
}

.site-footer .brand,
.site-footer a {
  color: white;
}

.site-footer .logo-word strong {
  color: white;
}

.site-footer .logo-word span {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer p,
.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 14px;
  font-weight: 700;
}

.site-footer > .footer-inner > span {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split-section,
  .authority-section,
  .faq-layout,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .workflow-visual {
    min-height: 560px;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-shell,
  .footer-inner {
    width: min(calc(100% - 32px), 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .button-small {
    padding: 0 14px;
    font-size: 12px;
  }

  .section-shell {
    padding: 78px 0;
  }

  .hero {
    padding-top: 56px;
    gap: 46px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions,
  .trust-strip,
  .visual-metrics,
  .comparison-grid,
  .service-grid,
  .framework-grid,
  .timeline,
  .use-case-grid,
  .trust-badges,
  .lead-form,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .workflow-visual {
    min-height: 540px;
    padding: 18px;
  }

  .system-node {
    width: 122px;
  }

  .node-mail { left: 10px; }
  .node-docs { right: 10px; }
  .node-crm { left: 10px; }
  .node-report { right: 10px; }

  .automation-core {
    width: 180px;
  }

  .use-case {
    grid-template-columns: 1fr;
  }

  .use-case i {
    width: 1px;
    height: 18px;
    margin: 0 auto;
  }

  .lead-form button {
    justify-self: stretch;
    min-width: 0;
  }
}
