/* ========================================
   微点科技官网 - 公共样式
   ======================================== */

/* CSS Variables - Design System */
:root {
    /* Surface Hierarchy */
    --surface: #f7f9fb;
    --surface-container-low: #f2f4f6;
    --surface-container-lowest: #ffffff;
    --surface-container-high: #e8ebef;
    --surface-container-highest: #dde1e6;
    
    /* Primary Blues */
    --primary: #0050cb;
    --primary-container: #0066ff;
    --secondary: #7c3aed;
    --on-primary: #ffffff;
    
    /* Text */
    --on-surface: #191c1e;
    --on-surface-variant: #44474e;
    --on-surface-muted: #72777f;
    
    /* Accent */
    --tertiary: #a33200;
    
    /* Ghost Border */
    --outline-variant: rgba(194, 198, 216, 0.15);
    
    /* Shadows */
    --shadow-ambient: 0 12px 24px rgba(25, 28, 30, 0.04);
    --shadow-elevated: 0 16px 32px rgba(25, 28, 30, 0.06);
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #0050cb 0%, #0066ff 50%, #00a3ff 100%);
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-teal: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --gradient-orange: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --gradient-rose: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    z-index: 100;
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: var(--shadow-ambient);
    will-change: transform;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* NOTE: contain:paint conflicts with backdrop-filter – removed intentionally */
}

.logo {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Hide mobile-only elements by default */
.nav-cta-mobile {
    display: none !important;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 80, 203, 0.25);
}

/* Mobile Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.nav-mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--on-surface);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Hero Section - Common Styles
   ======================================== */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 8% 80px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-container-low) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 80, 203, 0.2), transparent);
}

/* Floating Decorative Elements */
.hero-decoration {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    color: var(--primary);
    /* GPU layer promotion to prevent backdrop-filter flicker */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.hero-decoration svg {
    width: 80px;
    height: 80px;
}

.hero-decoration:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-decoration:nth-child(2) { top: 20%; right: 12%; animation-delay: 1s; }
.hero-decoration:nth-child(3) { bottom: 25%; left: 8%; animation-delay: 2s; }
.hero-decoration:nth-child(4) { bottom: 18%; right: 10%; animation-delay: 3s; }

.hero-content {
    max-width: 800px;
    animation: fadeUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 80, 203, 0.1);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
}

.hero h1 span,
.hero h1 .highlight {
    background: linear-gradient(135deg, #0050cb 0%, #0066ff 50%, #00a3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--on-surface-variant);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero p span {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2.5rem;
}

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

.hero-stat-number {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--on-surface-muted);
    margin-top: 0.5rem;
}

.hero-tags {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-tag {
    padding: 0.5rem 1rem;
    background: var(--surface-container-low);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--on-surface-muted);
}

/* ========================================
   Keyframe Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) translateZ(0); }
    50% { transform: translateY(-20px) rotate(5deg) translateZ(0); }
}

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

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

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========================================
   Scroll Animation System
   ======================================== */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    /* backface-visibility promotes GPU layer without breaking backdrop-filter stacking */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* NOTE: contain:layout style removed – causes stacking context conflicts with nav backdrop-filter */
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) translateZ(0);
}

[data-scroll="fade-up"] {
    transform: translateY(40px) translateZ(0);
}

[data-scroll="fade-down"] {
    transform: translateY(-40px) translateZ(0);
}

[data-scroll="fade-left"] {
    transform: translateX(40px) translateZ(0);
}

[data-scroll="fade-right"] {
    transform: translateX(-40px) translateZ(0);
}

[data-scroll="scale-in"] {
    transform: scale(0.9) translateZ(0);
}

[data-scroll="fade-in"] {
    transform: translateZ(0);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }
[data-delay="7"] { transition-delay: 0.7s; }
[data-delay="8"] { transition-delay: 0.8s; }

/* ========================================
   Section Headers - Common
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-surface-muted);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ========================================
   Common Button Styles
   ======================================== */
.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 80, 203, 0.2);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--surface-container-high);
    color: var(--on-surface);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--surface-container-low);
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-learn-more:hover {
    background: var(--primary);
    color: var(--on-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 80, 203, 0.15);
}

.btn-learn-more svg {
    transition: transform 0.2s ease;
}

.btn-learn-more:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Footer - New Design
   ======================================== */
.footer-new {
    background: #111827;
    position: relative;
    overflow: hidden;
}

/* 页脚背景微光晕效果 */
.footer-new::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 80, 203, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* 顶部渐变装饰条 */
.footer-gradient-bar {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 102, 255, 0.4) 30%,
        rgba(0, 163, 255, 0.6) 50%,
        rgba(0, 102, 255, 0.4) 70%,
        transparent 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 8% 3rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* 品牌区域 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 260px;
}

.footer-hotline {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: default;
}

