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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

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

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

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

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

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

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

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

.trust-indicators {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Flow Diagram */
.flow-diagram {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.flow-item {
    background: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 150px;
    box-shadow: var(--shadow-sm);
}

.flow-item .icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.flow-item span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.flow-ai {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--bg-white);
}

.flow-ai span {
    color: var(--bg-white);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.flow-outputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    width: 100%;
}

.flow-output {
    min-width: 100px;
}

/* Problem Section */
.problem {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-white);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    font-size: 1.125rem;
}

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

.problem-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.problem-item h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

/* Solution Section */
.solution {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

.solution h2 {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-xl) auto;
}

.how-it-works {
    margin-bottom: var(--spacing-xl);
}

.how-it-works h3 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

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

.step {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

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

.step h4 {
    margin-bottom: var(--spacing-xs);
}

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

.routing-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.routing-header {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    text-align: center;
}

.routing-targets {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.routing-target {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.routing-target .icon {
    font-size: 1.5rem;
}

.routing-target small {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
}

.features h2 {
    text-align: center;
}

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

.feature {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.feature h3 {
    margin-bottom: var(--spacing-sm);
}

/* Use Cases Section */
.use-cases {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

.use-cases h2 {
    text-align: center;
}

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

.use-case {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.use-case h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.use-case ul {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.use-case ul li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
}

.use-case ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.proof {
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

/* Benefits Section */
.benefits {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
}

.benefits h2 {
    text-align: center;
}

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

.benefit {
    text-align: center;
    padding: var(--spacing-lg);
}

.benefit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.benefit h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* Social Proof Section */
.social-proof {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: var(--bg-white);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

.faq h2 {
    text-align: center;
}

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

.faq-item {
    background: var(--bg-white);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-white);
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
}

.cta-section h2 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
}

.cta-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.cta-form-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.cta-form-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cta-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
}

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

.footer h4 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

.footer h5 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-privacy {
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        text-align: left;
    }

    .cta-buttons {
        justify-content: flex-start;
    }

    .trust-indicators {
        justify-content: flex-start;
    }

    .flow-diagram {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .flow-outputs {
        display: flex;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-forms {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
