/* ===== CSS Variables ===== */
:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --accent: #00CEC9;
    --accent-dark: #00B5B0;
    --dark: #1A1A2E;
    --dark-2: #16213E;
    --gray-900: #0F0F1A;
    --gray-800: #1E1E2F;
    --gray-700: #2D2D3F;
    --gray-600: #3A3A50;
    --gray-500: #6B6B80;
    --gray-400: #9E9EB0;
    --gray-300: #C5C5D0;
    --gray-200: #E4E4EC;
    --gray-100: #F0F0F5;
    --gray-50: #F8F8FC;
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #6C5CE7 0%, #00CEC9 100%);
    --gradient-2: linear-gradient(135deg, #E84393 0%, #6C5CE7 100%);
    --gradient-3: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%);
    --gradient-4: linear-gradient(135deg, #00CEC9 0%, #0984E3 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: rgba(26, 26, 46, 0);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.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);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
    }
    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(108, 92, 231, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 206, 201, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(232, 67, 147, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 30px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    line-height: 1.2;
}

.title-sub {
    display: block;
    font-size: clamp(14px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 8px;
    font-weight: 400;
    margin-top: 8px;
}

.hero-desc {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Hero Stats ===== */
.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* ===== Section Common ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-500);
}

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.about-card {
    padding: 40px 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.about-card:hover {
    transform: translateY(-6px);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.about-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Products ===== */
.products {
    background: var(--gray-50);
}

.product-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    background: var(--white);
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card.hidden {
    display: none;
}

.product-header {
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.product-bg-1 { background: var(--gradient-2); }
.product-bg-2 { background: var(--gradient-4); }
.product-bg-3 { background: var(--gradient-1); }
.product-bg-4 { background: var(--gradient-3); }

.product-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.product-tag-list {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.product-tag-list .tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(8px);
}

.product-body {
    padding: 28px 32px 32px;
}

.product-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.product-type {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.product-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    font-size: 13px;
    color: var(--gray-600);
    padding: 4px 10px;
    background: var(--gray-50);
    border-radius: 6px;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.planning {
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(0, 206, 201, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 206, 201, 0); }
}

.status-text {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== Vision ===== */
.vision {
    background: var(--gray-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 206, 201, 0.1) 0%, transparent 50%);
}

.vision .section-title {
    color: var(--white);
}

.vision .section-desc {
    color: rgba(255, 255, 255, 0.5);
}

.vision .section-tag {
    color: var(--primary-light);
}

.vision-timeline {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 32px;
}

.vision-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 3px solid var(--gray-900);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 92, 231, 0.3);
}

.timeline-phase {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--gray-500);
}

.contact-cta {
    text-align: center;
    padding: 48px 40px;
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.3) 0%, transparent 60%);
}

.contact-cta h3 {
    position: relative;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-cta p {
    position: relative;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 28px;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-slogan {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(4px);
}

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--gray-900);
        flex-direction: column;
        gap: 0;
        padding: 80px 32px 32px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hamburger {
        display: flex;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-num {
        font-size: 28px;
    }

    section {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: row;
        gap: 20px;
    }

    .about-card,
    .timeline-content {
        padding: 24px 20px;
    }

    .product-header {
        padding: 32px 24px;
    }

    .product-body {
        padding: 24px 20px;
    }
}
