:root {
  --primary: #5b5ef4;
  --primary-dark: #4a4de0;
  --ink: #141629;
  --ink-soft: #4d5267;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --line: #e6e8f0;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(20, 22, 41, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 22, 41, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 94, 244, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 80px;
  background: radial-gradient(900px 500px at 80% -10%, rgba(91, 94, 244, 0.12), transparent 60%),
              radial-gradient(700px 400px at 10% 20%, rgba(91, 94, 244, 0.06), transparent 60%);
}

.hero-inner {
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(91, 94, 244, 0.1);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary), #8a6df0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 24px auto 36px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-mock {
  margin: 64px auto 0;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.mock-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3e5ee;
}

.mock-dot:first-child {
  background: #ff5f57;
}

.mock-dot:nth-child(2) {
  background: #febc2e;
}

.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-body {
  display: flex;
  gap: 24px;
  padding: 28px;
}

.mock-side {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-item {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-alt);
}

.mock-item:nth-child(2) {
  width: 80%;
}

.mock-item:nth-child(3) {
  width: 60%;
}

.mock-chart {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 200px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-alt);
}

.chart-line {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.chart-line span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary), #b4b6fb);
  animation: grow 1s ease forwards;
  transform-origin: bottom;
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.chart-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(20, 22, 41, 0.08);
}

/* ---------- Logos ---------- */
.logos {
  padding: 48px 0 72px;
  border-bottom: 1px solid var(--line);
}

.logos-title {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 28px;
}

.logos-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.logos-row span {
  font-size: 22px;
  font-weight: 700;
  color: #b6bac8;
  letter-spacing: 1px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(91, 94, 244, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.link-arrow:hover {
  text-decoration: underline;
}

.about-visual {
  position: relative;
  padding: 40px;
}

.about-card {
  position: relative;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 600;
}

.about-card-2 {
  margin-top: 24px;
  margin-left: 48px;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), #8a6df0);
  border: none;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 36px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.stat-unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.stat p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 24px 60px rgba(91, 94, 244, 0.18);
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.price {
  margin-bottom: 24px;
}

.price strong {
  font-size: 44px;
  letter-spacing: -1px;
}

.price span {
  color: var(--ink-soft);
  font-size: 15px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.price-card li {
  padding: 8px 0;
  color: var(--ink-soft);
  position: relative;
  padding-left: 26px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  background: linear-gradient(120deg, var(--primary), #8a6df0);
  color: #fff;
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-form input {
  width: 320px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  outline: none;
}

.cta-note {
  margin-top: 20px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: #0e1020;
  color: #aeb2c3;
  padding: 64px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer .brand {
  color: #fff;
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-links h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  color: #aeb2c3;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

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

  .hero {
    padding-top: 140px;
  }

  .feature-grid,
  .pricing-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mock-body {
    flex-direction: column;
  }

  .mock-side {
    flex-direction: row;
  }

  .chart-line {
    height: 160px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2,
  .about-text h2,
  .cta h2 {
    font-size: 30px;
  }

  .logos-row {
    justify-content: center;
  }

  .about-card-2 {
    margin-left: 0;
  }

  .cta-form input {
    width: 100%;
  }
}
