/* ── Hero ───────────────────────────────────────── */
.hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: calc(-1 * var(--space-xl));
    position: relative;
    background: linear-gradient(160deg, var(--color-primary-deep) 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-3xl) var(--space-lg) 5rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4rem), 0 100%);
    overflow: hidden;
}

/* Diagonal lines texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 30px,
        rgba(255, 255, 255, 0.02) 30px,
        rgba(255, 255, 255, 0.02) 60px
    );
    pointer-events: none;
}

/* Mountain ridge silhouette */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.12), transparent);
    clip-path: polygon(
        0 75%, 5% 60%, 12% 70%, 20% 48%, 28% 62%,
        35% 38%, 42% 55%, 50% 28%, 58% 50%, 65% 35%,
        72% 52%, 80% 42%, 88% 58%, 95% 48%, 100% 62%,
        100% 100%, 0 100%
    );
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.hero__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    animation: heroFadeDown 0.7s ease-out both;
}

.hero__logo {
    height: 88px;
    width: auto;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    padding: 0.6rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero__logo:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.2);
}

.hero__title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    animation: heroFadeUp 0.7s ease-out 0.15s both;
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-light);
    opacity: 0.88;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    animation: heroFadeUp 0.7s ease-out 0.3s both;
}

.hero__accent-line {
    display: none;
}

/* ── Features ──────────────────────────────────── */
.features {
    margin-top: -2rem;
    position: relative;
    z-index: 1;
    padding: 0 0 var(--space-xl);
}

.features__heading {
    font-family: var(--font-family-display);
    font-size: 1.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-deep);
    text-align: center;
    margin-bottom: 2.25rem;
}

.features__heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

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

/* ── Feature Card ──────────────────────────────── */
.feature-card {
    display: block;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-bg-secondary);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    animation: cardEnter 0.55s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.22s; }
.feature-card:nth-child(3) { animation-delay: 0.34s; }

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

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    transition: background 0.28s ease, color 0.28s ease;
}

.feature-card:hover .feature-card__icon {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.feature-card__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ── WIP Card State ────────────────────────────── */
.feature-card--wip {
    position: relative;
    opacity: 0.6;
    border-left-color: var(--color-text-secondary);
}

.feature-card--wip:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.feature-card--wip .feature-card__icon {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
}

.feature-card--wip:hover .feature-card__icon {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
}

.feature-card__wip-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.6;
}

/* ── Animations ────────────────────────────────── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-2xl) var(--space-md) 5rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
    }

    .hero__logos {
        gap: 1.5rem;
    }

    .hero__logo {
        height: 64px;
    }

    .hero__title {
        font-size: var(--font-size-3xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-base);
    }

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

    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3) {
        animation-delay: 0.1s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__logos,
    .hero__title,
    .hero__subtitle,
    .hero__accent-line,
    .feature-card {
        animation: none;
    }
}
