/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --surface: #1e1e2a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e8e8ed;
  --text-secondary: #8b8b9e;
  --text-tertiary: #5a5a6e;
  --accent: #ff4d2a;
  --accent-soft: rgba(255,77,42,0.12);
  --accent-glow: rgba(255,77,42,0.25);
  --blue: #4d8eff;
  --blue-soft: rgba(77,142,255,0.12);
  --green: #2dd4a0;
  --green-soft: rgba(45,212,160,0.12);
  --purple: #a855f7;
  --purple-soft: rgba(168,85,247,0.12);
  --yellow: #fbbf24;
  --yellow-soft: rgba(251,191,36,0.12);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34,211,238,0.12);
  --pink: #ec4899;
  --pink-soft: rgba(236,72,153,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.3);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════════
   CURSOR GLOW (follows mouse)
   ═══════════════════════════════════════════ */
#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,42,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: left, top;
}

/* ═══════════════════════════════════════════
   NOISE OVERLAY
   ═══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(0);
}

nav.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo-img { width: 36px; height: 36px; border-radius: 10px; }
.chat-logo { width: 20px; height: 20px; border-radius: 5px; vertical-align: middle; margin-right: 6px; }
.footer-logo-img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after { width: 100%; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

/* ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #ff7050;
  box-shadow: 0 0 32px var(--accent-glow), 0 0 50px rgba(255, 112, 80, 0.5), 0 0 80px rgba(255, 96, 64, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: #ff4020;
  box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(255, 96, 64, 0.5);
  transform: translateY(0);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
}

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

.btn-outline:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  will-change: transform;
}

.hero-glow-1 {
  background: var(--accent);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  background: var(--blue);
  bottom: -200px;
  left: -100px;
  opacity: 0.08;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(255,77,42,0.15);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff8a5c);
  border-radius: 2px;
  opacity: 0.4;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   FLOATING PARTICLES (hero background)
   ═══════════════════════════════════════════ */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   CHAT PREVIEW (Hero Mockup)
   ═══════════════════════════════════════════ */
.hero-preview {
  margin-top: 72px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.chat-window {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.chat-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 60px rgba(255,77,42,0.08);
}

.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.chat-dots {
  display: flex;
  gap: 6px;
}

.chat-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 0.2s;
  cursor: pointer;
}

.chat-dots span:hover { transform: scale(1.3); }

.chat-dots span:nth-child(1) { background: #ff5f57; }
.chat-dots span:nth-child(2) { background: #ffbd2e; }
.chat-dots span:nth-child(3) { background: #28c840; }

.chat-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.chat-body {
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgIn 0.4s ease-out both;
}

.msg.boss { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.msg-avatar:hover { transform: scale(1.15) rotate(5deg); }

.msg.boss .msg-avatar { background: var(--accent-soft); }
.msg.employee .msg-avatar { background: var(--blue-soft); }

.msg-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  transition: transform 0.2s;
}

.msg-content:hover { transform: scale(1.02); }

.msg.boss .msg-content {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg.employee .msg-content {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-employee-name {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 600;
}

.msg-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
#features { background: var(--bg); }

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header .section-desc { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* shimmer on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,0.02) 45%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.02) 55%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(0deg);
  transition: none;
  pointer-events: none;
}

.feature-card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

@keyframes shimmer {
  to { transform: translateX(100%) rotate(0deg); }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-card:nth-child(1)::before { background: var(--accent); }
.feature-card:nth-child(2)::before { background: var(--blue); }
.feature-card:nth-child(3)::before { background: var(--green); }
.feature-card:nth-child(4)::before { background: var(--purple); }
.feature-card:nth-child(5)::before { background: var(--yellow); }
.feature-card:nth-child(6)::before { background: var(--cyan); }
.feature-card:nth-child(7)::before { background: var(--pink); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); }

.feature-card:nth-child(1) .feature-icon { background: var(--accent-soft); }
.feature-card:nth-child(2) .feature-icon { background: var(--blue-soft); }
.feature-card:nth-child(3) .feature-icon { background: var(--green-soft); }
.feature-card:nth-child(4) .feature-icon { background: var(--purple-soft); }
.feature-card:nth-child(5) .feature-icon { background: var(--yellow-soft); }
.feature-card:nth-child(6) .feature-icon { background: var(--cyan-soft); }
.feature-card:nth-child(7) .feature-icon { background: var(--pink-soft); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SCENARIOS SECTION
   ═══════════════════════════════════════════ */
#scenarios {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.scenarios-header {
  text-align: center;
  margin-bottom: 72px;
}

.scenarios-header .section-desc { margin: 0 auto; }

.scenario-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.scenario-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.scenario-tab:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.scenario-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.scenario-display {
  position: relative;
  min-height: 320px;
}

.scenario-panel {
  display: none;
  animation: scenarioIn 0.4s ease-out;
}

.scenario-panel.active { display: block; }

@keyframes scenarioIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.scenario-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.scenario-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scenario-info > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.scenario-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.scenario-tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

.scenario-employees {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-emp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.scenario-emp:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.scenario-emp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.scenario-emp-info { flex: 1; }

.scenario-emp-name {
  font-size: 14px;
  font-weight: 700;
}

.scenario-emp-role {
  font-size: 12px;
  color: var(--text-tertiary);
}

.scenario-emp-skills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.scenario-emp-skill {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--surface);
  color: var(--text-tertiary);
}

/* scenario demo chat */
.scenario-demo {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.scenario-demo-header {
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-demo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.scenario-demo .msg { max-width: 90%; }
.scenario-demo .msg-content { font-size: 13px; padding: 8px 12px; }
.scenario-demo .msg-avatar { width: 28px; height: 28px; font-size: 14px; }

/* ═══════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════ */
#team {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.employee-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.employee-card.boss {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--accent-soft);
  border-color: rgba(255,77,42,0.15);
}

.employee-emoji {
  font-size: 36px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.employee-card:hover .employee-emoji {
  transform: scale(1.2) rotate(-5deg);
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: scale(1.2) rotate(-5deg); }
  25% { transform: scale(1.2) rotate(5deg); }
  50% { transform: scale(1.2) rotate(-3deg); }
  75% { transform: scale(1.2) rotate(3deg); }
}

.employee-card.boss .employee-emoji {
  margin-bottom: 0;
  font-size: 42px;
}

.employee-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.employee-role {
  font-size: 12px;
  color: var(--text-tertiary);
}

.employee-card.boss .employee-name { font-size: 17px; }
.employee-card.boss .employee-role { color: var(--accent); font-weight: 600; }

.team-info .section-desc { margin-bottom: 32px; }

.team-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.team-bullets li:hover { transform: translateX(4px); }

.team-bullets .bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   ARCHITECTURE SECTION
   ═══════════════════════════════════════════ */
#arch {
  background: var(--bg);
}

.arch-header {
  text-align: center;
  margin-bottom: 72px;
}

.arch-header .section-desc { margin: 0 auto; }

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.arch-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  cursor: default;
}

.arch-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-4px);
}

