:root {
  --td-brand: #0f67ff;
  --td-brand-2: #0f8cff;
  --td-cyan: #14c9c9;
  --td-green: #00a870;
  --td-orange: #ed7b2f;
  --td-text: #1d2129;
  --td-muted: #4e5969;
  --td-soft: #86909c;
  --td-line: #e5e8ef;
  --td-bg: #f5f7fb;
  --td-white: #fff;
  --td-shadow: 0 18px 50px rgba(15, 38, 82, .12);
  --td-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--td-text);
  background: var(--td-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pad {
  padding: 92px 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  border-bottom: 1px solid rgba(229, 232, 239, .72);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 30px rgba(15, 38, 82, .08);
}

.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--td-brand);
  display: grid;
  place-items: center;
}

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

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--td-muted);
  font-size: 15px;
}

.main-nav a {
  position: relative;
  padding: 25px 0;
  transition: color .2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--td-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.main-nav a:hover {
  color: var(--td-brand);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border .2s ease, color .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--td-brand);
  box-shadow: 0 10px 24px rgba(15, 103, 255, .24);
}

.btn-primary:hover {
  background: #0052d9;
}

.btn-ghost {
  color: var(--td-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--td-brand);
  background: #f2f6ff;
}

.btn-outline {
  color: var(--td-brand);
  border-color: #bcd4ff;
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--td-brand);
  background: #f2f6ff;
}

.btn-large {
  min-height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--td-line);
  border-radius: 4px;
  background: #fff;
  color: var(--td-text);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  min-height: 700px;
  padding-top: 124px;
  padding-bottom: 66px;
  background:
    linear-gradient(115deg, rgba(15, 103, 255, .08), rgba(20, 201, 201, .06) 36%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(620px, 1fr);
  gap: 54px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-lead {
  margin: 24px 0 34px;
  color: var(--td-muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-proof div {
  padding-right: 16px;
  border-right: 1px solid var(--td-line);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.hero-proof span {
  display: block;
  margin-top: 5px;
  color: var(--td-soft);
  font-size: 13px;
}

.product-visual {
  position: relative;
  border: 1px solid rgba(210, 219, 232, .9);
  border-radius: var(--td-radius);
  background: #fff;
  box-shadow: var(--td-shadow);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: auto 34px -28px;
  height: 32px;
  background: rgba(15, 103, 255, .18);
  filter: blur(24px);
}

.browser-bar {
  height: 44px;
  border-bottom: 1px solid var(--td-line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--td-soft);
  font-size: 13px;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dce8;
}

.browser-bar p {
  margin: 0 0 0 12px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 530px;
  background: #f7f9fc;
}

.dashboard-nav {
  border-right: 1px solid var(--td-line);
  background: #fff;
  padding-top: 28px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
}

.nav-dot {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #edf2fa;
}

.nav-dot.active {
  background: var(--td-brand);
}

.dashboard-main {
  padding: 24px;
}

.dash-head,
.chart-title,
.scenario-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-head span,
.chart-title span {
  color: var(--td-soft);
  font-size: 13px;
}

.dash-head strong,
.chart-title strong,
.scenario-title strong {
  display: block;
  font-size: 20px;
}

.dash-head button {
  border: 1px solid #c9d8f3;
  border-radius: 4px;
  color: var(--td-brand);
  background: #fff;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.metric-row article,
.feature-card,
.scenario-panel,
.support-card {
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
}

.metric-row article {
  padding: 16px;
}

.metric-row span {
  color: var(--td-soft);
  font-size: 13px;
}

.metric-row strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  line-height: 1;
}

.metric-row em {
  display: block;
  margin-top: 10px;
  color: var(--td-green);
  font-size: 13px;
  font-style: normal;
}

.chart-panel {
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
  padding: 18px;
}

.line-chart {
  width: 100%;
  height: 180px;
  margin-top: 12px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 14px;
  margin-top: 14px;
}

.rank-panel,
.task-panel {
  min-height: 132px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
  padding: 16px;
}

.panel-title {
  margin-bottom: 12px;
  font-weight: 700;
}

.rank-row,
.compare-list div {
  display: grid;
  grid-template-columns: 92px 1fr 28px;
  align-items: center;
  gap: 10px;
  margin: 11px 0;
  color: var(--td-muted);
  font-size: 13px;
}

.rank-row i,
.compare-list i {
  height: 8px;
  border-radius: 999px;
  background: #eef3fb;
  overflow: hidden;
}

.rank-row i::before,
.compare-list i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--td-brand), var(--td-cyan));
}

.rank-row b,
.compare-list b {
  font-weight: 700;
  color: var(--td-text);
  text-align: right;
}

.task-panel p {
  margin: 9px 0;
  color: var(--td-muted);
  font-size: 13px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-head h2,
.scenario-copy h2,
.security h2,
.support-card h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.24;
  letter-spacing: 0;
}

.section-head p,
.scenario-copy p,
.security p,
.support-card p {
  margin: 16px 0 0;
  color: var(--td-muted);
}

.capability {
  background: #fff;
}

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

.feature-card {
  min-height: 250px;
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #c9d8f3;
  box-shadow: 0 16px 38px rgba(15, 38, 82, .08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--td-brand);
  background: #eef5ff;
}

.feature-icon.teal {
  color: var(--td-cyan);
  background: #e9fbfb;
}

.feature-icon.green {
  color: var(--td-green);
  background: #e8f8f2;
}

.feature-icon.orange {
  color: var(--td-orange);
  background: #fff2e8;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--td-muted);
  font-size: 14px;
}

.scenario,
.security {
  background: var(--td-bg);
}

.scenario-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.scenario-tabs button {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--td-line);
  border-radius: 4px;
  color: var(--td-muted);
  background: #fff;
  cursor: pointer;
}

