:root {
  color-scheme: dark;
  --bg: #060b16;
  --surface: #0d1529;
  --surface-2: #121d36;
  --border: #203154;
  --border-strong: #2f4774;
  --text: #eef4ff;
  --text-muted: #9fb0cf;
  --brand: #5b63ff;
  --brand-2: #3f48f5;
  --accent: #ff355f;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 18px 42px rgba(3, 8, 20, 0.42);
  font-family: 'Outfit', 'Plus Jakarta Sans', 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(860px 460px at -8% -12%, rgba(255, 53, 95, 0.12), transparent 62%),
    radial-gradient(900px 520px at 115% -8%, rgba(91, 99, 255, 0.22), transparent 68%),
    var(--bg);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid #7d8bff;
  outline-offset: 2px;
}

.sky-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16) 0.7px, transparent 0.9px),
    radial-gradient(circle at 80% 34%, rgba(255, 255, 255, 0.12) 0.7px, transparent 1px),
    radial-gradient(circle at 45% 70%, rgba(255, 255, 255, 0.12) 0.8px, transparent 1.1px);
  background-size: 260px 260px, 280px 280px, 320px 320px;
  opacity: 0.42;
  z-index: -3;
  pointer-events: none;
}

.nebula {
  position: fixed;
  filter: blur(52px);
  border-radius: 999px;
  z-index: -2;
  pointer-events: none;
}

.nebula-left {
  width: 300px;
  height: 300px;
  left: -80px;
  top: -100px;
  background: rgba(255, 53, 95, 0.18);
}

.nebula-right {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -90px;
  background: rgba(91, 99, 255, 0.24);
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  padding: 14px 14px 0;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(48, 70, 112, 0.56);
  border-radius: 999px;
  background: rgba(7, 12, 24, 0.68);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: rgba(91, 99, 255, 0.18);
}

.nav-cta {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(63, 72, 245, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(63, 72, 245, 0.44);
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 62px;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 18px;
}

.hero-copy,
.demo-stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(13, 21, 41, 0.95), rgba(16, 28, 50, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glow-track::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 99, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.glow-track:hover::before {
  opacity: 1;
}

.hero-copy { padding: 34px; }

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8b6ff;
  font-weight: 600;
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.75;
  max-width: 62ch;
}

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

.btn {
  text-decoration: none;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(63, 72, 245, 0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(91, 99, 255, 0.42);
  background: rgba(91, 99, 255, 0.13);
}

.notice {
  margin-top: 18px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 53, 95, 0.33);
  border-radius: 999px;
  background: rgba(255, 53, 95, 0.1);
  color: #ffd6df;
}

.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 53, 95, 0.25);
  color: #ffd8e1;
  font-weight: 700;
  font-size: 0.74rem;
}

.demo-stage { padding: 14px; }

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #cad8f4;
  font-weight: 600;
}

.demo-step {
  font-size: 0.82rem;
  color: #93a9d4;
}

.demo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel {
  border: 1px solid rgba(42, 61, 98, 0.82);
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.72);
  padding: 12px;
}

.panel-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #b5c7ec;
  margin-bottom: 10px;
}

.chat-list {
  display: grid;
  gap: 8px;
  min-height: 126px;
}

.bubble {
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.55;
  font-size: 0.88rem;
}

.bubble.user {
  background: rgba(95, 108, 255, 0.22);
  border: 1px solid rgba(95, 108, 255, 0.4);
}

.bubble.assistant {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(65, 84, 120, 0.62);
}

.status-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9cb1d8;
  font-size: 0.84rem;
}

.status-row .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff9b3f;
}

.status-row .dot.done {
  background: #36d981;
}

.phone-screen {
  min-height: 160px;
}

.phone-line {
  margin-bottom: 10px;
  color: #d4e2ff;
  font-size: 0.87rem;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(57, 74, 112, 0.58);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, #ff355f, #8a5bff);
  transition: width 0.45s ease;
}

.log-list {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: #9cb0d8;
  line-height: 1.65;
  font-size: 0.84rem;
}

.section { margin-top: 28px; }

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.42rem, 2vw, 2rem);
  letter-spacing: -0.01em;
}

.section h2 span {
  color: var(--accent);
  margin-right: 8px;
}

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

.feature-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(12, 19, 35, 0.9);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 24px rgba(5, 10, 24, 0.42);
}

.icon-wrap {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 53, 95, 0.12);
  color: var(--accent);
}

.icon-wrap svg { width: 20px; height: 20px; }

.feature-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: #c6d3ee;
  background: rgba(12, 19, 35, 0.76);
}

.cta {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: linear-gradient(140deg, rgba(14, 22, 42, 0.92), rgba(13, 25, 46, 0.88));
}

.cta h2 { margin-bottom: 8px; }

.cta p {
  margin: 0;
  color: var(--text-muted);
}

.cta-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .topbar {
    border-radius: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-copy {
    padding: 24px;
  }

  .demo-panels {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
