/* Import Inter font for professional typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties for consistent theming */
:root {
    --brand-primary: #0e7afe;
    --brand-secondary: #0856d1;
    --brand-light: #e7f3ff;
    --text-dark: #0b1220;
    --text-muted: #5d6b82;
    --text-light: #8b92a5;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-light: #e9eef5;
    --background-subtle: #fafbfc;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-subtle: linear-gradient(135deg, rgba(14, 122, 254, 0.05) 0%, rgba(14, 122, 254, 0.02) 100%);
    --gradient-hero: radial-gradient(circle at 30% 20%, rgba(14, 122, 254, 0.08) 0%, transparent 50%), 
                     radial-gradient(circle at 80% 80%, rgba(14, 122, 254, 0.06) 0%, transparent 50%),
                     linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* Base HTML & Typography */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
    margin-bottom: 0; /* Remove default margin-bottom */
    position: relative;
    min-height: 100vh;
}

/* Enhanced Focus Styles */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(14, 122, 254, 0.3);
    outline: none;
}

/* Professional Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light) !important;
    padding: 0.75rem 0;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-primary) !important;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.navbar-brand:hover {
    color: var(--brand-secondary) !important;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-primary) !important;
    background: var(--brand-light);
}

.navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
    background: var(--brand-light);
}

/* Enhanced Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-width: 1px;
}

.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

/* Form Controls */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 122, 254, 0.1);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Enhanced Cards */
.card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* Professional Footer */
.footer {
    background: var(--background-subtle);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: auto;
    color: var(--text-muted);
}

.footer a {
    color: var(--brand-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* INDEX PAGE SPECIFIC STYLES */

/* Typography & Base Styles */
.display-6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-dark);
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Header Styling */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-logo:hover {
    color: var(--brand-secondary);
    text-decoration: none;
}

.badge-early-access {
    background: var(--brand-light);
    color: var(--brand-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(14, 122, 254, 0.2);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230e7afe' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-brand {
    color: var(--brand-primary) !important;
}

/* Feature List - Fixed checkmark issue */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: "?"; /* Using a different checkmark character */
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1;
}

/* Alternative approach using SVG if the character still doesn't work */
.feature-list.use-svg li::before {
    content: "";
    background: var(--success) url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e") center/10px no-repeat;
}

/* CTA Button */
.btn-primary-custom {
    background: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary-custom:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

/* Signup Card */
.signup-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-large);
    position: relative;
    backdrop-filter: blur(10px);
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 16px 16px 0 0;
}

.signup-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.signup-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.signup-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Form Styling */
.form-control-custom {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control-custom:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 122, 254, 0.1);
    outline: none;
}

.form-label-custom {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.btn-submit {
    background: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    color: white;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.success-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Footer Section */
.footer-note {
    background: #fafbfc;
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Privacy Checkbox */
.form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.form-check-input-custom {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-check-label-custom {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.form-check-label-custom a {
    color: var(--brand-primary);
    text-decoration: none;
}

.form-check-label-custom a:hover {
    text-decoration: underline;
}

/* Data Promise */
.data-promise {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* PRIVACY PAGE STYLES */
.privacy-page {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    min-height: 80vh;
}

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.privacy-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.privacy-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.privacy-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    line-height: 1.7;
}

.privacy-content h5 {
    color: var(--brand-primary);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.privacy-content h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.privacy-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.privacy-content a {
    color: var(--brand-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.privacy-content a:hover {
    border-bottom-color: var(--brand-primary);
}

.legal-disclaimer {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.back-to-home {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.btn-home {
    background: var(--brand-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-home:hover {
    background: var(--brand-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        border-radius: 0;
        border-bottom: 1px solid transparent;
    }

    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }

    .signup-card {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .btn-primary-custom {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .privacy-content {
        padding: 2rem 1.5rem;
    }

    .privacy-title {
        font-size: 2.25rem;
    }
}

/* Utility Classes */
.text-brand {
    color: var(--brand-primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-subtle {
    background-color: var(--background-subtle) !important;
}

.border-subtle {
    border-color: var(--border-light) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-soft) !important;
}

.shadow-medium {
    box-shadow: var(--shadow-medium) !important;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
}

/* Enhanced Validation Styles */
.text-danger {
    color: var(--danger) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Smooth Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.field-focused {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Honeypot */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for better accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-subtle);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.educate .h5 {
    letter-spacing: 0.2px;
}

.educate ul {
    padding-left: 1.1rem;
}

.feature-list li {
    margin-bottom: .4rem;
}

.btn-primary-custom, .btn-submit {
    font-weight: 600;
}

.success-state .success-title {
    margin-bottom: .25rem;
}
.invite-note {
    font-style: italic;
}

.testimonial {
    font-size: 0.9rem;
    line-height: 1.4;
}
