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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-white);
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    margin-right: 8px;
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Section */
.section {
    padding: 5rem 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Stack Grid */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stack-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.stack-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.stack-category ul {
    list-style: none;
}

.stack-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #e5e7eb;
}

.stack-category li:last-child {
    border-bottom: none;
}

/* Architecture Flow */
.architecture-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--bg-white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    min-width: 200px;
    transition: all 0.2s;
}

.flow-step:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.flow-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.flow-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
}

.section-dark {
    background: var(--text-main);
    color: white;
}

.section-dark h2 {
    color: white;
}

.section-dark .stat-label {
    color: #d1d5db;
}

/* Footer */
.footer {
    background: var(--text-main);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
    }

    .flow-arrow {
        display: none;
    }

    .architecture-flow {
        flex-direction: column;
        align-items: center;
    }

    .flow-step {
        width: 100%;
        max-width: 350px;
    }
}

@media (min-width: 769px) {
    .architecture-flow::before {
        content: '';
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        height: 2px;
        background: #e5e7eb;
        z-index: 0;
    }

    .flow-step {
        z-index: 1;
    }
}