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

:root {
    --primary: #667EEA;
    --primary-dark: #5164d1;
    --secondary: #764BA2;
    --accent: #F093FB;
    --success: #43E97B;
    --warning: #FFD86E;
    --danger: #F5576C;

    --bg: #0A0A1A;
    --bg-light: #111128;
    --bg-elevated: #181836;
    --bg-card: rgba(24, 24, 54, 0.6);
    --border: rgba(102, 126, 234, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);

    --text-primary: #FFFFFF;
    --text-secondary: #C4C6DB;
    --text-muted: #7C7F9C;
    --text-inverse: #0A0A1A;

    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-accent: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    --gradient-cyan: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    --gradient-green: linear-gradient(135deg, #43E97B 0%, #38F9D7 100%);
    --gradient-text: linear-gradient(135deg, #667EEA 0%, #F093FB 50%, #764BA2 100%);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 20px 60px rgba(102, 126, 234, 0.2);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container-max: 1280px;
    --nav-height: 76px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    transition: all 0.3s ease;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.9);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo .accent {
    color: var(--primary);
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(102, 126, 234, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: blobFloat 18s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation: blobFloat 22s ease-in-out infinite reverse;
}

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

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--success);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    position: relative;
}

.stat + .stat::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.stat-number,
.stat-big-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1;
    position: relative;
}

.stat-suffix,
.stat-big-suffix {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-label,
.stat-big-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Dashboard Card */
.hero-visual {
    position: relative;
}

.dashboard-card {
    background: linear-gradient(145deg, rgba(24, 24, 54, 0.9), rgba(17, 17, 40, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(20px);
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

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

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.dots span:nth-child(1) { background: #F5576C; }
.dots span:nth-child(2) { background: #FFD86E; }
.dots span:nth-child(3) { background: #43E97B; }

.dashboard-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.mini-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
}

.mini-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mini-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mini-trend {
    font-size: 12px;
    font-weight: 600;
}

.mini-trend.up {
    color: var(--success);
}

.chart-area {
    position: relative;
    height: 180px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.chart-bars {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    height: 70%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    opacity: 0.3;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), transparent);
    border-radius: 4px 4px 0 0;
    min-height: 8px;
}

.bar.highlight {
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 1;
}

.chart-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    width: 100%;
    height: 70%;
}

.pulse-ring {
    animation: ringPulse 2s ease-out infinite;
    transform-origin: center;
}

@keyframes ringPulse {
    0% { r: 5; opacity: 0.6; }
    100% { r: 18; opacity: 0; }
}

.insight-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.15));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.insight-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white;
}

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

.insight-text strong {
    color: var(--text-primary);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(145deg, rgba(24, 24, 54, 0.95), rgba(17, 17, 40, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.card-1 {
    top: -20px;
    left: -30px;
    animation: floatY 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.card-2 {
    bottom: 40px;
    right: -20px;
    animation: floatY 5s ease-in-out infinite;
    animation-delay: 1s;
}

.fc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.fc-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.scroll-wheel {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.scroll-indicator span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ===== Trusted Section ===== */
.trusted {
    padding: 50px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.trusted-title {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.trusted-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.logo-item {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 12px;
}

.logo-item:hover {
    opacity: 0.9;
    color: var(--text-secondary);
}

/* ===== Section Base ===== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 70px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.section-title.left {
    text-align: left;
}

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

/* ===== Services Section ===== */
.services {
    background: var(--bg);
}

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

.service-card {
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--bg-elevated);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

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

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-features span {
    padding: 5px 12px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-item {
    display: flex;
    gap: 24px;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 8px;
}

.feature-item:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.feature-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.05));
    border-color: var(--border);
}

.feature-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 1px solid var(--border);
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.features-visual {
    display: flex;
    justify-content: center;
}

.tech-visual {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--border);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: ringRotate 40s linear infinite;
}

.ring-2 {
    width: 72%;
    height: 72%;
    animation: ringRotate 30s linear infinite reverse;
}

.ring-3 {
    width: 48%;
    height: 48%;
    animation: ringRotate 20s linear infinite;
}

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

.visual-core {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2), transparent 70%);
    border-radius: 50%;
}

.tech-tag {
    position: absolute;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 3;
}

.tag-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.tag-2 { top: 22%; right: 0; }
.tag-3 { bottom: 28%; right: 5%; }
.tag-4 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.tag-5 { bottom: 28%; left: 5%; }
.tag-6 { top: 22%; left: 0; }

/* ===== Stats Section ===== */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08), transparent 50%);
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    color: white;
    padding: 20px;
}

