:root {
    scroll-behavior: smooth;
    /* Enable smooth scrolling globally */
    --primary-color: #007AFF;
    --primary-dark: #0056b3;
    --background-color: #F5F5F7;
    --surface-color: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --border-color: #E5E5EA;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--surface-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Context for absolute logo */
    min-height: 50px;
    /* Ensure minimum height */
}

.nav-logo {
    height: 88px;
    /* 2x original 44px */
    width: auto;
    border-radius: 20px;
    /* Scaled radius */
    position: absolute;
    top: 5px;
    left: 0;
    z-index: 1010;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    /* Slightly reduced shadow */
}

/* Push the button to the right since logo is absolute */
.navbar-content .btn {
    margin-left: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: var(--text-primary);
    color: var(--surface-color);
}

.btn-sm:hover {
    background: #000;
    transform: scale(1.02);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-left: 12px;
}

.btn-secondary:hover {
    background: var(--background-color);
}

/* Hero Section */
.hero {
    padding: 60px 0 60px;
    background: linear-gradient(to bottom, #fff, #f5f5f7);
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    max-width: 900px;
}

.gradient-text {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.trust-badge {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 16px;
    border-radius: 20px;
}

.trust-icon {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.hero-image-wrapper {
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.hero-img {
    max-width: 800px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--surface-color);
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--surface-color);
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

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

/* Zigzag Layout */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    /* Using gap purely for spacing */
    margin-bottom: 160px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1.2;
    max-width: none;
    padding: 0;
    /* Removed conditional padding */
}

/* Removed .icon-box styles */

.feature-text h3 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.feature-text p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.feature-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-image img {
    max-width: 100%;
    width: 280px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 6px solid #111;
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: translateY(-10px);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--background-color);
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.gallery-item {
    background: var(--surface-color);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.gallery-item p {
    font-weight: 600;
}

/* Footer */
footer {
    padding: 100px 0 60px;
    background: #000;
    color: white;
    text-align: center;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.footer-content p {
    color: #888;
}

.footer-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .feature-row {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        margin-bottom: 100px;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-text {
        margin: 0 auto;
        padding-right: 0;
        text-align: center;
    }

    .feature-image img {
        width: 70%;
        max-width: 300px;
    }
}

/* Lead Gen Form Section */
.join-test-section {
    padding: 100px 0;
    color: var(--text-primary);
    background: var(--background-color);
    /* Light grey contrast */
    text-align: center;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    text-align: left;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.form-container p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--background-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 16px;
}