:root {
  --bg-950: #0d0e11;
  --bg-900: #1c1e23;
  --bg-800: #2c2f35;
  --bg-700: #3b3f47;
  --bg-600: #4a4f59;
  --bg-500: #bec4d2;
  --bg-400: #e0e5ec;
  --bg-300: #ebeef3;
  --indigo-500: #6366f1;
  --indigo-400: #818cf8;
  --indigo-300: #a5b4fc;
  --violet-500: #7c3aed;
  --violet-400: #a78bfa;
  --emerald-400: #4ade80;
}

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

html {
  scroll-behavior: smooth;
}

body.landing-body {
  font-family: Inter, "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  background: var(--bg-950);
  color: var(--bg-400);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.landing-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(13, 14, 17, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.nav-row {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo-500), var(--violet-500));
}

.brand-chip-sm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 11px;
}

.brand-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-300);
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--bg-500);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--bg-300);
  background: var(--bg-900);
}

.nav-links a.nav-active {
  color: var(--bg-300);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo-500), var(--violet-500));
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25), 0 0 44px rgba(99, 102, 241, 0.1);
}

.nav-primary-btn {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-secondary {
  padding: 12px 22px;
  color: var(--bg-500);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--bg-900);
  color: var(--bg-300);
}

.btn-link {
  padding: 8px 12px;
  color: var(--bg-500);
  font-size: 13px;
  background: transparent;
}

.btn-link:hover {
  color: var(--bg-300);
  background: var(--bg-900);
}

.btn-arrow {
  font-size: 15px;
}

.hero {
  padding: 112px 0 82px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    var(--bg-950);
}

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

.badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-300);
  font-size: 12px;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald-400);
  animation: pulse 2s infinite;
}

.pulse-dot-sm {
  width: 6px;
  height: 6px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
  }

  50% {
    opacity: 0.82;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

.hero-title {
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--indigo-300) 0%, var(--violet-400) 50%, var(--bg-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-muted {
  color: var(--bg-500);
}

.hero-subtitle {
  margin: 0 auto 34px;
  max-width: 700px;
  color: var(--bg-500);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-mockup {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
}

.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12), transparent 70%);
  pointer-events: none;
}

.mockup-shell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(28, 30, 35, 0.92);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(44, 47, 53, 0.8);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.titlebar-text {
  flex: 1;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--bg-600);
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.mockup-panel {
  padding: 16px;
}

.mockup-left,
.mockup-center {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bg-600);
  margin-bottom: 12px;
}

.panel-subtitle {
  margin: 14px 0 8px;
  font-size: 11px;
  color: var(--bg-600);
}

.panel-subtitle-top {
  margin-top: 16px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: rgba(99, 102, 241, 0.12);
}

.profile-chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
}

.profile-name {
  font-size: 12px;
  color: var(--bg-400);
  font-weight: 500;
}

.profile-role {
  font-size: 11px;
  color: var(--bg-600);
}

.project-item {
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--bg-600);
}

.project-item-active {
  color: var(--indigo-300);
  background: rgba(99, 102, 241, 0.08);
}

.sync-card {
  border-radius: 6px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.08);
  padding: 8px;
}

.sync-row {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--emerald-400);
  font-size: 11px;
}

.sync-time {
  margin-top: 2px;
  font-size: 11px;
  color: var(--bg-600);
  font-family: "JetBrains Mono", monospace;
}

.mockup-center {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-time {
  text-align: center;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: var(--bg-600);
}

.message-row {
  display: flex;
}

.user-row {
  justify-content: flex-end;
}

.assistant-row {
  align-items: flex-start;
  gap: 8px;
}

.message {
  font-size: 13px;
  line-height: 1.6;
}

.user-message {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 12px 12px 2px 12px;
  color: var(--bg-400);
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(99, 102, 241, 0.15);
}

.assistant-chip {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
}

.assistant-message {
  max-width: 95%;
  padding: 10px 14px;
  border-radius: 2px 12px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(28, 30, 35, 0.8);
  color: var(--bg-500);
}

.message-highlight {
  color: var(--indigo-300);
}

.input-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(44, 47, 53, 0.6);
  padding: 8px 10px;
  color: var(--bg-600);
  font-size: 13px;
}

.input-bar span:first-child {
  flex: 1;
}

.send-chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-300);
  background: rgba(129, 140, 248, 0.25);
}

.mockup-right {
  text-align: left;
}

.task-card {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.task-label {
  color: var(--bg-400);
  font-size: 12px;
  font-weight: 500;
}

.task-muted {
  color: var(--bg-600);
}

.task-badge {
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
}

.task-card-done {
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.08);
}

