/* ========================================
   链通云 - 智慧供应链平台
   紫蓝渐变主题 | 现代动效 | 响应式
   ======================================== */

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

:root {
    --purple: #7b5cf6;
    --purple-dark: #5b3fd1;
    --purple-light: #a78bfa;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --blue-light: #60a5fa;
    --gradient: linear-gradient(135deg, #7b5cf6 0%, #5b6bf0 40%, #3b82f6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(123,92,246,0.1) 0%, rgba(59,130,246,0.1) 100%);
    --text: #1e1b3a;
    --text-light: #6b7280;
    --text-white: rgba(255,255,255,0.85);
    --bg: #ffffff;
    --bg-soft: #f8f7ff;
    --bg-dark: #0f0c29;
    --card-shadow: 0 10px 40px rgba(123,92,246,0.12);
    --card-shadow-lg: 0 20px 60px rgba(59,64,200,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

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

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(123,92,246,0.35);
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(123,92,246,0.5);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-lg { padding: 16px 40px; font-size: 16px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--purple);
    color: var(--purple);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: #fff;
    color: var(--purple);
    transform: translateY(-3px);
}

.btn-block { width: 100%; }

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.play-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    font-size: 13px;
    color: var(--purple);
    transition: var(--transition);
}
.btn-play:hover .play-icon {
    transform: scale(1.1);
    box-shadow: var(--card-shadow-lg);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.logo-icon { animation: logoSpin 8s linear infinite; }
@keyframes logoSpin { to { transform: rotate(360deg); } }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links > a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}
.nav-links > a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-links > a:hover { color: var(--purple); }
.nav-links > a:hover::after,
.nav-links > a.active::after { width: 100%; }
.nav-links > a.active { color: var(--purple); font-weight: 600; }

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 24px;
    border-left: 1px solid rgba(0,0,0,0.08);
}
.btn-login {
    padding: 9px 22px;
    border-radius: 50px;
    color: var(--purple);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--purple);
    transition: var(--transition);
}
.btn-login:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.btn-register {
    padding: 9px 22px;
    border-radius: 50px;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(123,92,246,0.3);
    transition: var(--transition);
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,92,246,0.45); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.menu-toggle span {
    width: 26px; height: 2.5px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ---------- Login Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15,12,41,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
    width: 100%;
    max-width: 880px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    transform: scale(0.85) translateY(30px);
    transition: var(--transition);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-left {
    padding: 48px 40px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.modal-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.modal-left h3 { font-size: 30px; line-height: 1.4; margin-top: 40px; font-weight: 800; }
.modal-left p { margin-top: 16px; opacity: 0.9; font-size: 14px; }
.modal-stats { display: flex; gap: 32px; margin-top: 32px; }
.modal-stats div { display: flex; flex-direction: column; }
.modal-stats b { font-size: 22px; font-weight: 800; }
.modal-stats span { font-size: 12px; opacity: 0.8; }

.modal-right { padding: 48px 40px; }
.modal-right h2 { font-size: 26px; color: var(--text); }
.modal-sub { color: var(--text-light); font-size: 14px; margin-top: 4px; }

.form-group { margin-top: 20px; position: relative; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8e8f0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    background: #fafafe;
}
.form-group input:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(123,92,246,0.1); }
.forgot { position: absolute; right: 0; top: 0; font-size: 12px; color: var(--purple); }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sms-login { color: var(--purple); cursor: pointer; }

.modal-divider {
    text-align: center;
    margin: 24px 0 16px;
    position: relative;
    font-size: 12px;
    color: var(--text-light);
}
.modal-divider::before, .modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e8e8f0;
}
.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

.social-login { display: flex; gap: 12px; justify-content: center; }
.social-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e8e8f0;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.social-btn:hover { border-color: var(--purple); transform: translateY(-2px); }

