/* ==========================================================================
   HOME.CSS
   mentaxonomy.org
   ========================================================================== */


/* ==========================================================================
   [HOME-01] HERO
   ========================================================================== */

.hero
{
    position: relative;
    min-height: 720px;
    padding: 8rem 2rem 7rem;
    overflow: hidden;

    background: #f7f8f6;
    border-bottom: 1px solid var(--border);
}

.hero::before
{
    position: absolute;

    top: 50%;
    left: calc(50% + 10%);

    width: 1050px;
    aspect-ratio: 3 / 2;

    content: "";

    background:
        linear-gradient(
            90deg,
            rgba(247, 248, 246, .10) 0%,
            rgba(247, 248, 246, 0) 40%
        ),
        url("/images/mentaxonomyhero.png") center / contain no-repeat;

    opacity: .42;

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.hero__inner
{
    position: relative;
    z-index: 1;

    max-width: 920px;
    margin: 0 auto;

    text-align: center;
}

.hero__eyebrow,
.component-card__label
{
    margin-bottom: 1rem;

    color: var(--primary);

    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero__title
{
    max-width: 850px;
    margin: 0 auto;

    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero__description
{
    max-width: 750px;
    margin: 2rem auto 0;

    color: var(--text);

    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.45;
}

.hero__summary
{
    max-width: 680px;
    margin: 1rem auto 0;

    color: var(--text-light);

    font-size: 1.05rem;
}


/* ==========================================================================
   [HOME-02] HERO ACTIONS
   ========================================================================== */

.hero__actions
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 1rem;
    margin-top: 2.5rem;
}

.hero__actions .button
{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 13.5rem;

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.hero__actions .button:hover
{
    transform: none;
}

.hero__actions .button--primary:hover
{
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 8px 22px rgba(0, 0, 0, .12);
}

.hero__actions .button--secondary:hover
{
    background: #ffffff;
    border-color: var(--primary);

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .02),
        0 8px 22px rgba(0, 0, 0, .08);
}


/* ==========================================================================
   [HOME-03] COMMON SECTION SPACING
   ========================================================================== */

.components,
.architecture,
.origin
{
    padding: 7rem 0;
}


/* ==========================================================================
   [HOME-04] COMPONENTS GRID
   ========================================================================== */

.components .section-heading
{
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;

    text-align: center;
}

.components .section-heading > p:last-child
{
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

.components__grid
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1.5rem;

    width: calc(100% - 3rem);
    max-width: 1280px;

    margin: 3.5rem auto 0;
}

/* ==========================================================================
   [HOME-05] COMPONENT CARDS
   ========================================================================== */

.component-card
{
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 2.25rem;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: .6rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
    
}

.component-card:hover
{
    border-color: rgba(46, 111, 72, .35);

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .015),
        0 10px 28px rgba(0, 0, 0, .06);
}

.component-card__identity
{
    margin-bottom: 1.75rem;
}

.component-card__label
{
    margin: 1.25rem 0 0;

    text-align: center;
}

.component-card__description
{
    margin: 0 0 2rem;

    color: var(--text-light);

    line-height: 1.65;
}

.component-card__meta
{
    display: flex;
    flex-direction: column;

    gap: .35rem;

    padding-top: 1.25rem;

    border-top: 1px solid var(--border);
}

.component-card__meta + .component-card__meta
{
    margin-top: 1rem;
}

.component-card__meta span
{
    color: var(--text-light);

    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.component-card__meta strong
{
    color: var(--text);

    font-size: .95rem;
    line-height: 1.45;
}

.component-card__link
{
    display: inline-flex;
    align-items: center;

    width: fit-content;

    gap: .5rem;

    margin-top: auto;
    padding-top: 2rem;

    color: var(--primary);

    font-weight: 700;
}


/* ==========================================================================
   [HOME-06] COMPONENT LOGOS
   ========================================================================== */

.component-card__logo
{
    display: block;

    width: 100%;
    max-width: 260px;
    height: 105px;

    margin: 0 auto;

    object-fit: contain;
    object-position: center;
}

/* ==========================================================================
   [HOME-07] COMPONENT CARD ALIGNMENT
   ========================================================================== */

/*
 * All three component cards share the same structure and visual hierarchy.
 * No component receives a different grid position or layout.
 */

.component-card__identity
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.component-card__meta--secondary
{
    margin-bottom: 0;
}

/* ==========================================================================
   [HOME-08] ARCHITECTURE
   ========================================================================== */

.architecture
{
    padding-top: 7rem;

    background: #ffffff;
}

.architecture-pipeline
{
    max-width: 1100px;
    margin: 4rem auto 0;
}

.architecture-pipeline__application
{
    width: fit-content;

    margin: 0 auto;
    padding: 1rem 2.5rem;

    color: var(--text);

    font-size: 1.35rem;
    font-weight: 700;

    background: #ffffff;

    border: 1px solid var(--text);
    border-radius: .5rem;
}

.architecture-pipeline__split
{
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 2rem;

    margin-top: 5rem;
}

.architecture-pipeline__split::before
{
    position: absolute;

    top: -3rem;
    left: 16.67%;

    width: 66.66%;
    height: 1px;

    content: "";

    background: var(--architecture-line);
}

.architecture-pipeline__split::after
{
    position: absolute;

    top: -5rem;
    left: 50%;

    width: 1px;
    height: 2rem;

    content: "";

    background: var(--architecture-line);
}

.architecture-pipeline__branch
{
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.architecture-pipeline__branch::before
{
    position: absolute;

    top: -3rem;
    left: 50%;

    width: 1px;
    height: 3rem;

    content: "";

    background: var(--architecture-line);
}

.architecture-pipeline__label
{
    position: relative;
    z-index: 1;

    display: block;

    margin-top: 1rem;
    margin-bottom: .75rem;
    padding: 0 .75rem;

    color: var(--primary);

    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;

    background: #ffffff;
}

.architecture-pipeline__component
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 170px;
    padding: 2rem;

    text-align: center;

    background: #f7f8f6;

    border: 1px solid var(--border);
    border-radius: .6rem;
}

.architecture-pipeline__component strong
{
    margin-bottom: .5rem;

    color: var(--text);

    font-size: 1.5rem;
    line-height: 1.2;
}

.architecture-pipeline__component span
{
    color: var(--text-light);

    font-size: 1rem;
}


/* ==========================================================================
   [HOME-09] ORIGIN / MENTA
   ========================================================================== */

.origin
{
    color: #ffffff;

    background: #202722;
}

.origin__inner
{
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);

    gap: 5rem;

    align-items: start;
}

.origin .section-heading__eyebrow
{
    color: #9fc7aa;
}

.origin__description
{
    padding-top: 2rem;
}

.origin__description p
{
    max-width: 38rem;
    margin: 0;

    color: rgba(255, 255, 255, .76);

    font-size: 1.12rem;
    line-height: 1.75;
}

.origin__title
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: .5rem;
}

