/* Landing Page Styles — AgilePIM */

/* ── Reset for landing ── */
.landing-body {
    background-color: #fff;
    overflow-x: hidden;
}

.landing-body .container > main {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

/* ── Navigation ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(42, 63, 95, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 200ms ease;
}

.landing-nav-brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-nav-brand svg {
    filter: brightness(0) invert(1);
}

/* ── Hero ── */
.landing-hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(160deg, #1E2D44 0%, #2A3F5F 40%, #34506E 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.landing-hero::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.landing-hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.hero-graphic {
    position: relative;
}

.hero-graphic svg {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.2));
}

/* ── Sections ── */
.landing-section {
    padding: 5rem 0;
}

.landing-section-alt {
    background-color: var(--winter-surface-alt, #F3F6FA);
}

.landing-section-dark {
    background: linear-gradient(160deg, #1E2D44 0%, #2A3F5F 100%);
    color: #fff;
}

.landing-section-dark h2,
.landing-section-dark h3,
.landing-section-dark h4 {
    color: #fff;
}

.landing-section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--winter-primary, #3B82C4);
    margin-bottom: 0.5rem;
}

.landing-section-dark .section-label {
    color: var(--winter-accent, #4A9BAF);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--winter-text-muted, #64748B);
    max-width: 640px;
}

.landing-section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Workflow Steps ── */
.workflow-steps {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.workflow-step {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    text-align: center;
    position: relative;
}

.workflow-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: var(--winter-primary-light, #DCEAF7);
    color: var(--winter-primary, #3B82C4);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.workflow-step:hover .workflow-step-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 196, 0.2);
}

.workflow-step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--winter-primary, #3B82C4);
    margin-bottom: 0.25rem;
}

.workflow-step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.workflow-step p {
    font-size: 0.875rem;
    color: var(--winter-text-muted, #64748B);
    margin: 0;
}

.workflow-connector {
    position: absolute;
    top: 36px;
    right: -1.25rem;
    color: var(--winter-border, #D1DDED);
    font-size: 1.25rem;
}

/* ── Feature Cards ── */
.feature-card {
    padding: 2rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid var(--winter-border, #D1DDED);
    height: 100%;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 63, 95, 0.1);
}

.landing-section-alt .feature-card {
    background: #fff;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--winter-primary-light, #DCEAF7);
    color: var(--winter-primary, #3B82C4);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--winter-text-muted, #64748B);
    margin: 0;
}

/* Icon color variants */
.feature-card-icon.accent {
    background: #E0F2F1;
    color: #00897B;
}

.feature-card-icon.warm {
    background: #FFF3E0;
    color: #EF6C00;
}

.feature-card-icon.purple {
    background: #EDE7F6;
    color: #5E35B1;
}

.feature-card-icon.rose {
    background: #FCE4EC;
    color: #C62828;
}

.feature-card-icon.teal {
    background: #E0F7FA;
    color: #00838F;
}

/* ── Illustration panels ── */
.illustration-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-panel svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* ── Channel flow ── */
.channel-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.channel-node {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 140px;
}

.channel-node i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.channel-node span {
    font-size: 0.875rem;
    font-weight: 500;
}

.channel-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
}

/* ── Pricing ── */
.pricing-card {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--winter-border, #D1DDED);
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 63, 95, 0.12);
}

.pricing-card.featured {
    border: 2px solid var(--winter-primary, #3B82C4);
    position: relative;
    box-shadow: 0 8px 24px rgba(59, 130, 196, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--winter-primary, #3B82C4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--winter-primary, #3B82C4);
    margin: 1rem 0 0.25rem;
}

.pricing-card .price-period {
    font-size: 0.875rem;
    color: var(--winter-text-muted, #64748B);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    border-bottom: 1px solid var(--winter-primary-lighter, #EFF5FB);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #16a34a;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pricing-features li .text-muted {
    color: var(--winter-text-muted, #64748B) !important;
    font-size: 0.8125rem;
}

/* ── Developer section ── */
.code-window {
    background: #1a1a2e;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.code-window-header {
    background: #16213e;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.code-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-window-dot.red { background: #ff5f57; }
.code-window-dot.yellow { background: #febc2e; }
.code-window-dot.green { background: #28c840; }

.code-window-body {
    padding: 1.25rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-window-body .kw { color: #c792ea; }
.code-window-body .fn { color: #82aaff; }
.code-window-body .str { color: #c3e88d; }
.code-window-body .cm { color: #546e7a; }
.code-window-body .op { color: #89ddff; }
.code-window-body .num { color: #f78c6c; }

/* ── Environments ── */
.env-visual {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.env-box {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 2px dashed;
}

.env-box.dev { border-color: #4A9BAF; color: #4A9BAF; background: rgba(74, 155, 175, 0.08); }
.env-box.staging { border-color: #EF6C00; color: #EF6C00; background: rgba(239, 108, 0, 0.08); }
.env-box.prod { border-color: #16a34a; color: #16a34a; background: rgba(22, 163, 74, 0.08); }

/* ── CTA Footer ── */
.landing-cta {
    padding: 5rem 0;
    background: linear-gradient(160deg, #2A3F5F 0%, #1E2D44 100%);
    color: #fff;
    text-align: center;
}

.landing-cta h2 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
}

.landing-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* ── Footer ── */
.landing-footer {
    padding: 2rem 0;
    background: #1a2538;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-align: center;
}

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

.landing-footer a:hover {
    color: #fff;
}

/* ── Quick start ── */
.quickstart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid var(--winter-border, #D1DDED);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.quickstart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(42, 63, 95, 0.08);
}

.quickstart-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--winter-primary-light, #DCEAF7);
    color: var(--winter-primary, #3B82C4);
}

.quickstart-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quickstart-item p {
    font-size: 0.875rem;
    color: var(--winter-text-muted, #64748B);
    margin: 0;
}

/* ── AI badge ── */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .landing-hero {
        padding: 6rem 0 4rem;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

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

    .landing-section {
        padding: 3.5rem 0;
    }

    .workflow-connector {
        display: none;
    }

    .workflow-step {
        min-width: 140px;
    }

    .channel-flow {
        flex-direction: column;
    }

    .channel-arrow {
        transform: rotate(90deg);
    }

    .hero-graphic {
        margin-top: 2rem;
    }

    .code-window-body {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .landing-hero h1 {
        font-size: 1.75rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }
}
