:root {
  --bg: #0c0e14;
  --bg-muted: #12151d;
  --card: rgba(22, 26, 36, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef0f4;
  --text-muted: #9399a8;
  --primary: #6d7cff;
  --primary-hover: #8490ff;
  --accent: #3dd6b5;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Sora", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(109, 124, 255, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.header.is-scrolled {
  background: rgba(12, 14, 20, 0.92);
  border-bottom-color: var(--card-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-menu a:not(.btn):hover { color: var(--text); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 48px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(109, 124, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #8b9bff 0%, #3dd6b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-models span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(61, 214, 181, 0.08);
  border: 1px solid rgba(61, 214, 181, 0.2);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dot-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.78rem;
}

.dot-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card-list li {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.hero-card-list li:last-child { border-bottom: none; }

.hero-card-list li:hover { background: rgba(255, 255, 255, 0.03); }

.hero-card-list strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 22px;
  padding-top: 2px;
}

.hero-card-list b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-card-list small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Stats ===== */
.stats {
  border-block: 1px solid var(--card-border);
  background: var(--bg-muted);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-title {
  max-width: 560px;
  margin-bottom: 48px;
}

.section-title--center {
  max-width: none;
  text-align: center;
  margin-inline: auto;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title > p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== AI Stack ===== */
.ai-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin-inline: auto;
}

.ai-layer {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}

.ai-layer--app {
  background: rgba(109, 124, 255, 0.1);
  border-color: rgba(109, 124, 255, 0.25);
}

.ai-layer--engine {
  background: rgba(61, 214, 181, 0.08);
  border-color: rgba(61, 214, 181, 0.2);
}

.ai-layer--model {
  background: var(--card);
}

.ai-layer-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.ai-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-layer-items span {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
}

.ai-layer--app .ai-layer-items span {
  border-color: rgba(109, 124, 255, 0.2);
}

.ai-layer--engine .ai-layer-items span {
  border-color: rgba(61, 214, 181, 0.2);
  color: var(--accent);
}

/* ===== Product cards (figo-style) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(109, 124, 255, 0.35);
  transform: translateY(-2px);
}

.product-card--wide,
.product-card--featured {
  grid-column: 1 / -1;
}

.product-card--featured {
  border-color: rgba(61, 214, 181, 0.25);
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.08) 0%, rgba(61, 214, 181, 0.06) 100%);
}

.product-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(109, 124, 255, 0.12);
  color: #a5aeff;
  margin-bottom: 14px;
}

.product-tag--accent {
  background: rgba(61, 214, 181, 0.12);
  color: var(--accent);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 3.2em;
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 16px;
  border-block: 1px solid var(--card-border);
}

.product-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.product-metrics small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.product-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
}

.product-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
}

.product-link:hover { color: var(--primary-hover); }

/* ===== AI Capabilities grid ===== */
.ai-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.ai-cap-item {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.ai-cap-item:hover {
  border-color: rgba(61, 214, 181, 0.3);
}

.ai-cap-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}

.ai-cap-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Capabilities (legacy) ===== */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.cap-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.cap-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 18px;
  position: relative;
}

.cap-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.flow-step {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  padding: 16px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.flow-step span {
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(109, 124, 255, 0.15);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Cases ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case-item {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.case-item--ai {
  border-color: rgba(61, 214, 181, 0.2);
  background: linear-gradient(135deg, rgba(61, 214, 181, 0.05) 0%, var(--card) 100%);
}

.case-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(109, 124, 255, 0.12);
  color: #a5aeff;
  margin-bottom: 10px;
}

.case-item--ai .case-badge {
  background: rgba(61, 214, 181, 0.12);
  color: var(--accent);
}

a.case-item:hover {
  border-color: rgba(109, 124, 255, 0.35);
}

.case-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.case-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
  max-width: 540px;
}

.team-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-row {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.team-row h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.team-row--highlight {
  border-color: rgba(61, 214, 181, 0.25);
  background: linear-gradient(135deg, rgba(61, 214, 181, 0.06) 0%, var(--card) 100%);
}

.team-row--highlight h4 {
  color: var(--accent);
}

.team-row p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.12) 0%, rgba(61, 214, 181, 0.08) 100%);
  border-top: 1px solid var(--card-border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.cta-inner > div > p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 36px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta-phone small {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cta-phone strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-phone:hover {
  border-color: rgba(109, 124, 255, 0.4);
  box-shadow: 0 8px 32px rgba(109, 124, 255, 0.15);
}

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--card-border);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-row > p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-wrap,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .cap-grid,
  .case-grid,
  .ai-cap-grid {
    grid-template-columns: 1fr;
  }

  .product-card--wide,
  .product-card--featured {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .menu-btn { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(12, 14, 20, 0.98);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-menu .btn {
    margin-top: 8px;
    text-align: center;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section { padding: 64px 0; }
}
