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

/* ===== Custom Properties ===== */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #1a1a2e;
    --accent: #16213e;
    --text: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --border: #2a2a3e;
    --success: #4caf50;
    --gradient: linear-gradient(135deg, #ff6b35 0%, #ff8f65 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Styles ===== */
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 80px 0; }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.download-platforms {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.platform-btn {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
}
.platform-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.platform-btn.windows:hover {
    border-color: #0078d4;
}
.platform-btn.mac:hover {
    border-color: #a0a0a0;
}
.platform-icon {
    font-size: 2.5rem;
}
.platform-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.platform-text strong {
    color: var(--text);
    font-size: 1.1rem;
}
.platform-text small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===== Header/Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-weight: 500;
    color: var(--text-light);
}
.nav-links a:hover { color: var(--primary); }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22, 33, 62, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
}

/* ===== Steps Section ===== */
.steps { background: var(--bg-dark); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.step-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: #fff;
}
.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.step-card p {
    color: var(--text-light);
}
.step-arrow {
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary);
}
.step-card:last-child .step-arrow { display: none; }

/* ===== Features Section ===== */
.features {
    background: var(--gradient-dark);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Why Local Section ===== */
.why-local { background: var(--bg-dark); }
.why-local-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.why-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}
.why-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.why-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.why-card p {
    color: var(--text-light);
}
.data-flow {
    margin-top: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.data-box {
    text-align: center;
    padding: 1.5rem;
}
.data-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.data-box ul {
    list-style: none;
    color: var(--text-light);
}
.data-box li { padding: 0.3rem 0; }
.data-arrow {
    font-size: 2rem;
    color: var(--primary);
}

/* ===== Use Cases Section ===== */
.use-cases { background: var(--gradient-dark); }
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.use-case-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}
.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.use-case-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.use-case-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== FAQ Section ===== */
.faq { background: var(--bg-dark); }
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}
.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}
.faq-answer ol {
    padding-left: 1.5rem;
}
.faq-answer li {
    margin-bottom: 0.5rem;
}

/* ===== CTA Section ===== */
.cta {
    background: var(--gradient);
    text-align: center;
    padding: 60px 0;
}
.cta h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}
.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.cta .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}
.cta .btn:hover {
    background: var(--secondary);
    color: #fff;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.footer-links a {
    color: var(--text-light);
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .hero-visual { order: -1; }
    .hero-image { max-width: 300px; font-size: 5rem; }

    .section-title { font-size: 1.8rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-arrow { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .why-local-grid { grid-template-columns: 1fr; }
    .use-cases-grid { grid-template-columns: repeat(2, 1fr); }

    .data-flow { flex-direction: column; gap: 1rem; }
    .data-arrow { transform: rotate(90deg); }

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

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.5rem; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
    .use-cases-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
