:root {
  --bg: #edf2ef;
  --ink: #101816;
  --muted: #63716d;
  --line: rgba(16, 24, 22, 0.12);
  --paper: #ffffff;
  --deep: #0d1714;
  --green: #0f9b78;
  --green-dark: #087258;
  --cyan: #38b5c5;
  --gold: #d69a35;
  --shadow: 0 24px 70px rgba(15, 31, 27, 0.16);
}

* {
  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",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(13, 23, 20, 0.94), rgba(13, 23, 20, 0.98)),
    url("assets/automation-hero.png") center / cover;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 950;
}

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

.brand strong {
  line-height: 1.25;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.nav-item span {
  color: rgba(121, 227, 202, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.nav-item strong {
  font-size: 15px;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-card span,
.sidebar-card strong,
.sidebar-card a {
  display: block;
}

.sidebar-card span {
  margin-bottom: 8px;
  color: #79e3ca;
  font-size: 13px;
  font-weight: 900;
}

.sidebar-card strong {
  line-height: 1.45;
}

.sidebar-card a {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  color: #08231c;
  background: #fff;
  font-weight: 900;
  text-align: center;
}

.content {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.panel {
  position: relative;
  min-height: calc(100vh - 36px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 44px rgba(15, 31, 27, 0.07);
  overflow: hidden;
}

.hero-panel {
  display: grid;
  align-content: end;
  color: #fff;
  background: var(--deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 15, 14, 0.95), rgba(9, 15, 14, 0.72) 48%, rgba(9, 15, 14, 0.24)),
    linear-gradient(180deg, rgba(9, 15, 14, 0.16), rgba(9, 15, 14, 0.9));
}

.panel-copy,
.hero-stats,
.panel-head,
.split-grid,
.card-grid,
.workflow,
.roi-form,
.lead-form {
  position: relative;
  z-index: 1;
}

.panel-copy {
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #79e3ca;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 16px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.28;
}

.panel-copy p,
.panel-head p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.78;
}

.panel:not(.hero-panel) .panel-head p,
.feature-card p,
.feature-card li,
.workflow span,
.form-note {
  color: var(--muted);
  line-height: 1.72;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 170px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.btn.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 18px 42px rgba(15, 155, 120, 0.34);
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats div {
  min-height: 104px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.68);
}

.panel-head {
  margin-bottom: 34px;
}

.panel-head .eyebrow {
  color: var(--green-dark);
}

.split-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.feature-card small {
  display: inline-flex;
  margin-bottom: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e7f7f2;
  font-weight: 950;
}

.feature-card ul {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.feature-card.dark,
.feature-card.accent {
  color: #fff;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.feature-card.dark {
  background:
    linear-gradient(180deg, rgba(13, 23, 20, 0.2), rgba(13, 23, 20, 0.96)),
    url("assets/automation-hero.png") center / cover;
}

.feature-card.dark small {
  color: #06251d;
  background: #79e3ca;
}

.feature-card.dark li,
.feature-card.accent p {
  color: rgba(255, 255, 255, 0.76);
}

.feature-card.accent {
  background: linear-gradient(135deg, #0f3028, #10211d);
}

.feature-card.accent small {
  color: #1d1605;
  background: #f2ca75;
}

.workflow {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: center;
  gap: 14px;
}

.workflow div {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.workflow span,
.workflow strong {
  display: block;
}

.workflow strong {
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.35;
}

.workflow i {
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.roi-form,
.lead-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.roi-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}

.roi-form label,
.lead-form label {
  display: grid;
  gap: 8px;
  color: #263430;
  font-size: 14px;
  font-weight: 900;
}

.roi-form input,
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 22, 0.15);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  padding: 13px 14px;
}

.roi-form input:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 155, 120, 0.12);
}

.roi-result {
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 8px;
  color: #09231d;
  background: #dff8ef;
}

.roi-result small,
.roi-result strong,
.roi-result span {
  display: block;
}

.roi-result strong {
  margin: 8px 0;
  font-size: clamp(38px, 5vw, 62px);
}

.roi-result span {
  color: #486960;
  line-height: 1.65;
}

.contact-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 245, 0.96)),
    url("assets/automation-hero.png") center / cover;
}

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

.lead-form textarea {
  resize: vertical;
}

.full {
  width: 100%;
  cursor: pointer;
}

.form-note {
  margin: 0;
  word-break: break-word;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-card {
    margin-top: 0;
  }

  .panel {
    min-height: auto;
  }

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

  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow i {
    width: 2px;
    height: 30px;
    margin-left: 26px;
  }
}

@media (max-width: 760px) {
  .sidebar,
  .content {
    padding: 12px;
  }

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

  .nav-item {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 58px;
  }

  .panel {
    padding: 24px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .action-row .btn,
  .hero-stats div {
    width: 100%;
  }

  .hero-stats,
  .split-grid,
  .card-grid.three,
  .roi-form,
  .form-row {
    grid-template-columns: 1fr;
  }
}
