/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
}

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

/* Navigation */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #C2CAF3 0%, rgba(194, 202, 243, 0.6) 60%, #ffffff 100%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: clamp(180px, 22vw, 280px);
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #5820F7;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.hero-subline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #888DA6;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.welcome {
    color: #5820F7;
    display: block;
    font-weight: 600;
}

.main-text {
    color: #000000;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    font-family: 'Inter', sans-serif;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.hero-microcopy {
    color: #888DA6;
    font-size: 0.95rem;
    margin-top: 1rem;
    text-align: center;
}

/* Tagline Section */
.tagline {
    padding: 60px 0;
    text-align: center;
    background: #fafafa;
}

.tagline h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: #000000;
}

.tagline p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #888DA6;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Sections */
.feature {
    padding: 80px 0;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

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

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    color: #000000;
}

.feature-text p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #888DA6;
    line-height: 1.8;
}

.feature-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    display: block;
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 32, 247, 0.20) 0%, rgba(88, 32, 247, 0.08) 100%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
}

/* Spark Connector */
.spark-connector {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.spark-icon {
    width: 300px;
    height: auto;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #A9B1EB 15%, #C2CAF3 85%);
    color: white;
    padding: 30px 0 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    margin-top: -10px;
}

.logo-img-footer {
    height: 240px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    padding-top: 50px;
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    font-family: 'Inter', sans-serif;
    color: #5820F7;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #000000;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #000000;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overscroll-behavior: contain;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-group > label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Focus Accessibility */
.btn:focus-visible,
.modal-close:focus-visible,
.submit-btn:focus-visible,
.nav-links a:focus-visible,
.form-group input:focus-visible {
    outline: 3px solid rgba(88, 32, 247, 0.35);
    outline-offset: 2px;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo-img {
        width: 200px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 16px;
        padding: 10px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Mobile-specific welcome text - LARGER and more prominent */
    .welcome-text {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
    }

    /* Mobile-specific main text - smaller for balance */
    .main-text {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .hero-subline {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 14px;
        flex: 1;
        min-width: 140px;
        max-width: 180px;
    }

    .hero-microcopy {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }

    .feature-content,
    .feature-reverse .feature-content {
        flex-direction: column;
        gap: 40px;
    }

    /* IMPROVED MOBILE FOOTER */
    .footer {
        padding: 40px 0 50px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        margin-top: 0;
        margin-bottom: 10px;
    }

    /* Larger logo on mobile */
    .logo-img-footer {
        height: 160px;
        width: auto;
    }

    /* Footer links in one clean row */
    .footer-links {
        padding-top: 0;
        gap: 40px;
        width: 100%;
        justify-content: center;
        flex-direction: row;
    }

    .footer-column {
        min-width: 0;
        flex-shrink: 0;
    }

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 14px;
    }

    .footer-column li {
        margin-bottom: 8px;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal h2 {
        font-size: 1.5rem;
    }
}