/* ==========================================
   Homepage — Scandinavian Clean / Nordic Minimal
   ========================================== */

main { padding-top: 60px; }

/* ========= Hero: Split layout ========= */
.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0 var(--space-xl);
    background: var(--bg-primary);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content { max-width: 540px; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: var(--space-md);
}

.hero-badges {
    display: flex;
    gap: var(--space-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-badge i {
    font-size: 12px;
    color: var(--success);
}

/* Geometric visual placeholder */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-grid {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 440px;
}

.geo-shape {
    position: absolute;
    border-radius: var(--radius-md);
}

.geo-circle {
    width: 180px;
    height: 180px;
    border: 2px solid var(--border);
    border-radius: 50%;
    top: 10%;
    right: 5%;
}

.geo-rect {
    width: 140px;
    height: 100px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    top: 5%;
    left: 10%;
    border-radius: var(--radius-lg);
}

.geo-dot-grid {
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 10px;
    bottom: 25%;
    right: 12%;
}

.geo-dot-grid span {
    width: 8px;
    height: 8px;
    background: var(--border-strong);
    border-radius: 50%;
}

.geo-line-h {
    width: 120px;
    height: 2px;
    background: var(--accent-border);
    top: 55%;
    left: 5%;
}

.geo-line-v {
    width: 2px;
    height: 100px;
    background: var(--border);
    bottom: 10%;
    left: 30%;
}

.geo-square {
    width: 60px;
    height: 60px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    bottom: 15%;
    left: 15%;
}

.geo-ring {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-border);
    border-radius: 50%;
    bottom: 5%;
    right: 25%;
}

.geo-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    top: 40%;
    left: 35%;
}

.geo-bar-chart span {
    width: 14px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    opacity: 0.15;
}

/* ========= Stats band ========= */
.stats-band {
    padding: 0 0 var(--space-xl);
    background: var(--bg-primary);
}

.stats-band-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.stats-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    box-shadow: var(--shadow-sm);
}

.stats-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-text {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ========= Capabilities: 3-column grid ========= */
.capabilities {
    padding: var(--space-3xl) 0;
    background: var(--bg-subtle);
}

.capabilities-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.capabilities-head {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.capabilities-head .section-description {
    margin: 0 auto;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.cap-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cap-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cap-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    color: var(--accent);
    font-size: 18px;
}

.cap-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cap-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    flex: 1;
}

.cap-badge {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    padding: 4px 10px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    align-self: flex-start;
}

/* ========= Trust: 2-column ========= */
.trust {
    padding: var(--space-3xl) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.trust-head {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.trust-body {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-lg);
    align-items: start;
}

.trust-testimonial {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
}

.trust-testimonial blockquote {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: var(--space-md);
    padding-top: var(--space-lg);
    position: relative;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid var(--accent-border);
    flex-shrink: 0;
}

.quote-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quote-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.quote-role {
    font-size: 13px;
    color: var(--text-muted);
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.trust-point {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.trust-point-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

.trust-point-text h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.trust-point-text p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
}

/* ========= Ecosystem: 4x3 logo grid ========= */
.ecosystem {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.ecosystem-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.ecosystem-head {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.ecosystem-head .section-description {
    margin: 0 auto;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.platform-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-md) var(--space-sm);
    background: var(--bg-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: default;
}

.platform-cell:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    z-index: 1;
    position: relative;
}

.platform-cell i {
    font-size: 22px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.platform-cell:hover i {
    color: var(--accent);
}

.platform-cell span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
}

.ecosystem-footnote {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* ========= Journey: Horizontal steps ========= */
.journey {
    padding: var(--space-3xl) 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

.journey-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.journey-head {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.journey-head .section-description {
    margin: 0 auto;
}

.steps-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    position: relative;
    padding-top: 28px;
}

.steps-line {
    position: absolute;
    top: 46px;
    left: calc(12.5% + 18px);
    right: calc(12.5% + 18px);
    height: 2px;
    background: var(--border);
}

.step-col {
    text-align: center;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    background: var(--bg-surface);
    border: 2px solid var(--accent);
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.step-circle-final {
    background: var(--accent);
    color: #fff;
}

.step-col h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-col p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.65;
    max-width: 220px;
    margin: 0 auto;
}

/* ========= Bottom CTA ========= */
.bottom-cta {
    padding: var(--space-2xl) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.bottom-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

.bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bottom-cta p {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: var(--space-md);
}

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

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-visual {
        order: -1;
    }

    .geo-grid {
        max-width: 280px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-item:nth-child(3)::before {
        display: none;
    }

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

    .trust-body {
        grid-template-columns: 1fr;
    }

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

    .steps-track {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
        padding-left: 48px;
    }

    .steps-line {
        top: 0;
        bottom: 0;
        left: 18px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .step-col {
        text-align: left;
        padding-bottom: var(--space-lg);
    }

    .step-col:last-child {
        padding-bottom: 0;
    }

    .step-circle {
        position: absolute;
        left: -48px;
        top: 0;
        margin: 0;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-col p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item + .stat-item::before {
        display: none;
    }
}
