@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Modern Blue Palette - Aligned with Desktop App */
    --primary: #3b82f6;       /* Desktop App Blue */
    --primary-dark: #2563eb;  /* Desktop Hover Blue */
    --primary-light: #60a5fa; 
    --primary-subtle: #eff6ff;
    
    --secondary: #64748b;
    --accent: #f59e0b;
    
    /* Neutrals */
    --text: #0f172a;          /* Dark Slate */
    --text-light: #64748b;    /* Slate */
    --background: #f9f9fa;    /* Desktop App Body Background */
    --background-alt: #ffffff; /* Desktop App Card Background */
    --border: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05); /* Desktop style shadow */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    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: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
    background: rgba(249, 250, 251, 0.9); /* Match sidebar/header feel */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

.logo .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

/* Ensure buttons in nav-links maintain their button colors */
.nav-links a.btn-primary,
.nav-links a.btn-outline {
    color: white !important;
}

.nav-links a.btn-primary:hover,
.nav-links a.btn-outline:hover {
    color: white !important;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(180deg, var(--background) 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    max-width: 540px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1.5px;
}

.hero .lead {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background-alt); /* White background for contrast */
}

.features h2, .pricing h2, .faq h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--background); /* Slight contrast with section bg */
    border-radius: 12px; /* Aligned with desktop app styling */
    border: 1px solid var(--border);
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    background: var(--primary-subtle);
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
    align-items: start;
}

.pricing-card {
    background: var(--background-alt);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 56px;
    font-weight: 800;
    margin: 32px 0;
    color: var(--text);
    line-height: 1;
}

.price span {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

.price-period {
    font-size: 14px;
    color: var(--text-light);
    margin-top: -24px;
    margin-bottom: 24px;
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin: 32px 0;
    text-align: left;
    padding: 0 16px;
}

.pricing-card ul li {
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
    margin-right: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px; /* Aligned with desktop app styling */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 15px;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
    background: #e2e8f0; /* Lighter gray hover */
    color: var(--text);
}

.btn-outline {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
}

.btn-outline:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

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

.cta-buttons {
    display: flex;
    gap: 16px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--background-alt);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 64px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--background);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: var(--text-light);
    font-size: 20px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: var(--background);
}

.auth-card {
    background: var(--background-alt);
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.auth-card h1 {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 700;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.auth-form {
    margin-top: 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px; /* Aligned with desktop inputs */
    font-size: 15px;
    transition: all 0.2s;
    background: var(--background-alt);
    color: var(--text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.error-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.form-hint {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 8px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

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

.auth-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-light);
    font-size: 14px;
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-image {
        margin-top: 40px;
    }
    
    .hero h1 {
        font-size: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
    }

    .navbar .container {
        flex-direction: column;
    }

    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
