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

/* Root Variables - Simplified per Dieter Rams */
:root {
    --primary: #0066cc;
    --text: #000000;
    --text-secondary: #666666;
    --bg: #ffffff;
    --border: #e5e7eb;

    /* Missing variables needed for modals and buttons */
    --bg-surface: #ffffff;
    --bg-white: #ffffff;
    --text-primary: #000000;
    --text-muted: #999999;
    --primary-blue: #635bff;
    --primary-blue-hover: #4f46e5;
    --primary-teal: #1a7a72;
    --accent-purple: #8b5cf6;
    --accent-coral: #ff6b6b;
    --bg-teal-light: #f0fdfa;

    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* Base Styles */
html {
    scroll-behavior: auto; /* Remove smooth scroll - unnecessary */
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    cursor: pointer;
}

.logo-image {
    height: 32px;
    width: auto;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.3);
}

.nav-cta:hover {
    background: var(--primary-blue-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--accent-purple);
    color: var(--bg-white);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background: rgba(99, 91, 255, 0.05);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    position: relative;
    text-align: center;
    background: var(--bg-white);
    background-image: radial-gradient(circle at 50% 20%, rgba(99, 91, 255, 0.03) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.highlight-finally {
    color: var(--primary-blue);
    position: relative;
}

.highlight-finally::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 3px;
    z-index: -1;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px; /* Reduced from 80px */
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/* Demo Frame */
.demo-frame {
    max-width: 500px;
    width: 100%;
    margin: 20px auto 0; /* Reduced from 40px */
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--primary-blue);
    color: var(--bg-white);
}

.traffic-lights {
    display: flex;
    gap: 6px;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.light.red { background: #ff5f57; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #28ca42; }

.popup-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-white);
}

.popup-content {
    padding: 24px;
}

.query {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(99, 91, 255, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
}

.answer {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-pill {
    background: var(--bg-surface);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-surface);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-top: 60px;
}

.step {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-top: 4px dashed var(--accent-coral);
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26, 122, 114, 0.12);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-coral);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

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

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-teal);
    box-shadow: 0 8px 32px rgba(26, 122, 114, 0.15);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card h3::before {
    content: '●';
    color: var(--primary-teal);
    font-size: 24px;
}

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

/* Privacy Trust Section */
.privacy-trust {
    padding: 100px 0;
    background: var(--bg-teal-light);
}

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

.trust-icon {
    color: var(--primary-teal);
    margin-bottom: 24px;
}

.trust-content h2 {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    text-align: left;
}

.trust-point {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.trust-point strong {
    color: var(--text-primary);
}

/* Pricing */
.pricing {
    padding: 80px 0;
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible; /* Fix card overflow */
    align-items: stretch; /* Ensure cards stretch to match height */
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(99, 91, 255, 0.15);
    align-self: stretch;
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.popular-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.3);
    z-index: 10;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.price span {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 24px;
}

.features-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
    font-size: 14px;
}

.features-list li::before {
    content: "✓";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 12px;
}

/* CTA Band */
.cta-band {
    padding: 80px 0;
    background: var(--primary-teal);
    text-align: center;
}

.cta-band h2 {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--bg-white);
}

.cta-band .btn-primary {
    background: var(--bg-white);
    color: var(--primary-teal);
}

.cta-band .btn-primary:hover {
    background: var(--bg-surface);
    color: var(--primary-teal);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo-image {
    height: 96px;
    width: auto;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link {
        display: none; /* Hide nav links on mobile, show only CTA */
    }

    @media (min-width: 540px) {
        .nav-link {
            display: block;
        }
    }
    .nav-container {
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
    }

    .demo-frame {
        margin-top: 16px;
    }

    .demo-frame iframe {
        height: 450px; /* Smaller on mobile */
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-grid {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 16px;
    }

    .pricing-card.featured {
        transform: none;
        scale: 1;
    }

    .pricing-card {
        margin: 0;
    }

    .trust-points {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .hero-title {
        font-size: clamp(32px, 7vw, 48px);
        line-height: 1.2;
    }

    .cta-band h2 {
        font-size: clamp(28px, 6vw, 36px);
    }
}