:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #0F172A;
    --text-main: #1E293B;
    --text-light: #64748B;
    --bg-body: #F8FAFC;
    --bg-white: #FFFFFF;
    --border: #E2E8F0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Feature Colors */
    --color-blue: #3B82F6;
    --color-green: #10B981;
    --color-purple: #8B5CF6;
    --color-orange: #F59E0B;
    --color-red: #EF4444;
    --color-teal: #14B8A6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

section {
    padding: 80px 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary);
    display: flex;
}

.desktop-nav {
    display: none;
}

.desktop-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 0 16px;
}

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

.header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}

.btn-secondary:hover {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.btn-white {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 50%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.06), transparent 50%),
                linear-gradient(180deg, var(--bg-body) 0%, rgba(248, 250, 252, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(67, 56, 202, 0.1) 100%);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.visual-card {
    padding: 20px;
}

.card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

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

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.line {
    height: 8px;
    background-color: var(--bg-body);
    border-radius: 4px;
    width: 100%;
}

.line.short {
    width: 60%;
}

.chart-placeholder {
    height: 120px;
    margin-top: 10px;
    background-color: rgba(79, 70, 229, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.chart-line {
    width: 100%;
    height: 100%;
    color: var(--primary);
}

/* Features Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.card {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box.blue { background-color: rgba(59, 130, 246, 0.1); color: var(--color-blue); }
.icon-box.green { background-color: rgba(16, 185, 129, 0.1); color: var(--color-green); }
.icon-box.purple { background-color: rgba(139, 92, 246, 0.1); color: var(--color-purple); }
.icon-box.orange { background-color: rgba(245, 158, 11, 0.1); color: var(--color-orange); }
.icon-box.red { background-color: rgba(239, 68, 68, 0.1); color: var(--color-red); }
.icon-box.teal { background-color: rgba(20, 184, 166, 0.1); color: var(--color-teal); }

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tools Section */
.tools-section {
    background-color: var(--bg-white);
}

.tool-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: var(--bg-body);
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 500;
    color: var(--text-main);
}

.tool-item:hover {
    background-color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.tool-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.tool-item:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--bg-white) 0%, #fafbfc 100%);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    border-radius: 0 0 4px 4px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 300px;
    margin-bottom: 20px;
}

.version-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.version-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(100, 116, 139, 0.1);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
}

.version-badge.primary {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.company-info {
    margin-top: 20px;
}

.company-name {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    margin: 0;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.download-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.download-link svg {
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 8px 0;
}

.icp-number {
    font-size: 0.8rem;
}

.icp-number a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.icp-number a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 90%;
    width: 420px;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content.large {
    width: 840px;
    max-width: 95%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
    background-color: var(--bg-body);
}

.close-modal:hover {
    color: var(--secondary);
    background-color: var(--border);
    transform: rotate(90deg);
}

.modal h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary);
}

.modal p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.qr-code {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.modal-version {
    margin-top: 20px;
}

.version-tag {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(67, 56, 202, 0.1) 100%);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 24px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* App Download Modal */
.download-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 36px 0;
}

.download-card {
    padding: 32px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.download-card:hover::before {
    opacity: 1;
}

.download-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    border-color: var(--border);
}

.download-card.disabled::before {
    opacity: 0;
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(67, 56, 202, 0.1) 100%);
    border-radius: 20px;
    transition: var(--transition);
}

.download-card:hover .platform-icon {
    transform: scale(1.1);
}

.download-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.download-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.download-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    border-color: var(--border);
}

.download-card.disabled::before {
    opacity: 0;
}

.coming-soon {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, rgba(71, 85, 105, 0.1) 100%);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 24px;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.modal-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature-item svg {
    color: var(--color-green);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .modal-features {
        flex-direction: column;
        gap: 12px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        padding-top: 32px;
    }

    .modal-content {
        padding: 32px 24px;
        width: 90%;
    }

    .modal-content.large {
        width: 90%;
    }

    .download-options {
        gap: 16px;
    }

    .download-card {
        padding: 24px;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }

    .header-actions {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .hero .container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero-content {
        max-width: 50%;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        margin-left: 0;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .hero-visual {
        margin-top: 0;
        max-width: 45%;
    }

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

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

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

    .download-options {
        grid-template-columns: 1fr 1fr;
    }
}
