/* ============================================
   Design tokens — 简约 · 高级 · AI 生活
   ============================================ */
:root {
  --bg-deep: #06060a;
  --bg-elevated: #0c0c12;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(120, 200, 255, 0.25);

  --text-primary: #f4f4f6;
  --text-secondary: rgba(244, 244, 246, 0.62);
  --text-muted: rgba(244, 244, 246, 0.38);

  --accent-cyan: #5eead4;
  --accent-blue: #60a5fa;
  --accent-violet: #a78bfa;
  --gradient-main: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-violet) 100%);

  --font-display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Outfit", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --space-section: clamp(5rem, 12vw, 9rem);
  --container: min(1120px, 92vw);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;

  --header-h: 72px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0.01ms;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--duration) var(--ease-out),
    backdrop-filter var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient-main);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.35);
  color: var(--bg-deep);
}

.logo-mark .logo-icon {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary) !important;
  background: var(--bg-card);
}

.nav-cta:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  padding-block: clamp(3rem, 8vh, 6rem);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--bg-deep);
  box-shadow: 0 4px 32px rgba(94, 234, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(96, 165, 250, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--border-glow);
  background: var(--bg-card);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.metric-suffix {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-cyan);
  margin-left: 2px;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--space-section);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Glass cards */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.glass-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--accent-cyan);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.glass-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-left: 2rem;
}

.timeline-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  border-radius: 1px;
  overflow: hidden;
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: var(--gradient-main);
  border-radius: 1px;
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.5);
}

.timeline-item time {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.25rem 0 0.35rem;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 28rem;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bento-item {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}

.bento-item:hover {
  border-color: var(--border-glow);
  transform: scale(1.01);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 280px;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.bento-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.bento-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 20rem;
}

.bento-visual {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 140px;
  height: 140px;
  opacity: 0.6;
}

.orbit {
  position: relative;
  width: 100%;
  height: 100%;
}

.orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  animation: orbit-spin 12s linear infinite;
}

.orbit span:nth-child(2) {
  inset: 18%;
  animation-duration: 8s;
  animation-direction: reverse;
}

.orbit span:nth-child(3) {
  inset: 36%;
  animation-duration: 5s;
}

.orbit span::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

/* Tech */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tech-list {
  list-style: none;
  margin-top: 2rem;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tech-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-main);
  flex-shrink: 0;
}

.tech-diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem;
}

.diagram-layer {
  width: 100%;
  max-width: 320px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.diagram-top {
  border-color: rgba(94, 234, 212, 0.3);
  box-shadow: 0 0 30px rgba(94, 234, 212, 0.08);
}

.diagram-mid {
  border-color: rgba(96, 165, 250, 0.3);
}

.diagram-base {
  border-color: rgba(167, 139, 250, 0.3);
}

.diagram-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet));
  opacity: 0.5;
}

.diagram-pulse {
  position: absolute;
  inset: 10%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  opacity: 0;
  animation: diagram-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes diagram-pulse {
  0%, 100% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 0.4; transform: scale(1); }
}

/* CTA */
.cta {
  padding-bottom: calc(var(--space-section) * 0.6);
}

.cta-inner {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
  border: 1px solid var(--border-subtle);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-inner > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 420px;
  margin-inline: auto;
}

.cta-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}

.cta-form input:focus {
  border-color: var(--border-glow);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy .footer-icp {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-copy .footer-icp:hover {
  color: var(--text-secondary);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* Products — homepage */
.hero-product-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: border-color 0.3s, background 0.3s, transform 0.25s var(--ease-out);
}

.hero-product-pill:hover {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
  transform: translateX(4px);
  color: var(--text-primary);
}

.hero-product-pill strong {
  color: #fbbf24;
  font-weight: 600;
}

.pill-arrow {
  color: #fbbf24;
  font-size: 1rem;
}

.product-featured {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, var(--bg-card) 45%);
  backdrop-filter: blur(12px);
}

.product-featured-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: min(260px, 100%);
  padding: 10px;
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone-screen {
  border-radius: 20px;
  background: #0a0a0f;
  padding: 1rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mock-header {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #fbbf24;
}

.mock-card {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock-card.accent {
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--text-primary);
}

.product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.product-featured-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-tagline {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.product-highlights {
  list-style: none;
  margin-bottom: 1.75rem;
}

.product-highlights li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.product-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gradient-main);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links a.active {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .product-featured {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: auto;
  }

  .tech-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.35s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .metric-divider {
    display: none;
  }

  .hero-metrics {
    gap: 1.25rem;
  }
}
