/* Context AI - Landing Page */

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #F2F2F7;
    --surface-color: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #6D6D80;
    --border-color: #E5E5EA;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1200px;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand h1 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    /* Match the header background so the icon blends with the top bar */
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: none;
    order: -1; /* Place icon to the left of the title */
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    font-size: 14px;
}

.btn-primary:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

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

.btn-primary-large {
    background: var(--primary-color);
    color: white;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
}

.btn-primary-large:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-cta {
    margin-bottom: 60px;
}

.cta-note {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.proof-icon {
    font-size: 18px;
}

.coming-soon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--warning-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

.proof-separator {
    font-size: 20px;
    font-weight: bold;
    opacity: 0.7;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works */
.how-it-works {
    background: var(--surface-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

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

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Why This Matters */
.why-matters {
    background: var(--background-color);
}

.why-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.why-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.why-content p strong {
    color: var(--primary-color);
    font-weight: 700;
}

.why-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 24px;
}

/* Start Simple */
.start-simple {
    background: var(--surface-color);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 24px;
    border-radius: var(--border-radius);
    background: var(--background-color);
    transition: var(--transition);
}

.timeline-item.active {
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.timeline-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--surface-color);
    box-shadow: var(--shadow);
}

.timeline-item.active .timeline-badge {
    background: var(--primary-color);
    color: white;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Privacy */
.privacy {
    background: var(--background-color);
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-feature {
    background: var(--surface-color);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.privacy-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

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

.privacy-feature p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Get Started */
.get-started {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.get-started h2 {
    color: white;
    margin-bottom: 16px;
}

.get-started p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-actions {
    margin-bottom: 32px;
}

.cta-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.detail {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.detail-icon {
    font-size: 18px;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 32px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 900px) and (min-width: 769px) {
    .steps {
        gap: 24px;
    }
    
    .step h3 {
        font-size: 18px;
    }
    
    .step p {
        font-size: 14px;
    }
    
    .why-benefits {
        gap: 16px;
    }
    
    .benefit {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-proof {
        flex-direction: column;
        gap: 12px;
    }
    
    .proof-separator {
        transform: rotate(90deg);
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .why-benefits {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-features {
        grid-template-columns: 1fr;
    }
    
    .cta-details {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .nav-actions {
        order: -1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 0 80px 0;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn-primary-large {
        padding: 16px 24px;
        font-size: 16px;
    }
}