/* ── Lift page content above the fixed constellation canvas.
      Section backgrounds are transparent so the atmosphere shows
      through everywhere; GSAP pin-spacers preserve layout during
      pinning, so nothing ever scrolls beneath a pinned section. ── */
.hero-section,
.alignment_section,
.decentralized_wrapper,
.morph-section,
.transition_mobile,
.explore_block,
#footer-slot {
    position: relative;
    z-index: 1;
}

/* Gold "Proba" name treatment (matches product page) */
.proba-gold {
    background: linear-gradient(135deg, #E0CB9A 0%, #C8A96E 45%, #AE8C4A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ══════════════════════════════════════════
   ALIGNMENT SECTION (sticky scroll)
   ══════════════════════════════════════════ */
.alignment_section {
    position: relative;
}

.alignment_sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.alignment_content {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-areas: "stack";
    align-items: center;
    justify-items: stretch;
}
.alignment_content .step-1,
.alignment_content .step-2 {
    grid-area: stack;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.alignment_title_1 {
    filter: blur(6px);
    opacity: 1;
}
.alignment_subtitle,
.alignment_cards_1,
.alignment_cards_2,
.alignment_title_2,
.alignment_bottom {
    opacity: 0;
    filter: blur(6px);
    visibility: hidden;
}

.alignment_subtitle {
    max-width: 600px;
    margin: 24px auto 0;
}

.alignment_cards_1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 48px;
}
/* Step 1 domains: circular icon + label only (no outer card box) */
.alignment_cards_1 .alignment_card {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    min-height: auto;
    box-shadow: none;
    gap: 14px;
}
.alignment_cards_2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 48px;
}
/* Step 2 actors: circular icon + label only (no outer card box) */
.alignment_cards_2 .alignment_card {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    min-height: auto;
    box-shadow: none;
    gap: 14px;
}

/* Static cards (not links): the gold outline is the resting state
   and there is deliberately no hover behavior. */
.alignment_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px 32px;
    background: radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 45%, transparent 70%), #1F1D1D;
    border: 1px solid rgba(200, 169, 110, 0.35);
    border-radius: 16px;
    min-height: 204px;
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7), 0 0 34px -14px rgba(200, 169, 110, 0.12);
}
/* Icon medallion: gold ring matches .alignment_card border */
.alignment_card img {
    width: 68px;
    height: 68px;
    padding: 17px;
    box-sizing: border-box;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 72%), rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 169, 110, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.alignment_card div {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.alignment_bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 40px;
}
.alignment_bottom > div {
    display: flex;
    justify-content: center;
}
/* Verdict pills */
.alignment_bottom h3 {
    display: inline-block;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    text-indent: 0.28em; /* balances the trailing tracking so text centers */
    color: rgba(232, 224, 212, 0.7);
    border: 1px solid rgba(200, 169, 110, 0);
    border-radius: 100px;
    padding: 15px 28px;
    text-align: center;
}

/* ══════════════════════════════════════════
   DECENTRALIZED COMPARISON
   ══════════════════════════════════════════ */
.decentralized_wrapper {
    padding: 120px 0;
}

.decentralized_title {
    margin-bottom: 36px;
}

.decentralized_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 990px;
    margin: 0 auto;
}

.decentralized_item {
    padding: 32px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.decentralized_left {
    background: #141212;
    backdrop-filter: blur(42px);
}

.decentralized_right {
    background: #FFFFFF;
}
.decentralized_right h3 { color: #141212; }

.decentralized_item_icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.decentralized_left .decentralized_item_icon {
    background: #FFFFFF;
}
.decentralized_right .decentralized_item_icon {
    background: #141212;
}
.decentralized_item_icon img {
    width: 24px;
    height: 24px;
}

.decentralized_item h3 {
    margin-top: 20px;
    margin-bottom: 24px;
    font-size: 24px;
}

.decentralized_left .decentralized_item_icon img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(91%) saturate(7500%) hue-rotate(89deg) brightness(91%) contrast(94%);
}

.decentralized_left_item,
.decentralized_right_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 100px;
    transition: background 0.2s;
}
.decentralized_left_item {
    background: rgba(255,255,255,0.04);
}
.decentralized_left_item:hover {
    background: rgba(255,255,255,0.07);
}
.decentralized_right_item {
    background: #F7F7F5;
}
.decentralized_right_item:hover {
    background: #eeecea;
}
.decentralized_right_item .fw-semibold {
    color: #000;
}