.modal-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-light); }
.modal-footer a { color: var(--purple); font-weight: 600; }

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.1); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #fafafe 0%, #f0eeff 50%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; }

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(123,92,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123,92,246,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: floatShape 12s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: var(--purple); top: -80px; right: -60px; }
.shape-2 { width: 350px; height: 350px; background: var(--blue); bottom: -60px; left: -80px; animation-delay: -4s; }
.shape-3 { width: 250px; height: 250px; background: var(--purple-light); top: 40%; left: 50%; animation-delay: -8s; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(123,92,246,0.12);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid rgba(123,92,246,0.15);
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--purple);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin: 20px 0 24px;
    letter-spacing: -0.5px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-metrics {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.metric b {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.metric span { font-size: 13px; color: var(--text-light); }

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}
.dashboard-mock {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--card-shadow-lg);
    overflow: hidden;
    transform: rotateY(-6deg) rotateX(4deg);
    animation: mockFloat 6s ease-in-out infinite;
    border: 1px solid rgba(123,92,246,0.1);
}
@keyframes mockFloat {
    0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-6deg) rotateX(4deg) translateY(-12px); }
}
.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #fafafe;
    border-bottom: 1px solid #f0eef5;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #28ca42; }
.mock-title { margin-left: auto; margin-right: auto; font-size: 12px; font-weight: 600; color: var(--text-light); padding-right: 42px; }

.mock-body { display: flex; min-height: 280px; }
.mock-sidebar { width: 56px; background: #f5f3ff; padding: 12px 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.side-item { width: 30px; height: 30px; border-radius: 8px; background: #e8e5ff; }
.side-item.active { background: var(--gradient); }

.mock-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-row { display: flex; gap: 10px; }
.kpi-card {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    background: #fafafe;
    border: 1px solid #f0eef5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.kpi-1::before { background: var(--purple); }
.kpi-2::before { background: var(--blue); }
.kpi-3::before { background: var(--purple-light); }
.kpi-label { font-size: 10px; color: var(--text-light); }
.kpi-card b { font-size: 18px; font-weight: 800; }
.trend { font-size: 10px; color: #22c55e; font-weight: 600; }

.mock-chart { background: #fafafe; border-radius: 10px; padding: 8px; border: 1px solid #f0eef5; }
.chart-svg { width: 100%; height: 90px; }

.mock-bars { display: flex; gap: 12px; align-items: stretch; }
.bar-chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 60px; padding: 8px; background: #fafafe; border-radius: 10px; border: 1px solid #f0eef5; }
.bar { width: 100%; height: var(--h); border-radius: 4px 4px 0 0; background: var(--gradient); animation: barGrow 2s ease-out infinite alternate; }
.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.6s; }
.bar:nth-child(5) { animation-delay: 0.8s; }
.bar:nth-child(6) { animation-delay: 1s; }
@keyframes barGrow { from { transform: scaleY(0.7); } to { transform: scaleY(1); } }

.map-pin { width: 60px; display: flex; align-items: center; justify-content: center; position: relative; background: #fafafe; border-radius: 10px; border: 1px solid #f0eef5; }
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--purple); position: absolute; }
.pin.pulse { animation: pingPulse 2s ease-in-out infinite; }
.pin.pulse.delay { animation-delay: 1s; background: var(--blue); }
@keyframes pingPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    animation: cardFloat 5s ease-in-out infinite;
}
.fc-1 { top: -20px; left: -30px; }
.fc-2 { bottom: 20px; right: -20px; animation-delay: -2.5s; }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floating-card b { display: block; font-size: 18px; font-weight: 800; }
.floating-card span { font-size: 11px; color: var(--text-light); }
.fc-icon { font-size: 24px; }

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-light);
    z-index: 2;
}
.scroll-line { width: 2px; height: 40px; background: linear-gradient(var(--purple), transparent); animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Animate Up ---------- */
.animate-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Trusted ---------- */
.trusted { padding: 50px 0; background: #fff; border-bottom: 1px solid #f0eef5; }
.section-eyebrow { text-align: center; font-size: 13px; color: var(--text-light); margin-bottom: 28px; font-weight: 500; }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    align-items: center;
}
.brand-item {
    text-align: center;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #bbb8cc;
    transition: var(--transition);
    border-right: 1px solid #f0eef5;
    cursor: default;
}
.brand-item:last-child { border-right: none; }
.brand-item:hover { color: var(--purple); transform: scale(1.05); }

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 { font-size: 40px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 560px; margin: 0 auto; }
.section-header.light { color: #fff; }
.section-header.light p { color: rgba(255,255,255,0.8); }

/* ---------- Solutions ---------- */
.solutions { padding: 100px 0; background: #fff; }
.solution-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid #e8e5ff;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn:hover { border-color: var(--purple); color: var(--purple); }
.tab-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(123,92,246,0.3); }

.tab-panels { position: relative; }
.tab-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeIn 0.5s ease;
}
.tab-panel.active { display: grid; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.panel-text h3 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.panel-text p { font-size: 15px; color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }
.panel-text ul { margin-bottom: 28px; }
.panel-text li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text);
}
.panel-text li span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--gradient-soft);
    color: var(--purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Panel Visuals */
.panel-visual {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 40px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.flow-diagram {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.flow-node {
    padding: 14px 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--card-shadow);
    font-weight: 700;
    font-size: 14px;
    color: var(--purple);
    border: 2px solid transparent;
    transition: var(--transition);
    animation: nodeGlow 3s ease-in-out infinite;
}
.flow-node:nth-child(1) { animation-delay: 0s; }
.flow-node:nth-child(3) { animation-delay: 0.5s; }
.flow-node:nth-child(5) { animation-delay: 1s; }
.flow-node:nth-child(7) { animation-delay: 1.5s; }
.flow-node:nth-child(9) { animation-delay: 2s; }
@keyframes nodeGlow {
    0%, 100% { border-color: transparent; transform: scale(1); }
    50% { border-color: var(--purple); transform: scale(1.05); }
}
.flow-arrow {
    width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    position: relative;
}
.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--blue);
}