.task-badge-done {
  color: var(--emerald-400);
  background: rgba(74, 222, 128, 0.15);
}

.task-card-progress {
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(99, 102, 241, 0.1);
}

.task-badge-progress {
  color: var(--indigo-300);
  background: rgba(129, 140, 248, 0.2);
}

.task-card-pending {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(44, 47, 53, 0.45);
}

.task-badge-pending {
  color: var(--bg-600);
  background: rgba(255, 255, 255, 0.05);
}

.task-desc {
  color: var(--bg-600);
  font-size: 11px;
}

.progress-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.2);
}

.progress-fill {
  display: block;
  width: 60%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--indigo-500), var(--violet-500));
}

.ref-item {
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--bg-500);
  background: rgba(44, 47, 53, 0.4);
}

.section {
  padding: 80px 0;
}

.page-hero {
  padding-top: 124px;
  padding-bottom: 24px;
}

.page-title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bg-300);
  font-weight: 700;
}

.page-subtitle {
  margin-top: 16px;
  max-width: 760px;
  color: var(--bg-500);
  font-size: 16px;
  line-height: 1.8;
}

.section-alt {
  background: rgba(28, 30, 35, 0.34);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.kicker {
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--indigo-500);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bg-300);
  font-weight: 700;
}

.section-subtitle {
  margin: 14px auto 0;
  max-width: 580px;
  color: var(--bg-500);
  font-size: 16px;
  line-height: 1.7;
}

.glass-card {
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(28, 30, 35, 0.5);
  transition: all 0.24s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(44, 47, 53, 0.6);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

.pain-grid,
.feature-grid,
.steps-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.doc-card {
  border-radius: 16px;
  padding: 24px;
}

.doc-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-300);
}

.doc-card p {
  color: var(--bg-600);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.doc-link {
  color: var(--indigo-300);
  font-size: 13px;
  font-weight: 600;
}

.doc-link:hover {
  color: var(--indigo-400);
}

.pain-card,
.feature-card,
.step-card {
  border-radius: 16px;
  padding: 24px;
}

.pain-card h3,
.feature-card h3,
.step-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--bg-300);
  font-weight: 600;
}

.pain-card p,
.feature-card p,
.step-card p {
  color: var(--bg-600);
  font-size: 14px;
  line-height: 1.7;
}

.feature-tags {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.feature-tag {
  border-radius: 8px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-300);
  text-align: center;
  font-size: 12px;
  padding: 8px 10px;
}

.step-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.step-indigo {
  color: var(--indigo-400);
}

.step-violet {
  color: var(--violet-400);
}

.step-emerald {
  color: var(--emerald-400);
}

.cta-section {
  padding: 96px 0;
}

.cta-container {
  width: min(820px, calc(100% - 2rem));
}

.cta-card {
  border-radius: 28px;
  text-align: center;
  padding: 56px 24px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    rgba(28, 30, 35, 0.4);
}

.cta-title {
  margin-bottom: 14px;
  font-size: clamp(25px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bg-300);
}

.gradient-text-accent {
  background: linear-gradient(135deg, var(--indigo-400), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-subtitle {
  margin: 0 auto 34px;
  max-width: 540px;
  color: var(--bg-500);
  font-size: 15px;
  line-height: 1.75;
}

.cta-footnote {
  margin-top: 18px;
  color: var(--bg-700);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-brand p {
  color: var(--bg-700);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--bg-600);
}

.footer-links a:hover {
  color: var(--bg-500);
}

.footer-link-highlight {
  color: var(--indigo-300) !important;
}

.footer-copy {
  color: var(--bg-700);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}

.notfound-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 16px 40px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    var(--bg-950);
}

.notfound-card {
  width: min(560px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 30, 35, 0.65);
  padding: 38px 30px;
  text-align: center;
}

.notfound-card h1 {
  margin-bottom: 10px;
  color: var(--bg-300);
  font-size: 32px;
  font-weight: 700;
}

.notfound-card p {
  margin-bottom: 20px;
  color: var(--bg-500);
  line-height: 1.7;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.75s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 899px) {
  .mockup-right {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: inline-flex;
  }

  .mockup-grid {
    grid-template-columns: 220px 1fr 280px;
    min-height: 500px;
  }

  .mockup-left {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
  }

  .mockup-center {
    border-bottom: none;
  }

  .mockup-right {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (min-width: 680px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-tags {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1100px) {
  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 102px;
    padding-bottom: 70px;
  }

  .section {
    padding: 66px 0;
  }

  .cta-section {
    padding: 72px 0;
  }

  .cta-card {
    padding: 42px 18px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
