/* AutoDrafter Landing Page Styles - Professional Theme */

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

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a87;
    --primary-dark: #0f2840;
    --accent: #3d7ab8;
    --accent-light: #5a9ad4;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --bg-medium: #e9ecef;
    --white: #ffffff;
    --border: #d1d5db;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.signup-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.signup-btn:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    margin-top: 56px;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-button {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

.cta-button-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Section Styling */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Whitepapers Section */
.whitepapers-section {
    background: var(--bg-light);
    padding: 2.5rem 0;
}

.whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.whitepaper-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
}

.whitepaper-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.whitepaper-volume {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.whitepaper-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.whitepaper-card p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.whitepaper-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
}

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

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.step {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    flex: 1;
    max-width: 240px;
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
}

.step-connector {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid var(--primary);
    margin-top: 2.5rem;
    background: transparent;
}

/* Features Grid - Single column stacked layout */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.feature-card.featured {
    border-color: var(--accent);
}

.feature-badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-lead {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.feature-details {
    list-style: none;
    padding: 0;
}

.feature-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-medium);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.feature-details li:last-child {
    border-bottom: none;
}

.feature-details strong {
    color: var(--text-dark);
}

.feature-note {
    font-size: 0.75rem;
    color: var(--accent);
    font-style: italic;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Model Flexibility Section */
.model-flexibility {
    background: var(--white);
}

.flexibility-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.flex-point {
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.flex-point h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.flex-point p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Comparison Section */
.comparison-section {
    background: var(--bg-light);
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:nth-child(even) {
    background: var(--bg-light);
}

.comparison-cell {
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
}

.comparison-header .comparison-cell {
    padding: 1rem;
    justify-content: center;
}

.comparison-header .comparison-cell:first-child {
    justify-content: flex-start;
}

.comparison-row .comparison-cell:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.comparison-row .comparison-cell:not(:first-child) {
    justify-content: center;
    text-align: center;
}

.comparison-cell.success {
    color: #059669;
}

.comparison-cell.failure {
    color: #dc2626;
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button-large {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button-large:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 2rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.125rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.footer-links h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

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

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
}

.close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

.login-submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-submit-btn:hover {
    background: var(--primary-dark);
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-footer p {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.modal-footer a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .whitepapers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .nav-menu {
        display: none;
    }

    .whitepapers-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    .step-connector {
        width: 0;
        height: 0;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 20px solid var(--primary);
        margin: 0;
        background: transparent;
    }

    .flexibility-points {
        grid-template-columns: 1fr;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-cell {
        border-bottom: 1px solid var(--border);
        padding: 0.75rem;
        justify-content: flex-start;
    }

    .comparison-row .comparison-cell:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Additional mobile fixes */
    .nav-container {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }

    .nav-auth {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .cta-button,
    .hero-cta .cta-button-secondary {
        width: 100%;
        text-align: center;
    }

    .section-container {
        padding: 0 1rem;
    }

    .cta-section {
        padding: 1.5rem 1rem;
    }

    .modal-content {
        width: 95%;
        max-width: none;
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .login-btn, .signup-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}
