/* ==================== */
/* CSS Reset & Variables */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching React Native app theme */
    --primary-color: #5b7cff;
    --secondary-color: #00d4aa;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Dark Theme Colors */
    --bg-dark-1: #0a1628;
    --bg-dark-2: #1a2f4d;
    --bg-dark-3: #0f1419;
    --bg-dark-4: #0b1220;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light-gray: #9CA3AF;
    --text-medium-gray: #6B7280;
    --text-dark: #1f2937;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(91, 124, 255, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== */
/* Navigation */
/* ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
}

.logo i {
    color: var(--primary-color);
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--text-light-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-text {
    color: var(--text-light-gray);
    font-size: 14px;
}

.nav-text .link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5fd9 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    background: rgba(91, 124, 255, 0.1);
    border: 1px solid rgba(91, 124, 255, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(-- secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xxl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light-gray);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1f2937;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 8px solid #374151;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: var(--spacing-lg);
}

.app-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(91, 124, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
    line-height: 1.5;
}

.chat-bubble.ai {
    background: linear-gradient(135deg, rgba(91, 124, 255, 0.15) 0%, rgba(0, 212, 170, 0.15) 100%);
    display: flex;
    gap: var(--spacing-sm);
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.08);
    margin-left: var(--spacing-xl);
}

/* ==================== */
/* Features Section */
/* ==================== */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--text-light-gray);
    line-height: 1.7;
}

/* ==================== */
/* How It Works Section */
/* ==================== */
.how-it-works {
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
    align-items: center;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    right: var(--spacing-lg);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(91, 124, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    margin: 0 auto var(--spacing-lg);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-md);
}

.step-card p {
    color: var(--text-light-gray);
    font-size: 14px;
}

.step-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 24px;
}

/* ==================== */
/* CTA Section */
/* ==================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(91, 124, 255, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 18px;
    color: var(--text-light-gray);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.download-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s;
}

.download-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.download-badge i {
    font-size: 32px;
}

.download-badge div {
    text-align: left;
}

.download-badge small {
    display: block;
    font-size: 11px;
    color: var(--text-light-gray);
}

.download-badge span {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    background: var(--bg-dark-3);
    padding: 60px 0 var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.footer-section p {
    color: var(--text-light-gray);
    font-size: 14px;
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-light-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light-gray);
    font-size: 14px;
}

/* ==================== */
/* Signup Page Styles */
/* ==================== */
.signup-section {
    padding: 100px 0 var(--spacing-xxl);
    min-height: 100vh;
}

.signup-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.signup-info {
    position: sticky;
    top: 100px;
}

.info-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.info-content p {
    font-size: 18px;
    color: var(--text-light-gray);
    margin-bottom: var(--spacing-xl);
}

.benefits-list {
    list-style: none;
    margin-bottom: var(--spacing-xxl);
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    font-size: 16px;
}

.benefits-list i {
    color: var(--success-color);
    font-size: 20px;
    flex-shrink: 0;
}

.trust-badges {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 13px;
    font-weight: 600;
}

.trust-badge i {
    color: var(--primary-color);
}

.signup-form-container {
    animation: fadeInUp 0.6s ease-out;
}

.form-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: var(--spacing-xl);
}

.form-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.form-header p {
    color: var(--text-light-gray);
    font-size: 14px;
}

.form-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.optional {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light-gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
}

.form-group label i {
    color: var(--primary-color);
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light-gray);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--text-white);
}

.helper-text {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-light-gray);
}

.checkbox-group {
    margin-bottom: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: var(--spacing-md);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light-gray);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5fd9 100%);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-state {
    text-align: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.message-box {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.message-box.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.message-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.form-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--text-light-gray);
}

.form-footer .link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer .link:hover {
    text-decoration: underline;
}

/* ==================== */
/* Animations */
/* ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .signup-wrapper {
        grid-template-columns: 1fr;
    }
    
    .signup-info {
        position: static;
        text-align: center;
    }
    
    .benefits-list {
        max-width: 500px;
        margin: 0 auto var(--spacing-xxl);
    }
    
    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .form-card {
        padding: var(--spacing-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-content h2 {
        font-size: 32px;
    }
    
    .download-badges {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 420px;
        border: 6px solid #374151;
        border-radius: 32px;
        padding: 10px;
    }
    
    .phone-screen {
        border-radius: 24px;
    }
    
    .app-preview {
        padding: var(--spacing-md);
    }
}
