* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo span {
    color: #60a5fa;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #3b82f6;
}

.btn-primary {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-cancel {
    background: #475569;
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 4rem 5% 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #60a5fa;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.features {
    padding: 4rem 5%;
    background: #0f1a2e;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(59,130,246,0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.feature-icon {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer {
    background: #0a1220;
    padding: 3rem 5% 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(59,130,246,0.2);
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-section p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: #60a5fa;
}

.footer-section a:hover {
    text-decoration: underline !important;
    color: #60a5fa !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.made-with-love {
    margin-top: 0.5rem;
}

.made-with-love i {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modal with text content */
.modal-large-text {
    max-width: 600px !important;
}

.modal-text-content {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.modal-text-content h3 {
    margin: 1rem 0 0.5rem 0;
    color: #60a5fa;
    font-size: 1rem;
}

.modal-text-content p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    padding: 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-family: inherit;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #3b82f6;
}

.modal-content button {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
}

.modal-switch {
    text-align: center;
    margin-top: 1rem;
    color: #94a3b8;
    cursor: pointer;
}

.modal-switch span {
    color: #60a5fa;
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.phone-input-group select {
    width: 35%;
    margin-bottom: 0;
}

.phone-input-group input {
    width: 65%;
    margin-bottom: 0;
}

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: #60a5fa;
    font-size: 0.75rem;
    text-decoration: none;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions button {
    flex: 1;
    margin-top: 0;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2rem; 
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .navbar { 
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }
    
    /* Hide "Get Started" button on mobile nav - only show Sign In */
    .nav-buttons .btn-primary {
        display: none;
    }
    
    /* Make Sign In button full width on mobile if needed */
    .nav-buttons .btn-outline {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .phone-input-group select,
    .phone-input-group input {
        width: 100%;
    }
    
    .modal-large-text {
        max-width: 95% !important;
    }
    
    .modal-text-content {
        max-height: 300px;
    }
}

/* For very small screens (below 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .btn-outline {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .btn-large {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.65rem;
    }
}

/* Date of Birth form row styling */
.form-row-dob {
    margin-bottom: 1rem;
}

.form-row-dob label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.form-row-dob input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-family: inherit;
}

.form-row-dob input:focus {
    outline: none;
    border-color: #3b82f6;
}