:root {
  --ink: #17201b;
  --muted: #60706a;
  --line: #dce5df;
  --panel: #ffffff;
  --paper: #f4f1ea;
  --sage: #dfe9dd;
  --teal: #0d6b66;
  --teal-dark: #073f3c;
  --coral: #d9684a;
  --gold: #b68a3a;
  --shadow: 0 24px 70px rgba(21, 35, 31, 0.14);
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(244, 241, 234, 0.92);
  border-bottom: 1px solid rgba(23, 32, 27, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #33453e;
  font-size: 14px;
}

.owner-link {
  padding: 8px 12px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 6px;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 68px);
  padding: clamp(42px, 7vw, 82px) clamp(20px, 6vw, 84px) clamp(28px, 4vw, 46px);
  background:
    linear-gradient(110deg, rgba(223, 233, 221, 0.84), rgba(244, 241, 234, 0.74)),
    url("/custom-workflow/assets/workflow-cockpit.png") center right / min(62vw, 840px) auto no-repeat;
}

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

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

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.02;
  max-width: 13ch;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
}

.lead {
  max-width: 710px;
  margin-bottom: 28px;
  color: #344840;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.8;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

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

.button.ghost {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(7, 63, 60, 0.2);
}

.button.full {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 9px 12px;
  color: #24433c;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(7, 63, 60, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(23, 32, 27, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 6vw, 84px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  transform: translateY(-22px);
}

.signal-strip div {
  padding: 22px;
  background: #fff;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.signal-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.signal-strip a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.signal-strip a:hover {
  text-decoration: underline;
}

.section {
  padding: clamp(48px, 8vw, 92px) clamp(20px, 6vw, 84px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.tools-section {
  background: #fff;
}

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

.tool-card {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 20px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: 160ms ease;
}

.tool-card:hover {
  border-color: rgba(13, 107, 102, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(21, 35, 31, 0.08);
}

.tool-card span {
  color: var(--coral);
  font-weight: 900;
}

.tool-card strong {
  font-size: 18px;
  line-height: 1.35;
}

.tool-card small {
  color: var(--muted);
  font-weight: 700;
}

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

.service-card,
.pricing-grid article {
  min-height: 100%;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card.accent {
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.card-index {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--coral);
  font-weight: 900;
}

.accent .card-index,
.accent p,
.accent li {
  color: rgba(255, 255, 255, 0.78);
}

.service-card p,
.pricing-grid p,
.muted {
  color: var(--muted);
  line-height: 1.72;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: #485a53;
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  background: #fff;
}

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

.process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--coral);
  border-radius: 6px;
  font-weight: 900;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-section {
  background: #eef4ef;
}

.price {
  margin: 12px 0;
  color: var(--teal-dark);
  font-size: 30px;
  font-weight: 900;
}

.featured-price {
  border-color: rgba(13, 107, 102, 0.38);
  box-shadow: var(--shadow);
}

.order-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  background: var(--teal-dark);
  color: #fff;
}

.order-section .muted {
  color: rgba(255, 255, 255, 0.72);
}

.order-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

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

label {
  display: grid;
  gap: 8px;
  color: #273832;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad8d1;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfa;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 107, 102, 0.12);
}

.form-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: var(--coral);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(94, 40, 25, 0.32);
  cursor: pointer;
  font-weight: 900;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 98px;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 132px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.chat-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: #fff;
  background: var(--teal-dark);
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
}

.chat-header button {
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.chat-identity {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-identity.hidden {
  display: none;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background: #f7f8f5;
}

.message {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.55;
  word-break: break-word;
}

.message.customer {
  justify-self: end;
  color: #fff;
  background: var(--teal);
}

.message.admin {
  justify-self: start;
  background: #fff;
  border: 1px solid var(--line);
}

.message small {
  display: block;
  margin-top: 6px;
  opacity: 0.72;
  font-size: 11px;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-compose button {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
}

.chat-compose button:disabled,
.chat-compose input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .order-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background: linear-gradient(145deg, rgba(223, 233, 221, 0.92), rgba(244, 241, 234, 0.92));
  }

  h1 {
    max-width: 10ch;
  }

  .signal-strip,
  .service-grid,
  .pricing-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    transform: none;
    margin-top: 20px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 66px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .chat-panel {
    right: 12px;
    bottom: 88px;
  }
}
