/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme */
    --bg-color-light: #ffffff;
    --text-color-light: #1a1a1a;
    --primary-color-light: #2563eb;
    --card-bg-light: #ffffff;
    --card-border-light: rgba(0, 0, 0, 0.1);
    --brand-gradient-light: linear-gradient(135deg, #2563eb, #3b82f6);

    /* Dark theme */
    --bg-color-dark: #0f172a;
    --text-color-dark: #e2e8f0;
    --primary-color-dark: #3b82f6;
    --card-bg-dark: #1e293b;
    --card-border-dark: rgba(255, 255, 255, 0.1);
    --brand-gradient-dark: linear-gradient(135deg, #3b82f6, #60a5fa);

    /* Font settings */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "ss02", "cv01", "cv02";
}

body.light-theme {
    --bg-color: var(--bg-color-light);
    --text-color: var(--text-color-light);
    --primary-color: var(--primary-color-light);
    --card-bg: var(--card-bg-light);
    --card-border: var(--card-border-light);
    --brand-gradient: var(--brand-gradient-light);
}

body.dark-theme {
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --primary-color: var(--primary-color-dark);
    --card-bg: var(--card-bg-dark);
    --card-border: var(--card-border-dark);
    --brand-gradient: var(--brand-gradient-dark);
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.theme-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.theme-switcher button:hover {
    opacity: 1;
}

.dark-theme .sun,
.light-theme .moon {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    background: var(--bg-color);
}

.hero-badge {
    background: var(--brand-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    max-width: 800px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
}

.btn-primary::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover::after {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

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

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

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.features::before,
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--card-border), transparent);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.feature-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.feature-item:hover .feature-title::before {
    transform: scale(1.5);
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 1rem;
    font-weight: 400;
}

/* Animation delays for grid items */
.features-grid .feature-item:nth-child(n) {
    animation-delay: calc(0.1s * var(--n, 1));
}

.features-grid .feature-item:nth-child(1) { --n: 1; }
.features-grid .feature-item:nth-child(2) { --n: 2; }
.features-grid .feature-item:nth-child(3) { --n: 3; }
.features-grid .feature-item:nth-child(4) { --n: 4; }
.features-grid .feature-item:nth-child(5) { --n: 5; }
.features-grid .feature-item:nth-child(6) { --n: 6; }
.features-grid .feature-item:nth-child(7) { --n: 7; }
.features-grid .feature-item:nth-child(8) { --n: 8; }
.features-grid .feature-item:nth-child(9) { --n: 9; }
.features-grid .feature-item:nth-child(10) { --n: 10; }
.features-grid .feature-item:nth-child(11) { --n: 11; }
.features-grid .feature-item:nth-child(12) { --n: 12; }
.features-grid .feature-item:nth-child(13) { --n: 13; }
.features-grid .feature-item:nth-child(14) { --n: 14; }
.features-grid .feature-item:nth-child(15) { --n: 15; }
.features-grid .feature-item:nth-child(16) { --n: 16; }
.features-grid .feature-item:nth-child(17) { --n: 17; }

/* Integration Section */
.integration {
    padding: 80px 20px;
    background: var(--bg-color);
    text-align: center;
}

.integration h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--text-color);
}

.integration-logos {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 200px;
    border: 1px dashed var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    padding: 60px 20px;
    background: var(--bg-color);
    text-align: center;
    position: relative;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    font-size: 1.2rem;
    padding: 0.9rem 2.5rem;
    border-radius: 0.6rem;
    font-weight: 600;
    animation: fadeInUp 0.6s ease forwards;
    text-decoration: none;
}

.cta-button.btn-primary::after {
    content: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1,
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -0.03em;
    }
    
    .hero-description {
        font-size: 1.1rem;
        letter-spacing: -0.01em;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features {
        padding: 60px 20px;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .header-controls {
        justify-content: center;
    }

    .feature-description {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
        width: 90%;
    }
} 