.footer-hotline:hover {
    background: rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.25);
}

.hotline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    border-radius: 9px;
    color: white;
    flex-shrink: 0;
}

.hotline-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.hotline-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hotline-number {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

/* 导航区域 */
.footer-nav-section h4,
.footer-contact-section h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-nav-links a:hover {
    color: rgba(255, 255, 255, 0.95);
    padding-left: 4px;
}

/* 联系信息 */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.contact-item svg {
    color: rgba(0, 163, 255, 0.7);
    flex-shrink: 0;
}

.contact-item-block {
    align-items: flex-start;
    line-height: 1.6;
}

.contact-item-block svg {
    margin-top: 3px;
}

.contact-item-block strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.8125rem;
}

.contact-item-block div {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

/* 底部版权区 */
.footer-bottom-new {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.375rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright .copyright-year {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal-links .divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
}

.footer-legal-links .beian-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-legal-links .beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1.2fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 1.5rem;
    }

    .footer-tagline {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        text-align: left;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 0.5rem;
        gap: 2rem;
    }

    .footer-brand-info {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-tagline {
        max-width: 200px;
        font-size: 0.75rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.4);
    }
    
    .footer-hotline {
        justify-content: flex-start;
        width: auto;
        min-width: 240px;
        padding: 0.625rem 0.875rem;
        background: rgba(255, 255, 255, 0.04);
        margin-bottom: 2px;
    }

    .hotline-icon {
        width: 28px;
        height: 28px;
    }

    .hotline-number {
        font-size: 0.875rem;
    }
    
    .footer-nav-section h4,
    .footer-contact-section h4 {
        margin-bottom: 0.75rem;
    }

    .footer-contact-section {
        grid-column: span 2;
        margin-top: 0.5rem;
        padding-top: 1.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .contact-item {
        gap: 0.375rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 1.75rem 1.5rem;
    }
    
    .footer-legal-links {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        order: 1; /* Legal links first */
    }

    .footer-legal-links .divider {
        display: block;
        opacity: 0.3;
    }

    .footer-copyright {
        order: 2; /* Copyright second */
        opacity: 0.45;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 2.5rem 1.25rem 2rem;
    }

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

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .footer-contact-section {
        grid-column: span 1;
    }

    .footer-contact-info {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-legal-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-legal-links .divider {
        display: none;
    }
}

/* ========================================
   Responsive - Common Breakpoints
   ======================================== */
@media (max-width: 1024px) {
    nav {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        padding: 0.75rem 1.5rem;
        gap: 1.5rem;
        justify-content: space-between;
        border-radius: 24px;
    }
    
    .nav-mobile-toggle {
        display: flex;
        order: 3;
    }

    .nav-cta {
        display: none; /* Hide on mobile in basic state, or show if space permits */
        margin-left: auto;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.99); /* Increased opacity for clarity */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: none; 
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem; /* Reduced gap slightly for better fit */
        padding: 2rem;
        z-index: 2000; /* Ensure it stays above everything */
        
        /* Smooth enter/exit transition */
        opacity: 0;
        visibility: hidden;
        transform: scale(1.05); /* Start slightly larger for a "zoom out" feel */
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0.4s;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-links a {
        font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--on-surface) !important;
        text-align: center;
        width: 100%;
        padding: 0.5rem;
        text-decoration: none;
        margin: 0 !important;
        
        /* Staggered entry initial state */
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggering delays for links */
    .nav-links.active a:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.25s; }

    .nav-links .nav-cta-mobile {
        display: flex !important;
        margin: 1.5rem auto 0 !important;
        padding: 1rem 3rem;
        font-size: 1.125rem;
        font-weight: 600;
        border-radius: 100px; /* Rounded pill style for premium feel */
        width: auto;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
        color: white;
        box-shadow: 0 12px 24px rgba(0, 80, 203, 0.2);
        
        /* Staggered entry */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active .nav-cta-mobile {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.35s;
    }
    
    .hero-stats {
        gap: 2rem;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.625rem 1.25rem;
    }
    
    .logo {
        height: 28px;
    }
}

/* ========================================
   Mouse Cursor Glow Effect
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    /* Use transform for position – avoids layout thrashing and backdrop-filter invalidation */
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(0, 102, 255, 0.08) 0%,
        rgba(0, 80, 203, 0.05) 25%,
        rgba(0, 163, 255, 0.025) 50%,
        transparent 70%
    );
    filter: blur(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.cursor-glow.active {
    opacity: 1;
}

.cursor-glow.fading {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide cursor glow on touch devices and small screens */
@media (hover: none), (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* Allow JS to force-enable glow when a real mouse is detected on hybrid Windows devices */
body.has-fine-pointer .cursor-glow {
    display: block;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 1.5rem 60px;
        min-height: 60vh;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .hero-tags {
        flex-wrap: wrap;
    }
}
