/* Tech-enhanced styles with animations and visual elements */

/* Section subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Section decorative elements */
.section-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.deco-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.deco-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.deco-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

/* Floating particles background */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
    }
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

/* Hero Background Pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px),
        linear-gradient(0deg, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Hero Visual - App Mockup */
.hero-visual {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    z-index: 1;
}

.app-mockup {
    background: #1E293B;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #0F172A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }

.mockup-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.mockup-content {
    display: flex;
    min-height: 320px;
}

.mockup-sidebar {
    width: 60px;
    background: #0F172A;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-item:hover, .sidebar-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: #6366F1;
}

.mockup-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 90%;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    flex-shrink: 0;
}

.message-avatar.ai-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-top-left-radius: 4px;
}

.chat-message.user .message-content {
    background: #6366F1;
    border-top-left-radius: 12px;
    border-top-right-radius: 4px;
}

.message-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.mini-chart {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.chart-svg {
    width: 100%;
    height: 60px;
}

.insight-text {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.insight-text strong {
    color: #10B981;
}

.input-area {
    margin-top: auto;
    padding-top: 1rem;
}

.input-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: -60px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: -40px;
    animation-delay: 2s;
}

.card-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366F1;
}

.card-icon-small.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: #10B981;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.card-label {
    font-size: 0.7rem;
    color: var(--text-color);
}

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

/* Feature Grid enhancements */
.feature-grid {
    position: relative;
}

.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-visual {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-preview {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.feature-item:hover .feature-preview {
    opacity: 1;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all 0.3s ease;
}

.feature-item:hover::after {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

/* Feature Icons with gradient */
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.feature-item:hover .feature-icon::before {
    opacity: 0.6;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* Advantage Numbers with glow effect */
.advantage-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    margin-bottom: 1rem;
    line-height: 1;
    position: relative;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.advantage-item:hover .advantage-number {
    opacity: 0.3;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* Comparison Grid with modern cards */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.comparison-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.5s ease;
}

.comparison-item:hover::before {
    left: 100%;
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    border-color: var(--primary-color);
}

.comparison-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-vs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-vs span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vs-bad {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    text-decoration: line-through;
    opacity: 0.6;
}

.vs-good {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.comparison-item:hover .vs-good {
    background: var(--primary-color);
    color: white;
}

/* Use Cases with icons */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.use-case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.use-case-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    border-radius: 50%;
}

.use-case-item:hover::before {
    transform: scaleX(1);
}

.use-case-item:hover::after {
    width: 300px;
    height: 300px;
}

.use-case-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.use-case-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.use-case-item p {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Quick Start with step numbers */
.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quick-start-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-start-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(99, 102, 241, 0.1) 90deg,
        transparent 180deg
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
}

.quick-start-item:hover::before {
    opacity: 1;
}

.quick-start-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    border-color: var(--primary-color);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.quick-start-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.quick-start-item p {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Alt background sections */
.alt-bg {
    background: var(--section-bg-color);
    width: 100%;
    max-width: none;
    padding: 5rem 0;
}

.alt-bg > h2,
.alt-bg > div {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

/* Download button styling */
.download-section {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border-radius: 20px;
    border: none;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

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

.download-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.download-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
    background: #5558E3;
}

.download-button svg {
    width: 22px;
    height: 22px;
}

/* Footer enhancements */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo .logo-en {
    color: var(--light-text-color);
}

.footer-logo .logo-cn {
    color: var(--text-color);
    opacity: 0.6;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.footer-slogan,
.footer-slogan-cn {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0.5rem 0;
}

.footer-slogan {
    color: var(--primary-color);
    font-weight: 500;
}

.footer-contact {
    margin: 1rem 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-copyright {
    margin-top: 2rem;
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-visual {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .mockup-content {
        flex-direction: column;
    }

    .mockup-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 0.5rem 0;
    }

    .floating-cards {
        display: none;
    }

    .comparison-grid,
    .use-cases-grid,
    .quick-start-grid {
        grid-template-columns: 1fr;
    }
}
