:root {
  --bg: #f7faf9;
  --paper: #ffffff;
  --ink: #152728;
  --muted: #627475;
  --line: #dce8e5;
  --soft-line: #edf3f1;
  --teal: #1e8f86;
  --teal-dark: #0f5654;
  --teal-soft: #e7f4f1;
  --amber: #efb850;
  --amber-soft: #fff4d8;
  --graphite: #233637;
  --shadow: 0 18px 50px rgba(15, 47, 47, 0.09);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21, 39, 40, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(21, 39, 40, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 249, 0.9);
  border-bottom: 1px solid rgba(220, 232, 229, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--graphite);
  box-shadow: 0 8px 18px rgba(21, 39, 40, 0.16);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 2;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: #405657;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: #eef5f3;
}

.nav-toggle {
  display: none;
  order: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.language-switcher {
  display: inline-flex;
  order: 3;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
}

.language-switcher button {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: #506667;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.language-switcher button.is-active {
  color: #fff;
  background: var(--teal-dark);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 10px 22px rgba(15, 86, 84, .18);
}

.button-secondary {
  color: var(--teal-dark);
  background: #fff;
  border-color: var(--line);
}

.section {
  position: relative;
  padding: 92px 0;
}

.section + .section {
  border-top: 1px solid rgba(220, 232, 229, .75);
}

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

.hero {
  min-height: auto;
  padding: 58px 0 48px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
}

.lead {
  margin: 26px 0 0;
  color: #536869;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
  margin-top: 10px;
}

.proof-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.proof-item strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.status-strip {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: min(350px, calc(100% - 52px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 32px rgba(15, 47, 47, 0.12);
  backdrop-filter: blur(16px);
}

.status-strip b {
  display: block;
  font-size: 14px;
}

.status-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.page-section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.page-section > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

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

.issue {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.issue svg {
  width: 38px;
  height: 38px;
  color: var(--teal);
}

.issue h3,
.module h3,
.process-step h3,
.text-block h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.issue p,
.module p,
.process-step p,
.text-block p,
.small-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.module {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.module-number {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 800;
}

.integration-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr);
  gap: 48px;
  align-items: center;
}

.integration-band img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #415657;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.process-step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 800;
}

.language-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.language-strip div {
  padding: 32px;
  background: var(--paper);
}

.language-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--graphite);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1;
}

.cta-band p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #cbd9d6;
}

.cta-band .button {
  color: var(--graphite);
  background: #fff;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 78px 0 54px;
}

.page-hero p {
  max-width: 760px;
}

.page-section {
  padding: 56px 0;
}

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

.text-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.metric-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.metric-table th,
.metric-table td {
  padding: 16px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

.metric-table th {
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.metric-table td {
  color: var(--muted);
}

.metric-table tr:last-child td {
  border-bottom: 0;
}

.demo-panel {
  min-height: 340px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.demo-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.demo-tabs button.is-active {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.flow-lines {
  display: grid;
  gap: 12px;
}

.flow-line {
  display: grid;
  grid-template-columns: 110px 1fr 74px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: #f5faf8;
}

.flow-line b {
  font-size: 13px;
}

.bar {
  height: 9px;
  border-radius: 99px;
  background: #dbe8e5;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #7fd7c7);
}

.flow-line em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #405657;
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  color: var(--teal-dark);
  font-size: 14px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .language-switcher {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-grid,
  .split,
  .integration-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .modules,
  .process,
  .two-column,
  .language-strip {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .cta-band {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .section {
    padding: 64px 0;
  }

  .status-strip {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .flow-line em {
    text-align: left;
  }
}