.warehouse-visual { position: relative; width: 100%; height: 200px; }
.wh-shelf {
    position: absolute;
    bottom: 0;
    width: 60px;
    background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
    border-radius: 6px 6px 0 0;
    opacity: 0.8;
}
.wh-shelf.s1 { left: 20%; height: 120px; }
.wh-shelf.s2 { left: 45%; height: 160px; }
.wh-shelf.s3 { left: 70%; height: 100px; }
.wh-robot {
    position: absolute;
    bottom: 10px;
    left: 10%;
    width: 30px; height: 20px;
    background: var(--blue);
    border-radius: 6px;
    animation: robotMove 4s ease-in-out infinite;
}
@keyframes robotMove { 0%, 100% { left: 10%; } 50% { left: 80%; } }

.logistics-map { position: relative; width: 100%; height: 200px; }
.route-line {
    position: absolute;
    top: 50%; left: 10%;
    width: 80%; height: 3px;
    background: dashed 3px var(--purple);
    background: repeating-linear-gradient(90deg, var(--purple) 0, var(--purple) 8px, transparent 8px, transparent 14px);
    animation: routeDash 2s linear infinite;
}
@keyframes routeDash { to { background-position: 22px 0; } }
.map-point {
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--purple);
    top: calc(50% - 8px);
}
.map-point.p1 { left: 10%; }
.map-point.p2 { left: 50%; }
.map-point.p3 { left: 85%; }
.truck-icon {
    position: absolute;
    top: calc(50% - 18px);
    font-size: 28px;
    animation: truckMove 5s ease-in-out infinite;
}
@keyframes truckMove { 0% { left: 5%; } 100% { left: 90%; } }

