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

:root {
    --bg-main: #24273a;
    --bg-secondary: #1e2030;
    --bg-tertiary: #181926;

    --surface-0: #363a4f;
    --surface-1: #494d64;

    --text-main: #cad3f5;
    --text-muted: #a5adcb;
    --text-faint: #8087a2;

    --accent-primary: #8aadf4;
    --accent-secondary: #c6a0f6;

    --border-subtle: rgba(202, 211, 245, 0.08);
}

html[data-theme="latte"] {
    --bg-main: #eff1f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e6e9ef;

    --surface-0: #e6e9ef;
    --surface-1: #dce0e8;

    --text-main: #2c2f33;
    --text-muted: #6b7280;
    --text-faint: #9ca3af;

    --accent-primary: #7c3aed;
    --accent-secondary: #a78bfa;

    --border-subtle: rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg-secondary) 95%, transparent);
    backdrop-filter: blur(10px);
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.17s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: color-mix(in srgb, var(--accent-primary) 85%, black);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 48px 48px;
    background: linear-gradient(
        135deg,
        var(--bg-secondary),
        var(--bg-main)
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 50%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--accent-primary) 15%, transparent),
        transparent 70%
    );
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-text .highlight {
    background: linear-gradient(
        135deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--accent-primary) 15%, transparent);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-mockup {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mockup-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-1);
}

.mockup-content {
    padding: 24px;
}

.mockup-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideIn 0.5s ease;
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #ec4899;
    flex-shrink: 0;
}

.mockup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.mockup-text {
    flex: 1;
}

.mockup-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--accent-secondary);
}

.mockup-msg {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.features {
    padding: 120px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.features-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.features-header p {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.features-list {
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 16px;
}

.why-free {
    background: linear-gradient(
        135deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    padding: 120px 48px;
    color: white;
    text-align: center;
}

.why-free h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.why-free p {
    font-size: 22px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.stats {
    padding: 120px 48px;
    background: var(--bg-secondary);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-item p {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.cta {
    padding: 120px 48px;
    text-align: center;
    background: var(--bg-main);
}

.cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

footer {
    background: var(--bg-tertiary);
    color: var(--text-main);
    padding: 80px 48px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-faint);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--text-main) 10%, transparent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-faint);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-faint);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

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

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

    a {
        color: var(--text-main);
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
        font-weight: 500;
    }

    a::after {
        content: '';
        position: absolute;
        width: 0%;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: var(--accent-primary);
        transition: width 0.3s ease;
    }

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

    a:hover::after {
        width: 100%;
    }

    .nav-links a {
        font-weight: 600;
        letter-spacing: 0.5px;
    }
}