.decentralized_left_item img,
.decentralized_right_item img {
    width: 24px;
    min-width: 24px;
}

.decentralized_items_col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ══════════════════════════════════════════
   MORPH / TRANSITION SECTION (Desktop)
   ══════════════════════════════════════════ */
.morph-section {
    height: 100vh;
    overflow: hidden;
    color: #fff;
    pointer-events: none;
}

.morph-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    pointer-events: none;
}

.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.morph-card {
    position: absolute;
    background: #1F1D1D;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-family: 'EB Garamond', Georgia, serif;
    color: #FFFFFF;
    white-space: nowrap;
    border-radius: 12px;
}

.morph-card[data-id="1"] {
    margin-top: -150px;
    margin-left: -600px;
    font-size: 60px;
    width: 500px;
    height: 200px;
    filter: blur(6px);
}
.morph-card[data-id="2"] {
    margin-top: -150px;
    margin-left: 400px;
    font-size: 45px;
    width: 390px;
    height: 140px;
    filter: blur(1px);
}
.morph-card[data-id="3"] {
    margin-top: 250px;
    margin-left: -350px;
    font-size: 40px;
    width: 370px;
    height: 135px;
    filter: blur(2px);
}
.morph-card[data-id="4"] {
    margin-top: 300px;
    margin-left: 450px;
    font-size: 38px;
    width: 330px;
    height: 125px;
    filter: blur(6px);
}
@media (max-width: 1700px) {
    .morph-card[data-id="1"] { width: 450px; margin-left: -400px; }
    .morph-card[data-id="2"] { margin-left: 300px; }
    .morph-card[data-id="4"] { margin-left: 300px; }
}

.morph-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 300px;
    opacity: 0;
}
.morph-center img {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}
.morph-center h2 {
    font-size: 40px;
    margin-top: 15px;
    line-height: 40px;
}

.morph-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    border-radius: 20px;
}

.final-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1180px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    z-index: 50;
}

.final-container-title {
    transition: opacity 0.2s;
    opacity: 0;
    margin-bottom: 68px;
}

.full-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #1F1D1D;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid rgba(232, 224, 212, 0.08);
    transform-origin: center center;
    opacity: 0;
    width: 100%;
    will-change: transform, background-color;
    overflow: hidden;
    min-height: 100px;
    pointer-events: none;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: paint;
    transition: background-color 0.2s;
}
.full-card .phase-numeral {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 80px;
    font-weight: 400;
    color: rgba(200, 169, 110, 0.12);
    letter-spacing: -0.02em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.full-card:hover {
    text-decoration: none !important;
    background-color: #242221 !important;
    border-color: rgba(200, 169, 110, 0.30);
}

.full-card h3 {
    width: 220px;
    min-width: 220px;
    color: #fff;
    transition: all 0.2s;
}
.full-card p {
    color: #BFBFBF;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    transition: all 0.2s;
}
.full-card h3, .full-card p {
    opacity: 1 !important;
    will-change: transform, opacity;
    transform: translateZ(0) rotate(0.02deg);
}

/* Mobile transition */
.transition_mobile {
    display: none;
    padding: 60px 0;
}
.transition_mobile_title {
    margin-bottom: 32px;
}
.transition_mobile_items {
    display: flex;
    flex-direction: column;
}
.transition_mobile_item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 20px;
    background-color: #1F1D1D;
    border: 1px solid rgba(232, 224, 212, 0.08);
    padding: 24px 16px;
    margin-bottom: 20px;
    overflow: hidden;
}
.transition_mobile_item .phase-numeral {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 400;
    color: rgba(200, 169, 110, 0.12);
    letter-spacing: -0.02em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.transition_mobile_item > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.transition_mobile_item .text-dark { font-size: 14px; }

/* ══════════════════════════════════════════
   EXPLORE BLOCK
   ══════════════════════════════════════════ */
.explore_block {
    padding: 0 16px;
    /* transparent so the shared constellation atmosphere shows through */
}

.explore_container {
    max-width: 1180px;
    margin: 0 auto;
}

.explore_title {
    margin-bottom: 44px;
}

.explore_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.explore_card {
    position: relative;
    background: #1F1D1D;
    border: 1px solid rgba(232, 224, 212, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.7s cubic-bezier(.19, 1, .22, 1), border-color 0.4s, box-shadow 0.7s;
}
.explore_card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 169, 110, 0.35);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 50px -12px rgba(200, 169, 110, 0.18);
}
/* Gold shine sweep on hover (matches team founder cards) */
.explore_card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(232, 224, 212, 0.10) 48%, rgba(200, 169, 110, 0.14) 52%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 1.3s cubic-bezier(.19, 1, .22, 1);
}
.explore_card:hover::after {
    transform: translateX(130%);
}
.explore_card > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.explore_card > div {
    padding: 24px 48px 48px;
}
.explore_card h3 {
    font-size: 28px;
    margin-bottom: 0;
}
.explore_card .text-dark {
    font-size: 15px;
    margin-top: 12px;
    margin-bottom: 24px;
    color: #E0E0E0;
}

