:root {
  color-scheme: light;
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #eef6f8;
  --text: #15202b;
  --muted: #627184;
  --line: rgba(21, 32, 43, 0.1);
  --primary: #1797af;
  --primary-dark: #0b7487;
  --green: #2fbd55;
  --shadow: 0 18px 44px rgba(28, 43, 58, 0.12);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(18px, calc((100vw - 1120px) / 2 + 18px));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 252, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(21, 32, 43, 0.14);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.08;
}

.brand strong {
  font-size: 16px;
  font-weight: 750;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 14px;
  color: #405064;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(23, 151, 175, 0.1);
  color: var(--primary-dark);
  outline: none;
}

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

.header-auth {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.header-auth:hover,
.header-auth:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.header-auth-secondary,
.header-auth-secondary:visited {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: #243345;
}

.header-auth-secondary:hover,
.header-auth-secondary:focus-visible {
  background: #fff;
  color: var(--primary-dark);
}

.header-auth-primary,
.header-auth-primary:visited {
  background: #15202b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(21, 32, 43, 0.16);
}

.header-auth-primary:hover,
.header-auth-primary:focus-visible {
  background: #0f1823;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 710px;
  overflow: hidden;
  padding: 78px max(18px, calc((100vw - 1120px) / 2 + 18px)) 68px;
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.72), rgba(247, 250, 252, 0.98)),
    repeating-linear-gradient(90deg, rgba(21, 32, 43, 0.04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(21, 32, 43, 0.035) 0 1px, transparent 1px 72px);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 750;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 189, 85, 0.14);
}

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

h1 {
  max-width: 540px;
  margin-bottom: 18px;
  color: #12202f;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 760;
}

.lead {
  max-width: 530px;
  margin-bottom: 0;
  color: #536476;
  font-size: 17px;
  line-height: 1.75;
}

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

.button,
.action-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button {
  gap: 8px;
  padding: 0 18px;
}

.button:hover,
.button:focus-visible,
.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary,
.action-button {
  background: #15202b;
  color: #fff;
  box-shadow: 0 12px 26px rgba(21, 32, 43, 0.18);
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: #15202b;
}

.button-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.button-secondary .button-icon {
  background: rgba(23, 151, 175, 0.1);
  color: var(--primary-dark);
}

.hero-badges {
  display: flex;
  max-width: 520px;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(23, 151, 175, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #416071;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 650;
}

.product-visual {
  position: relative;
  min-height: 520px;
}

.desktop-window,
.phone-window {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.desktop-window {
  right: 0;
  bottom: 46px;
  width: min(620px, 100%);
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
}

.window-bar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-bar i:nth-child(1) {
  background: #fb6f6b;
}

.window-bar i:nth-child(2) {
  background: #f7c84b;
}

.window-bar i:nth-child(3) {
  background: #31c27c;
}

.window-bar strong {
  margin-left: 8px;
  color: #253242;
  font-size: 14px;
  font-weight: 750;
}

.window-body {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 16px;
  padding: 18px;
}

.terminal-panel,
.agent-panel,
.phone-window {
  border: 1px solid rgba(21, 32, 43, 0.08);
  background: #f8fbfd;
}

.terminal-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 258px;
  border-radius: 18px;
  padding: 16px;
}

.panel-label {
  color: #0b8a6f;
  font-size: 12px;
  font-weight: 750;
}

.terminal-panel strong {
  font-size: 17px;
  font-weight: 750;
}

.terminal-panel small {
  color: var(--muted);
  font-size: 13px;
}

.terminal-status {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #236840;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.terminal-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.agent-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 18px;
  padding: 16px;
}

.agent-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(21, 32, 43, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
}

.agent-row-active {
  border-color: rgba(47, 189, 85, 0.24);
  background: #effaf2;
}

.agent-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #dff2fc;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.agent-row-active .agent-avatar {
  background: #ddf5e4;
  color: #217345;
}

.agent-row strong,
.agent-row small {
  display: block;
}

.agent-row strong {
  color: #263547;
  font-size: 14px;
  font-weight: 750;
}

.agent-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e5edf4;
}

.progress-track span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--green));
}

.phone-window {
  bottom: 0;
  left: 0;
  width: 226px;
  min-height: 430px;
  border-radius: 30px;
  padding: 16px 14px;
}

.phone-top {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  color: #253242;
  font-size: 15px;
  font-weight: 750;
}

.phone-top img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.chat-bubble {
  width: fit-content;
  max-width: 178px;
  margin-top: 14px;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.chat-bubble-in {
  background: #fff;
  color: #314052;
  box-shadow: inset 0 0 0 1px rgba(21, 32, 43, 0.08);
}

.chat-bubble-out {
  margin-left: auto;
  background: #dff2fc;
  color: #0b5f82;
}

.composer {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(21, 32, 43, 0.08);
  border-radius: 15px;
  background: #fff;
  padding: 0 12px;
  color: #8491a0;
  font-size: 12px;
}

.composer strong {
  color: var(--primary-dark);
}

.section {
  padding: 72px max(18px, calc((100vw - 1120px) / 2 + 18px));
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.section h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: #12202f;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 760;
}

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

.product-card,
.workflow article {
  border: 1px solid rgba(21, 32, 43, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 43, 58, 0.07);
}

.product-card {
  padding: 22px;
}

.product-card-accent {
  background: #f3fbf6;
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  background: #dff2fc;
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 800;
}

.product-card-accent .card-icon {
  background: #ddf5e4;
  color: #217345;
}

.product-card h3 {
  margin-bottom: 12px;
  color: #172536;
  font-size: 22px;
  font-weight: 750;
}

.product-card p,
.action-section p {
  margin-bottom: 0;
  color: #5a6a7b;
  font-size: 15px;
  line-height: 1.7;
}

.product-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  color: #334457;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.product-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 900;
}

.workflow-section {
  background: var(--surface-soft);
}

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

.workflow article {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 128px;
  padding: 18px;
}

.workflow strong {
  color: #172536;
  font-size: 16px;
  font-weight: 750;
}

.workflow span {
  color: #657486;
  font-size: 14px;
  line-height: 1.55;
}

.action-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: #fff;
}

.action-section h2 {
  margin-bottom: 12px;
}

.action-button {
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 18px 42px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #666;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: #273444;
  font-size: 16px;
  font-weight: 750;
}

.footer p {
  max-width: 1060px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.footer a {
  color: #0677ff;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .site-header {
    padding-inline: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 14px 42px;
  }

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

  .product-visual {
    margin-top: 18px;
    min-height: 458px;
  }

  .desktop-window {
    right: 0;
    bottom: 0;
  }

  .phone-window {
    bottom: 18px;
    left: 20px;
    width: 196px;
    min-height: 342px;
  }

  .window-body,
  .product-grid,
  .workflow,
  .action-section {
    grid-template-columns: 1fr;
  }

  .terminal-panel {
    min-height: 88px;
  }

  .action-button {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .action-button {
    width: 100%;
  }

  .product-visual {
    margin-top: 10px;
    min-height: 360px;
  }

  .desktop-window {
    min-height: 312px;
  }

  .window-bar {
    height: 42px;
  }

  .window-body {
    padding: 12px;
  }

  .phone-window {
    display: none;
  }

  .section {
    padding: 54px 14px;
  }

  .product-card,
  .workflow article {
    border-radius: 18px;
    padding: 18px;
  }
}