.origin__title h2
{
    margin: 0;

    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.origin__menta-logo
{
    width: auto;
    height: 70px;

    margin-left: 1.5rem;

    opacity: .9;
}

.origin a
{
    color: #52b874;

    font-weight: 600;
    text-decoration: none;

    transition:
        color .2s ease,
        text-decoration-color .2s ease;
}

.origin a:hover
{
    color: #6bc98a;

    text-decoration: underline;
    text-underline-offset: .15em;
}


/* ==========================================================================
   [HOME-10] RESPONSIVE — MEDIUM DESKTOP
   ========================================================================== */

@media (max-width: 1100px)
{
    .hero::before
    {
        left: calc(50% + 190px);

        width: 820px;

        opacity: .64;
    }

    .components__grid
    {
        gap: 1.25rem;
    }

    .component-card
    {
        padding: 2rem;
    }
}

/* ==========================================================================
   [HOME-11] RESPONSIVE — TABLET / MOBILE
   ========================================================================== */

@media (max-width: 800px)
{
    .hero
    {
        min-height: auto;

        padding: 6rem 1.5rem 5rem;
    }

    .hero::before
    {
        top: 54%;
        left: 58%;

        width: 760px;

        opacity: .34;

        transform: translate(-50%, -50%);

        background:
            linear-gradient(
                90deg,
                rgba(247, 248, 246, .18) 0%,
                rgba(247, 248, 246, .06) 35%,
                rgba(247, 248, 246, 0) 70%
            ),
            url("/images/mentaxonomyhero.png") center / contain no-repeat;
    }

    .hero__title br
    {
        display: none;
    }

    .components,
    .architecture,
    .origin
    {
        padding: 5rem 0;
    }

    .components__grid,
    .origin__inner
    {
        grid-template-columns: 1fr;
    }

    .components__grid
    {
        gap: 1.5rem;
    }

    .component-card
    {
        padding: 2.25rem;
    }

    .component-card__logo
    {
        max-width: 280px;
        height: 105px;
    }

    .architecture
    {
        padding-top: 5rem;
    }

    .architecture-pipeline
    {
        margin-top: 3rem;
    }

    .architecture-pipeline__split
    {
        grid-template-columns: 1fr;

        gap: 2rem;

        margin-top: 3rem;
    }

    .architecture-pipeline__split::before,
    .architecture-pipeline__split::after,
    .architecture-pipeline__branch::before
    {
        display: none;
    }

    .architecture-pipeline__branch
    {
        align-items: stretch;
    }

    .architecture-pipeline__component
    {
        min-height: auto;
    }

    .origin__inner
    {
        gap: 1.5rem;
    }

    .origin__menta-logo
    {
        height: 46px;
    }
}

/* ==========================================================================
   [HOME-12] RESPONSIVE — SMALL MOBILE
   ========================================================================== */

@media (max-width: 520px)
{
    .hero__actions
    {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .button
    {
        width: 100%;
    }

    .component-card
    {
        padding: 1.75rem;
    }

    .component-card__logo
    {
        max-width: 220px;
        height: 85px;
    }
}

/* =====================================================================
   [HOME-COMPONENT-CARD-CLICKABLE] CLICKABLE COMPONENT CARDS
   ===================================================================== */

.component-card {
    position: relative;
}

.component-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}