:root {
  --ink: #18232d;
  --ink-2: #253342;
  --muted: #66717f;
  --line: #d8e1e9;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --green: #14a36f;
  --green-dark: #0d7754;
  --blue: #316bd8;
  --amber: #b9852c;
  --red: #c94b5d;
  --panel: #f8fbfd;
  --shadow: 0 22px 62px rgba(24, 35, 45, 0.16);
  --shadow-soft: 0 12px 34px rgba(24, 35, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #f7fafc;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 232, 0.82);
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(20, 163, 111, 0.28);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-switch a.active {
  color: #fff;
  background: var(--ink);
}

.top-cta,
.button,
.lead-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.top-cta {
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #2c3b48);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px) clamp(64px, 8vw, 96px);
  background:
    linear-gradient(90deg, rgba(247,250,252,0.99) 0%, rgba(247,250,252,0.98) 46%, rgba(247,250,252,0.7) 67%, rgba(247,250,252,0.18) 100%),
    radial-gradient(circle at 77% 23%, rgba(20, 163, 111, 0.18), transparent 32%),
    linear-gradient(135deg, #f7fafc 0%, #edf8f4 48%, #eef4fb 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(247,250,252,0), #f7fafc);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.lead {
  max-width: 600px;
  color: #344054;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 610px;
  margin: 22px 0 0;
}

.hero-scope span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(216, 225, 233, 0.88);
  border-radius: 8px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(24, 35, 45, 0.05);
  font-size: 14px;
  font-weight: 750;
}

.hero-scope span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 99px;
  background: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.button {
  padding: 0 22px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 14px 28px rgba(20, 163, 111, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.facts div {
  min-width: 150px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(24, 35, 45, 0.06);
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.hero-visual {
  position: absolute;
  inset: 94px -78px auto auto;
  width: min(800px, 51vw);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(216, 225, 233, 0.9);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(24, 35, 45, 0.2);
}

.dashboard {
  position: absolute;
  right: clamp(26px, 6vw, 84px);
  bottom: -34px;
  width: min(500px, 58%);
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.25deg);
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.dash-head span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--line);
}

.dash-head strong {
  margin-left: 8px;
}

.pipeline,
.dash-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.pipeline {
  grid-template-columns: repeat(4, 1fr);
}

.pipeline div,
.metric,
.chat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pipeline div {
  min-height: 96px;
  padding: 12px;
}

.pipeline b,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.pipeline span {
  display: block;
  margin-top: 18px;
  font-size: 28px;
  font-weight: 850;
}

.dash-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 12px;
  border-top: 4px solid var(--green);
}

.metric.blue { border-top-color: var(--blue); }
.metric.amber { border-top-color: var(--amber); }
.metric.red { border-top-color: var(--red); }

.metric b {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.chat {
  margin: 0 14px 14px;
  padding: 14px;
  border-left: 4px solid var(--blue);
}

.chat p {
  margin: 0;
}

.band {
  scroll-margin-top: 88px;
  padding: 74px clamp(18px, 4vw, 56px);
}

.band.compact {
  padding-top: 56px;
}

.band.muted {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0)),
    var(--soft);
}

.section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.problem-grid,
.cards,
.tariffs {
  display: grid;
  gap: 14px;
}

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

.problem-grid article,
.card,
.tariff,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.problem-grid article {
  min-height: 110px;
  padding: 18px;
  color: var(--ink-2);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.problem-grid article::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: var(--red);
}

.solution,
.ai-block,
.deployment-block,
.calc,
.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.solution p,
.ai-block p,
.deployment-block p,
.calc p,
.lead-section p {
  color: var(--muted);
  font-size: 17px;
}

.checks,
.integration-map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deployment-notes {
  display: grid;
  gap: 14px;
  align-self: start;
}

.deployment-notes article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.deployment-notes h3 {
  font-size: 19px;
}

.deployment-notes p {
  margin-bottom: 0;
}

.checks span,
.integration-map span {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(24, 35, 45, 0.05);
}

.cards.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.tariff {
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card h3,
.tariff h3 {
  color: var(--ink-2);
}

.card:hover,
.tariff:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 107, 216, 0.32);
  box-shadow: 0 18px 42px rgba(24, 35, 45, 0.12);
}

.card p,
.tariff p,
.faq p {
  color: var(--muted);
}

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

.currency-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.currency-switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.currency-switch button.active {
  color: #fff;
  background: var(--ink);
}

.tariff.featured {
  border-color: rgba(22, 160, 106, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
  box-shadow: 0 18px 44px rgba(22, 160, 106, 0.16);
}

.price {
  margin-bottom: 10px;
  color: var(--ink) !important;
  font-size: 30px;
  font-weight: 850;
}

.tariff ul,
.ai-block ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #344054;
}

.integration-map span:nth-child(3n + 1) { border-left: 4px solid var(--green); }
.integration-map span:nth-child(3n + 2) { border-left: 4px solid var(--blue); }
.integration-map span:nth-child(3n) { border-left: 4px solid var(--amber); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  counter-increment: step;
  box-shadow: var(--shadow-soft);
}

.steps li::before {
  content: counter(step);
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
}

.steps b,
.steps span {
  display: block;
}

.steps span {
  margin-top: 6px;
  color: var(--muted);
}

.calc-form,
.lead-form {
  display: grid;
  gap: 12px;
}

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

.calc-form label,
.lead-form input,
.lead-form textarea,
.integration-options {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.calc {
  padding: 28px;
  border: 1px solid rgba(216, 225, 233, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.calc-form label:focus-within,
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(49, 107, 216, 0.62);
  outline: 3px solid rgba(49, 107, 216, 0.14);
}

.calc-form label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
}

.calc-form .check-option {
  justify-content: flex-start;
  min-height: 56px;
}

.calc-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.calc-form input[type="number"] {
  width: 86px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.calc-result {
  display: block;
  grid-column: 2;
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #2d3d4a);
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin: 12px 0 0;
}

.lead-section {
  scroll-margin-top: 88px;
  padding: 76px clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24, 35, 45, 0.98), rgba(14, 84, 66, 0.96)),
    var(--ink);
}

.lead-section .eyebrow,
.lead-section p {
  color: #b7f2d8;
}

.lead-section .integration-title {
  color: var(--ink);
}

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

.integration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px 14px 14px;
}

.integration-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.integration-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(216, 225, 233, 0.82);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.integration-options input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.lead-form button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  cursor: pointer;
  font: inherit;
}

.cf-turnstile {
  min-height: 65px;
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #dce8ee;
  font-size: 14px;
}

.form-status.success {
  color: #b7f2d8;
}

.form-status.error {
  color: #ffd2d2;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .hero-visual {
    width: 780px;
    opacity: 0.26;
  }

  .dashboard {
    display: none;
  }

  .problem-grid,
  .cards.five,
  .tariffs,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution,
  .ai-block,
  .deployment-block,
  .calc,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .calc-result {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    min-height: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .top-cta {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-content {
    max-width: none;
  }

  h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .lead {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .hero-scope span {
    max-width: 100%;
  }

  .hero-visual {
    inset: auto -210px 24px auto;
    width: 620px;
    opacity: 0.18;
  }

  .hero-actions,
  .facts,
  .footer {
    flex-direction: column;
  }

  .button,
  .facts div {
    width: 100%;
  }

  .problem-grid,
  .cards.five,
  .tariffs,
  .steps,
  .calc-form,
  .integration-options {
    grid-template-columns: 1fr;
  }

  .band,
  .lead-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}