.scenario-tabs button.active {
  color: #fff;
  border-color: var(--td-brand);
  background: var(--td-brand);
}

.scenario-panel {
  padding: 32px;
  box-shadow: 0 16px 42px rgba(15, 38, 82, .08);
}

.scenario-title {
  align-items: flex-start;
}

.scenario-title span {
  color: var(--td-brand);
  font-weight: 700;
}

.compare-list {
  margin: 28px 0;
}

.compare-list div {
  grid-template-columns: 110px 1fr 36px;
  font-size: 14px;
}

.insight-box {
  border: 1px solid #c9e4ff;
  border-radius: var(--td-radius);
  background: #f2f8ff;
  padding: 18px;
}

.insight-box strong {
  color: var(--td-brand);
}

.insight-box p {
  margin: 8px 0 0;
  color: var(--td-muted);
}

.security-grid,
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.security-items {
  display: grid;
  gap: 16px;
}

.security-items article {
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
  padding: 22px 24px;
}

.security-items strong {
  display: block;
  font-size: 18px;
}

.security-items span {
  display: block;
  margin-top: 8px;
  color: var(--td-muted);
}

.support {
  background: #fff;
}

.support-card {
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(15, 103, 255, .08), rgba(20, 201, 201, .08)),
    #fff;
}

.support-card .btn {
  margin-top: 28px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list div {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 12px 30px rgba(15, 38, 82, .05);
}

.service-list span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--td-brand);
  background: #eef5ff;
  font-weight: 800;
}

.service-list strong {
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid var(--td-line);
  background: #f7f9fc;
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--td-muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner div {
  display: flex;
  gap: 22px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .scenario-grid,
  .security-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 126px;
  }

  .product-visual {
    transform: none;
  }

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

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .main-nav,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header.is-open {
    height: auto;
    background: #fff;
  }

  .site-header.is-open .nav-shell {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-bottom: 18px;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .nav-actions {
    display: flex;
    width: 100%;
  }

  .site-header.is-open .main-nav {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.is-open .main-nav a {
    padding: 12px 0;
  }

  .site-header.is-open .main-nav a::after {
    display: none;
  }

  .site-header.is-open .nav-actions {
    order: 4;
  }

  .section-pad {
    padding: 68px 0;
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 58px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    display: none;
  }

  .metric-row,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .scenario-copy h2,
  .security h2,
  .support-card h2 {
    font-size: 30px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  .hero-actions,
  .hero-proof,
  .capability-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    display: grid;
  }

  .hero-proof {
    display: grid;
  }

  .hero-proof div {
    border-right: 0;
    border-bottom: 1px solid var(--td-line);
    padding: 0 0 14px;
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  .capability-grid {
    display: grid;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dash-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row,
  .compare-list div {
    grid-template-columns: 1fr 1fr 28px;
  }

  .support-card,
  .scenario-panel {
    padding: 24px;
  }

  .footer-inner {
    padding: 24px 0;
  }

  .footer-inner div {
    flex-wrap: wrap;
  }
}
