/* ===== CSS Variables ===== */
:root {
    --primary: #f59e0b;
    --primary-light: #fbbf24;
    --primary-dark: #d97706;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --bg-dark: #0a1628;
    --bg-darker: #070f1a;
    --bg-card: #111d32;
    --bg-card-hover: #1a2744;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.1);
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #070f1a 100%);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
    background: rgba(245, 158, 11, 0.1);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: glow-rotate 3s linear infinite;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.4);
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(245, 158, 11, 0.05);
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary-light);
    margin-bottom: 32px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-unit {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ===== Section Common ===== */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-header.light .section-title,
.section-header.light .section-desc {
    color: var(--text-primary);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Pain Points ===== */
.pain-points {
    background: var(--bg-darker);
}

.pain-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-card);
}

.pain-card:hover::before {
    transform: scaleX(1);
}

.pain-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--primary);
}

.pain-icon svg {
    width: 100%;
    height: 100%;
}

.pain-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.pain-card strong {
    color: var(--primary-light);
}

.pain-metric {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.metric-value {
    display: block;
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Solution ===== */
.solution {
    background: var(--bg-dark);
    overflow: hidden;
}

.solution-visual {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.solution-center {
    position: relative;
    z-index: 3;
    margin-bottom: -20px;
}

.center-orb {
    width: 140px;
    height: 140px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.4);
    animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%, 100% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 100px rgba(245, 158, 11, 0.7); transform: scale(1.05); }
}

.orb-icon {
    font-size: 36px;
    font-weight: 900;
    color: white;
}

.orb-text {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-top: 4px;
}

.connection-lines {
    position: relative;
    width: 100%;
    height: 220px;
    z-index: 1;
    display: block;
}

.conn-line {
    stroke-dasharray: 10 6;
    animation: dash-flow 1.5s linear infinite;
    opacity: 0.9;
}

.conn-dot {
    opacity: 1;
    filter: drop-shadow(0 0 4px currentColor);
}

@keyframes dash-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -32; }
}

.solution-roles {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: -10px;
}

.role-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    width: 220px;
    transition: var(--transition);
}

.role-node:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.role-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.role-node h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.role-node p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Features ===== */
.features {
    background: var(--bg-darker);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.feature-header {
    padding: 28px 28px 0;
}

.feature-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-badge.sales {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-light);
}

.feature-badge.design {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.feature-badge.service {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.feature-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.feature-content {
    padding: 20px 28px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .check {
    width: 22px;
    height: 22px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-list p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.feature-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--border);
}

.feature-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fstat-value {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fstat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Switching ===== */
.switching {
    background: var(--bg-dark);
}

.switching-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.chat-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.chat-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.chat-info h4 {
    font-size: 15px;
    font-weight: 600;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-body {
    padding: 16px 16px 8px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Date separator */
.chat-date {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 12px 0 8px;
    position: relative;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
}

.chat-date.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-date::before,
.chat-date::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
}

.chat-date::before { left: 0; }
.chat-date::after {
    right: 0;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* Messages - default hidden, shown by JS */
.chat-message {
    display: flex;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 85%;
}

.chat-message.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Customer messages - right side */
.chat-message.customer {
    align-self: flex-end;
    flex-direction: column;
    align-items: flex-end;
}

/* Agent messages - left side with avatar */
.chat-message.agent {
    align-self: flex-start;
    align-items: flex-end;
    gap: 8px;
}

/* Avatar for agent messages */
.msg-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.chat-message.switch-role .msg-avatar {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    font-size: 13px;
}

.msg-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.chat-message.customer .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.agent .message-bubble {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-message.agent .message-bubble strong {
    color: var(--primary-light);
}

/* Role tags */
.role-tag {
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 100px;
    margin-bottom: 3px;
    font-weight: 600;
    display: inline-block;
}

.sales-role .role-tag {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-light);
}

.design-role .role-tag {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.service-role .role-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.switch-role .role-tag.switch-tag {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
}

.switch-role .message-bubble.switch-bubble {
    background: rgba(100, 116, 139, 0.08);
    border-style: dashed;
    font-style: italic;
    color: var(--text-secondary);
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Typing indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    margin-left: 40px;
    margin-bottom: 8px;
    width: fit-content;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Chat input */
.chat-input {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.chat-input input {
    flex: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.chat-input input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.switching-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.switch-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.switch-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.switch-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.switch-icon svg {
    width: 24px;
    height: 24px;
}

.switch-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.switch-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Dashboard ===== */
.dashboard {
    background: var(--bg-darker);
}

.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.db-tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

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

.db-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.dashboard-content {
    position: relative;
}

.db-panel {
    display: none;
}

.db-panel.active {
    display: block;
    animation: fade-in 0.4s ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.db-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.db-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.db-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.db-card.highlight-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.db-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.db-icon {
    font-size: 28px;
}

.db-card-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.db-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.db-value {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.db-unit {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.db-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.db-desc strong {
    color: var(--primary-light);
}

/* ===== Platforms ===== */
.platforms {
    background: var(--bg-dark);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.platform-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin: 0 auto 16px;
}

.platform-logo.pdd { background: linear-gradient(135deg, #e02e24, #ff6b6b); }
.platform-logo.tb { background: linear-gradient(135deg, #ff5000, #ff8a00); }
.platform-logo.jd { background: linear-gradient(135deg, #e4393c, #ff6b6b); }
.platform-logo.dy { background: linear-gradient(135deg, #000000, #333333); }
.platform-logo.wx { background: linear-gradient(135deg, #07c160, #4ade80); }
.platform-logo.more { background: var(--gradient-primary); }

.platform-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.platform-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.platform-status {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.platform-status.coming {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-light);
}

.platform-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.pf-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ===== ROI ===== */
.roi {
    background: var(--bg-darker);
}

.roi-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 48px;
}

.roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.roi-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.roi-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.roi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.roi-item:last-child {
    border-bottom: none;
}

.roi-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.roi-value {
    font-size: 15px;
    font-weight: 700;
}

.roi-value.negative {
    color: #ef4444;
}

.roi-value.positive {
    color: #4ade80;
}

.roi-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-arrow {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    animation: bounce-x 1.5s infinite;
}

@keyframes bounce-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.roi-summary {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.summary-item {
    text-align: center;
    padding: 24px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.summary-item:hover {
    transform: translateY(-4px);
}

.summary-item.highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.summary-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: #4ade80;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Wechat QR Modal ===== */
.wechat-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.wechat-modal.is-open {
    display: flex;
}

.wechat-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 15, 26, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wechat-modal-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: wechatModalIn 0.25s ease;
}

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

.wechat-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 30px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.wechat-modal-close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.wechat-modal-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #0f172a;
}

.wechat-modal-qr {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.wechat-modal-qr img {
    display: block;
    width: 100%;
    height: auto;
}

.wechat-modal-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ===== Mobile Menu ===== */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    z-index: 999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nav-menu.active .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .pain-cards,
    .features-grid,
    .db-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .switching-demo {
        grid-template-columns: 1fr;
    }
    
    .solution-roles {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .role-node {
        width: 180px;
        padding: 24px 16px;
    }
    
    .connection-lines {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .pain-cards,
    .features-grid,
    .db-cards,
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .roi-comparison {
        grid-template-columns: 1fr;
    }
    
    .roi-vs {
        transform: rotate(90deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .platform-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-trust {
        flex-direction: column;
        align-items: center;
    }
    
    .roi-summary {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== GSAP Animation Classes ===== */
.gsap-reveal {
    opacity: 0;
    transform: translateY(30px);
}