.stat-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.stat-big-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
    -webkit-text-fill-color: white;
    line-height: 1;
    display: inline-block;
}

.stat-big-suffix {
    font-size: 28px;
    font-weight: 700;
    color: white;
    -webkit-text-fill-color: white;
}

.stat-big-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    font-weight: 500;
}

/* ===== Cases Section ===== */
.cases {
    background: var(--bg);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.2), transparent 50%);
}

.case-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.case-icon {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.case-content {
    padding: 28px 32px 32px;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.case-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.case-metrics {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.cm-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

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

/* ===== Testimonials ===== */
.testimonials {
    background: var(--bg-light);
}

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

.testimonial-card {
    position: relative;
    padding: 40px 32px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.quote-mark {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 80px;
    font-family: Georgia, serif;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-title {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== About Section ===== */
.about {
    background: var(--bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-header.left,
.section-title.left {
    text-align: left;
    margin-left: 0;
}

.about-content .section-tag {
    margin-bottom: 18px;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 36px;
}

.about-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.about-tag:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.about-tag svg {
    color: var(--primary);
    flex-shrink: 0;
}

.team-card {
    padding: 36px;
    background: linear-gradient(145deg, rgba(24, 24, 54, 0.8), rgba(17, 17, 40, 0.8));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.team-stats-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.ts-value {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

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

.team-circles {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.team-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-right: -12px;
}

.team-circle-more {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 16px;
    border-color: var(--border-light);
}

.team-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.team-cta-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.team-cta-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 18px 0 36px;
    line-height: 1.7;
    max-width: 540px;
}

.contact-form {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: var(--bg-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C7F9C' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form button[type="submit"] {
    margin-top: 8px;
}

.info-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
}

.offices-card {
    padding: 28px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
}

.offices-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.office-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.office-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

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

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

.footer-brand {
    max-width: 320px;
}

.logo-footer {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.footer-col h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 22px;
}

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

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

.footer-col a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy a {
    transition: color 0.2s ease;
}

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

.footer-divider {
    opacity: 0.4;
}

.footer-links-bottom {
    display: flex;
    gap: 24px;
}

.footer-links-bottom a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.modal-body {
    padding: 50px 40px 40px;
    text-align: center;
}

.modal-body h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.demo-video-placeholder {
    padding: 60px 40px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.demo-video-placeholder p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Animations on Scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Tier Block (Services 双轮驱动) ===== */
.tier-block + .tier-block {
    margin-top: 64px;
}
.tier-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
    flex-shrink: 0;
}
.tier-badge-alt {
    background: var(--gradient-accent);
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.35);
}
.tier-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.tier-sub {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ===== Grid Variations ===== */
.services-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
    .services-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
.cases-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
    .cases-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .services-grid-4,
    .cases-grid-3 {
        grid-template-columns: 1fr;
    }
    .tier-header {
        flex-wrap: wrap;
    }
}

/* ===== Text Highlight ===== */
.text-highlight {
    color: var(--text-primary);
    font-weight: 700;
    background: rgba(102, 126, 234, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.4);
}

/* ===== Advantages Tags (About) ===== */
.about-tags-advantages {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
}
.adv-tag {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
}
.adv-tag strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.adv-tag span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}
.adv-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    margin-top: 2px;
}

/* ===== Team Vision Card ===== */
.team-vision-card {
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(240, 147, 251, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    text-align: center;
}
.tv-label {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.tv-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-text {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-subtitle,
    .hero-actions,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-stats {
        display: inline-flex;
    }

    .features-layout,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-header.left,
    .section-title.left {
        text-align: center;
    }

    .about-content {
        max-width: 720px;
        margin: 0 auto;
    }

    .contact-info {
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trusted-logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 30px 24px;
        gap: 4px;
        align-items: stretch;
        border-top: 1px solid var(--border-light);
        z-index: 99;
    }

    .nav-links.active .nav-link {
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding-bottom: 80px;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .trusted-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat + .stat::before {
        display: none;
    }

    .tech-visual {
        width: 320px;
        height: 320px;
    }

    .tech-tag {
        font-size: 11px;
        padding: 7px 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .about-tags,
    .offices-grid {
        grid-template-columns: 1fr;
    }

    .case-metrics {
        gap: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-big-number {
        font-size: 36px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-card {
        padding: 18px;
    }

    .card-1 {
        left: -10px;
    }

    .card-2 {
        right: -10px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .team-cta {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 20px);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 20px;
    }

    .stat {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .trusted-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-visual {
        width: 280px;
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