/* ══════════════════════════════════════════
   SECTION HEADINGS (gold-standard: Forum + gold hairline)
   Headings switch from EB Garamond to Forum at the team-page
   scale. The hairline is a ::after so it inherits each
   heading's existing scroll-in animation (opacity/blur/y).
   ══════════════════════════════════════════ */
.alignment_title_1,
.alignment_title_2,
.decentralized_title,
.final-container-title,
.transition_mobile_title,
.explore_title {
    font-family: 'Forum', Georgia, serif;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.decentralized_title::after,
.final-container-title::after,
.transition_mobile_title::after,
.explore_title::after {
    content: "";
    display: block;
    width: 240px;
    height: 1px;
    margin: 28px auto 0;
    background: linear-gradient(to right, transparent, rgba(200, 169, 110, 0.6), transparent);
}

/* ══════════════════════════════════════════
   HOMEPAGE RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .alignment_sticky {
        height: auto;
        overflow: visible;
        position: relative;
    }
    .alignment_content {
        display: flex;
        flex-direction: column;
        padding-bottom: 50px;
    }
    .alignment_title_1,
    .alignment_subtitle,
    .alignment_cards_1,
    .alignment_cards_2,
    .alignment_title_2,
    .alignment_bottom {
        filter: blur(0);
    }
    .alignment_cards_1, .alignment_cards_2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 32px;
    }
    .alignment_card {
        min-height: 120px;
        min-width: 150px;
        padding: 16px;
        gap: 12px;
        width: calc(50% - 6px);
    }
    .alignment_card:last-child { width: 100%; }
    .alignment_cards_1 .alignment_card {
        min-height: auto;
        min-width: auto;
        padding: 0;
        width: auto;
        flex: 0 1 calc(33.333% - 8px);
    }
    .alignment_cards_1 .alignment_card:last-child {
        width: auto;
        flex: 0 1 calc(33.333% - 8px);
    }
    .alignment_cards_2 .alignment_card {
        min-height: auto;
        min-width: auto;
        padding: 0;
        width: auto;
        flex: 0 1 calc(33.333% - 8px);
    }
    .alignment_cards_2 .alignment_card:last-child {
        width: auto;
        flex: 0 1 calc(33.333% - 8px);
    }
    .alignment_card div { font-size: 17px; white-space: normal; }
    .alignment_card img { width: 48px; height: 48px; padding: 12px; }
    .alignment_bottom {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .alignment_bottom h3 {
        font-size: 12px;
        letter-spacing: 0.2em;
        text-indent: 0.2em;
        padding: 12px 20px;
    }

    .decentralized_wrapper { padding: 60px 0; }
    .decentralized_item_icon { width: 48px; height: 48px; }
    .decentralized_item_icon img { width: 24px; height: 24px; }
    .decentralized_grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .decentralized_title { margin-bottom: 32px; }

    .morph-section { display: none !important; }
    .transition_mobile { display: block; }

    .explore_title { margin-bottom: 32px; }
    .explore_card > div { padding: 16px 16px 24px; }
    .explore_card > img { height: 200px; }

    .full-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
    .full-card h3 { width: auto; min-width: auto; }
}

@media (max-width: 767.98px) {
    .explore_grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .alignment_card {
        padding: 12px 14px;
        min-width: 100px;
    }
    .alignment_cards_1 .alignment_card {
        padding: 0;
        min-width: auto;
    }
    .alignment_cards_2 .alignment_card {
        padding: 0;
        min-width: auto;
    }
}
