/* app/assets/stylesheets/marketing.css */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.home-page {
    min-height: 100vh;
}

.hero {
    background:
            radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 35%),
            radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 30%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 24px 24px 72px;
}

.topbar {
    max-width: 1120px;
    margin: 0 auto 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

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

.nav-link {
    color: #475569;
    font-weight: 500;
}

.nav-link:hover {
    color: #0f172a;
}

.hero-content {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    margin: 0 0 18px;
    font-size: 3.4rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
    max-width: 700px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
}

.subtitle {
    max-width: 640px;
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.signup-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.signup-button {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18);
}

.signup-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.signup-button.small {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
}

.secondary-button {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #dbe2ea;
}

.secondary-button:hover {
    background: #f8fafc;
}

.microcopy {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

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

.code-window {
    width: 100%;
    max-width: 460px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.code-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.code-window pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.arrow {
    text-align: center;
    font-size: 1.5rem;
    margin: 12px 0;
    color: #60a5fa;
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 24px;
}

.section.alt {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    max-width: 100%;
}

.section.alt .section-heading,
.section.alt .feature-grid {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.95rem;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
}

.steps,
.feature-grid {
    display: grid;
    gap: 24px;
}

.steps {
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
    grid-template-columns: repeat(2, 1fr);
}

.step-card,
.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.step-card h3,
.feature-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 1.15rem;
}

.step-card p,
.feature-card p {
    margin: 0;
    color: #64748b;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #dbeafe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section {
    padding: 88px 24px 100px;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 56px 32px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.cta-box h2 {
    margin: 0 0 14px;
    font-size: 2.1rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.cta-box p {
    margin: 0 auto 24px;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

.cta-box .signup-button {
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
}

.cta-box .signup-button:hover {
    background: #e5e7eb;
}

@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .steps,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .nav-actions {
        flex-wrap: wrap;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section,
    .cta-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-box {
        padding: 40px 22px;
    }

    .cta-box h2 {
        font-size: 1.7rem;
    }
}

/* Language switch */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.lang-switch button {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Language visibility */
.lang {
    display: none;
}

.home-page[data-lang="nl"] .lang.nl {
    display: block;
}

.home-page[data-lang="en"] .lang.en {
    display: block;
}

/* Small tweak */
.endpoint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}