.finance-visual { position: relative; width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; }
.coin {
    font-size: 36px;
    position: absolute;
    animation: coinFloat 4s ease-in-out infinite;
}
.coin.c1 { left: 15%; animation-delay: 0s; }
.coin.c2 { right: 15%; animation-delay: -1.3s; }
.coin.c3 { bottom: 10%; animation-delay: -2.6s; }
@keyframes coinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.finance-ring {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: var(--gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringSpin 10s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* ---------- Services ---------- */
.services { padding: 100px 0; background: var(--bg-soft); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card[data-color="purple"] .service-icon { background: rgba(123,92,246,0.12); color: var(--purple); }
.service-card[data-color="blue"] .service-icon { background: rgba(59,130,246,0.12); color: var(--blue); }

.service-card h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ---------- Data Section ---------- */
.data-section {
    padding: 100px 0;
    background: var(--bg-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.data-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,92,246,0.2) 0%, transparent 70%);
}
.data-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}
.data-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.data-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.data-card.large { grid-row: span 2; }
.data-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.data-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.data-filter { display: flex; gap: 6px; }
.data-filter button {
    padding: 4px 12px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.data-filter button.active { background: var(--gradient); color: #fff; }

.chart-area { height: calc(100% - 40px); min-height: 200px; }
.area-chart { width: 100%; height: 100%; }

.donut-chart { position: relative; width: 120px; height: 120px; margin: 10px auto 0; }
.donut-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.number-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 16px 0 8px;
}
.number-display b { font-size: 40px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.number-display span { font-size: 14px; color: rgba(255,255,255,0.6); }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 12px; }
.mini-bar { width: 100%; height: var(--h); border-radius: 3px 3px 0 0; background: var(--gradient); }

.data-desc { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 12px; line-height: 1.5; }

.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}
.alert-item span { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.alert-item.warning span { background: #f59e0b; }
.alert-item.danger span { background: #ef4444; }
.alert-item.info span { background: var(--blue); }

/* ---------- Process ---------- */
.process { padding: 100px 0; background: #fff; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue), var(--purple), var(--blue));
    background-size: 200% 100%;
    animation: lineFlow 3s linear infinite;
}
@keyframes lineFlow { to { background-position: -200% 0; } }

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}
.step-number {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.step-number::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.step-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    transition: var(--transition);
}
.step-icon svg { width: 26px; height: 26px; }
.step:hover .step-icon { background: var(--gradient); color: #fff; transform: scale(1.1); }
.step h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-light); line-height: 1.6; padding: 0 8px; }

/* ---------- CTA ---------- */
.cta-section { padding: 80px 0; background: #fff; }
.cta-box {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: 70px 40px;
    text-align: center;
    background: var(--gradient);
    color: #fff;
}
.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 2; }
.cta-box h2 { font-size: 38px; font-weight: 800; margin-bottom: 14px; }
.cta-box p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 70px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-brand p { font-size: 14px; margin: 18px 0; max-width: 280px; line-height: 1.7; }
.logo-light { color: #fff; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}
.social-links a:hover { background: var(--gradient); transform: translateY(-3px); }

.footer-col h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col a {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    transition: var(--transition);
    opacity: 0.7;
}
.footer-col a:hover { opacity: 1; color: var(--purple-light); transform: translateX(4px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 44px; }
    .hero-content { gap: 40px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .data-grid { grid-template-columns: 1fr 1fr; }
    .data-card.large { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 20px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links > a { font-size: 17px; }
    .nav-auth { margin-left: 0; padding-left: 0; border-left: none; flex-direction: column; width: 100%; gap: 10px; margin-top: 20px; }
    .btn-login, .btn-register { text-align: center; width: 100%; }

    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-content { grid-template-columns: 1fr; gap: 50px; }
    .hero h1 { font-size: 34px; }
    .hero-desc { font-size: 15px; }
    .hero-metrics { gap: 28px; margin-top: 36px; }
    .metric b { font-size: 26px; }
    .hero-visual { order: -1; }
    .dashboard-mock { transform: none; animation: none; }
    @keyframes mockFloat { to { transform: none; } }
    .floating-card { display: none; }

    .brand-grid { grid-template-columns: repeat(4, 1fr); }
    .brand-item { border-bottom: 1px solid #f0eef5; }

    .section-header h2 { font-size: 28px; }
    .solutions { padding: 60px 0; }
    .tab-panel.active { grid-template-columns: 1fr; gap: 30px; }
    .panel-visual { min-height: 220px; padding: 24px; }

    .service-grid { grid-template-columns: 1fr; }
    .services { padding: 60px 0; }

    .data-section { padding: 60px 0; }
    .data-grid { grid-template-columns: 1fr; }

    .process-steps { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
    .process-steps::before { display: none; }
    .process { padding: 60px 0; }

    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 26px; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions a { text-align: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }

    .modal-box { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .modal-left { display: none; }
    .modal-right { padding: 32px 24px; }
    .modal-close { display: flex; }

    .hero-scroll { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero-actions { gap: 12px; }
    .btn-primary, .btn-lg { padding: 14px 28px; font-size: 15px; }
    .metric { min-width: 45%; }
    .footer-grid { grid-template-columns: 1fr; }
    .flow-node { padding: 10px 14px; font-size: 12px; }
    .flow-arrow { width: 14px; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0eef5; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-dark); }

/* Selection */
::selection { background: var(--purple); color: #fff; }