.arch-node-icon { font-size: 24px; margin-bottom: 8px; }

.arch-node-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.arch-arrow {
  font-size: 20px;
  color: var(--text-tertiary);
  transition: color 0.3s;
}

.arch-flow:hover .arch-arrow { color: var(--accent); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.tech-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  transition: transform 0.3s;
  display: inline-block;
}

.tech-card:hover .tech-card-icon { transform: scale(1.2); }

.tech-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tech-card-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════
   PRIVACY SECTION
   ═══════════════════════════════════════════ */
#privacy {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.privacy-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.privacy-shield {
  width: 180px;
  height: 200px;
  position: relative;
}

.privacy-shield svg {
  width: 100%;
  height: 100%;
}

/* shield pulse */
.privacy-shield::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid rgba(45,212,160,0.1);
  animation: shield-pulse 3s ease-in-out infinite;
}

@keyframes shield-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0; }
}

.privacy-orbit {
  position: absolute;
  inset: -40px;
  animation: spin 20s linear infinite;
}

.privacy-orbit-item {
  position: absolute;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s;
}

.privacy-orbit-item:hover { transform: scale(1.2); }

.privacy-orbit-item:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.privacy-orbit-item:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.privacy-orbit-item:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.privacy-orbit-item:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.privacy-info .section-desc { margin-bottom: 32px; }

.privacy-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s;
}

.privacy-item:hover { transform: translateX(4px); }

.privacy-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.privacy-item-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.privacy-item-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
#cta {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: cta-glow-pulse 4s ease-in-out infinite;
}

@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.12; transform: translate(-50%, -50%) scale(1.1); }
}

#cta .container { position: relative; z-index: 1; }

.cta-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.cta-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 200px;
  transition: transform 0.3s;
}

.cta-step:hover { transform: translateY(-4px); }

.cta-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.cta-step-title {
  font-size: 15px;
  font-weight: 700;
}

.cta-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cta-contact {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-contact-info {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-contact-item span:first-child { font-size: 18px; }

.qrcode-container {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.qrcode-img {
  width: 160px;
  height: 160px;
  border-radius: 16px;
}

.contact-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-beian {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-beian a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.footer-beian a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 18px;
  box-shadow: var(--shadow);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   WECHAT BUTTON
   ═══════════════════════════════════════════ */
.wechat-button {
  position: fixed;
  bottom: 120px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #07c160, #10b981);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(7, 193, 96, 0.4);
  transition: all 0.3s ease;
}

.wechat-button svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.wechat-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(7, 193, 96, 0.6);
}

.wechat-button:active {
  transform: translateY(-2px) scale(1.02);
}



/* progress ring inside back-to-top */
#back-to-top svg {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  transform: rotate(-90deg);
}

#back-to-top svg circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .privacy-grid, .scenario-content { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .team-visual { grid-template-columns: 1fr; }
  .employee-card.boss { grid-column: auto; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  footer .container { flex-direction: column; gap: 16px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
  .cta-steps { flex-direction: column; align-items: center; }
  .scenario-tabs { gap: 6px; }
  .scenario-tab { padding: 6px 14px; font-size: 13px; }
  .wechat-button { display: none; }
  #back-to-top { display: none; }
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* counter animation */
.counter-animated {
  display: inline-block;
}

/* magnetic button effect class */
.magnetic { transition: transform 0.2s ease-out; }
