/*
Theme Name: MAIFUTURE
Description: Homepage for 迈赋科技/MAIFUTURE
Version: 1.0
*/

/* CSS Variables */
:root {
    --navy-primary: #0a192f;
    --navy-secondary: #112240;
    --navy-footer: #020c1b;
    --teal-accent: #64ffda;
    --text-white: #ffffff;
    --text-gray: #8892b0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, SF Pro, Segoe UI, Roboto, sans-serif;
    color: var(--text-white);
    background-color: var(--navy-primary);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
}

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-white);
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--teal-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal-accent);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--teal-accent);
    letter-spacing: 4px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-vision {
    font-size: 42px;
    color: var(--text-white);
    font-weight: 500;
    max-width: 800px;
    line-height: 1.4;
    white-space: nowrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--teal-accent), transparent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Services Section */
.services {
    background-color: var(--navy-secondary);
    padding: 120px 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 36px;
    color: var(--text-white);
    text-align: center;
    margin: 0 auto 60px;
    display: block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--teal-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--navy-primary);
    border: 1px solid var(--teal-accent);
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--teal-accent);
}

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

.service-title {
    font-size: 28px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.service-subtitle {
    font-size: 18px;
    color: var(--teal-accent);
    margin-bottom: 10px;
}

.service-description {
    font-size: 16px;
    color: var(--text-gray);
}

/* MEngine Section */
.mengine {
    background-color: var(--navy-primary);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.mengine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.mengine-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.mengine-logo {
    font-size: 80px;
    font-weight: 700;
    color: var(--teal-accent);
    margin-bottom: 20px;
    display: inline-block;
}

.mengine-title {
    font-size: 48px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.mengine-subtitle {
    font-size: 24px;
    color: var(--teal-accent);
    margin-bottom: 20px;
}

.mengine-description {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--navy-footer);
    padding: 60px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.footer-company {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 5px;
    line-height: 1.2;
}

.footer-company-en {
    font-size: 14px;
    color: var(--teal-accent);
    letter-spacing: 2px;
    line-height: 1.2;
}

.footer-info {
    text-align: right;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero-vision {
        font-size: clamp(16px, 4vw, 28px);
        max-width: 100vw;
        padding: 0 20px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-logo {
        width: 80px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .mengine-logo {
        font-size: 60px;
    }

    .mengine-title {
        font-size: 36px;
    }

    .mengine-subtitle {
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        justify-content: center;
    }

    .footer-company-info {
        margin-top: 10px;
    }

    .footer-info {
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-vision {
        font-size: 36px;
    }

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