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

:root {
    --primary-color: #0A2540;
    --primary-hover: #1A3550;
    --text-primary: #0A2540;
    --text-secondary: #425466;
    --bg-primary: #ffffff;
    --bg-secondary: #F7F9FC;
    --border-color: #E3E8EE;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --beige-light: #efe6dc;
    --beige-mid: #ddd1c6;
    --beige-dark: #cfc2b6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login {
    padding: 8px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.btn-signup {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-signup:hover {
    background: var(--primary-hover);
}

/* Hero Section */
.hero {
    background: radial-gradient(
        circle at center,
        var(--beige-light) 0%,
        var(--beige-mid) 45%,
        var(--beige-dark) 100%
    );
    padding: 120px 24px 180px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    background-image: url('/static/index_images/David.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 1;
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    text-align: left;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero p {
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

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

.btn-primary {
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(10, 37, 64, 0.05);
}

/* Section Styles */
section {
    padding: 100px 24px;
}

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.section-intro {
    font-size: 20px;
    line-height: 1.7;
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 60px;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-top: 60px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    line-height: 48px;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Gesture Gallery Carousel */
.gesture-gallery {
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.gesture-track {
    display: flex;
    gap: 48px;
    animation: scroll 30s linear infinite;
}

.gesture-track:hover {
    animation-play-state: paused;
}

.gesture-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.gesture-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    background: transparent;
    padding: 0;
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.3s ease;
}

.gesture-item:hover img {
    transform: scale(1.05);
}

.gesture-name {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 500;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-248px * 9));
    }
}

/* Dual Content Sections */
.dual-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.dual-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.face-overlay-container {
    position: relative;
    display: inline-block;
}

.face-overlay-container img {
    display: block;
}

.face-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.content-text h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Final CTA Section */
.final-cta {
    background: radial-gradient(
        circle at center,
        var(--beige-light) 0%,
        var(--beige-mid) 45%,
        var(--beige-dark) 100%
    );
    padding: 120px 24px;
    text-align: center;
}

.final-cta-quote {
    max-width: 800px;
    margin: 0 auto 60px;
}

.final-cta-quote p {
    font-size: 28px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.final-cta-quote p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.final-cta-quote p.cluster {
    margin-bottom: 8px;
}

.final-cta-quote p.cluster:last-of-type {
    margin-bottom: 24px;
}

.final-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero::before {
        width: 70%;
        opacity: 0.2;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .dual-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .final-cta-quote p {
        font-size: 20px;
    }
}
