/*==========================================================
    REVLO PLATFORM
    PART 1 — FOUNDATION
==========================================================*/

.platform-section{
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    background:
        radial-gradient(700px 420px at 92% 0%, rgba(37,99,235,.065), transparent 68%),
        radial-gradient(600px 420px at 5% 100%, rgba(96,165,250,.045), transparent 70%),
        #F6F9FF;
}

.platform-section .container{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:0 2rem;
    position:relative;
    z-index:2;
}

.platform-backdrop{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:1;
    opacity:.28;
    background-image:
        linear-gradient(var(--ink-faint) 1px,transparent 1px),
        linear-gradient(90deg,var(--ink-faint) 1px,transparent 1px);
    background-size:60px 60px;
    mask-image:
        radial-gradient(circle at top,#000 10%,transparent 80%);
}

.platform-section .section-header{
    max-width:760px;
    margin:0 auto 4rem;
    text-align:center;
}

.platform-section .section-tag{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.55rem 1rem;
    border-radius:999px;
    font-family:var(--font-mono);
    font-size:.72rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    font-weight:700;
    color:var(--primary-dark);
    background:var(--primary-wash);
    border:1px solid rgba(37,99,235,.18);
    margin-bottom:1.5rem;
}

.platform-section h2{
    font-family:var(--font-body);
    font-size:clamp(2.2rem,4vw,3.4rem);
    font-weight:800;
    line-height:1.12;
    letter-spacing:-.03em;
    color:var(--ink);
    margin:0 0 1rem;
}

.platform-section .section-header p{
    max-width:720px;
    margin:0 auto;
    font-size:1.05rem;
    line-height:1.8;
    color:var(--ink-soft);
}

.platform-powered{
    margin-top:2rem;
    display:inline-flex;
    align-items:center;
    gap:.7rem;
    padding:.8rem 1.2rem;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--ink-faint);
    box-shadow:
        0 10px 30px rgba(16,33,58,.06),
        0 0 0 1px rgba(37,99,235,.025);
    font-size:.88rem;
    color:var(--ink-soft);
}

.platform-powered i{
    color:var(--primary);
    font-size:1rem;
}

.platform-powered strong{
    color:var(--ink);
    font-weight:700;
}

.platform-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:1.8rem;
    align-items:stretch;
}

/* ── Card shell ──
   NOTE: --card-ink / --card-wash / --card-glow / --card-line /
   --card-accent-2 default to the generic site blue here. This is
   what makes Finance and Intelligence require zero changes — they
   simply never get a modifier class, so they always resolve to
   these defaults. Only Drive/Pulse/Care/Garage override them
   (see PART 5, bottom of file). */
.platform-card{
    position:relative;
    display:flex;
    flex-direction:column;
    padding:2.3rem;
    background:#fff;
    border:1px solid var(--ink-faint);
    border-radius:24px;
    overflow:hidden;
    transition:
        transform .35s var(--ease),
        box-shadow .35s var(--ease),
        border-color .35s var(--ease);
    box-shadow:
        0 18px 50px rgba(16,33,58,.08);

    --card-ink:      var(--primary-dark);
    --card-wash:      var(--primary-wash);
    --card-glow:      rgba(37,99,235,.14);
    --card-line:      rgba(37,99,235,.30);
    --card-accent-2:  var(--secondary);
}

.platform-card:hover{
    transform:translateY(-6px);
    border-color:var(--card-line);
    box-shadow:
        0 26px 60px rgba(16,33,58,.12);
}

.platform-card.featured{
    background:var(--ink);
    border-color:var(--ink);
}

.platform-card.featured:hover{
    border-color:rgba(255,255,255,.08);
}

@media(max-width:960px){
    .platform-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .platform-section{
        padding:5rem 0;
    }
    .platform-section .container{
        padding:0 1.25rem;
    }
    .platform-card{
        padding:2rem;
    }
}


/*==========================================================
    REVLO PLATFORM
    PART 2 — PLATFORM MODULES
==========================================================*/

.platform-pillar{
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    margin-bottom:1rem;
    padding:.35rem .8rem;
    border-radius:999px;
    background:var(--card-wash);
    color:var(--card-ink);
    font-family:var(--font-mono);
    font-size:.68rem;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.platform-card.featured .platform-pillar{
    background:rgba(255,255,255,.08);
    color:#fff;
}

.platform-icon{
    width:62px;
    height:62px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:1.4rem;
    background:var(--card-wash);
    color:var(--card-ink);
    font-size:1.45rem;
    transition:
        transform .35s var(--ease),
        background .35s var(--ease),
        color .35s var(--ease);
}

.platform-card:hover .platform-icon{
    transform:translateY(-3px);
}

.platform-card.featured .platform-icon{
    background:rgba(255,255,255,.08);
    color:#fff;
}

.platform-card h3{
    margin:0;
    font-family:var(--font-body);
    font-size:1.55rem;
    font-weight:800;
    letter-spacing:-.02em;
    color:var(--ink);
}

.platform-card.featured h3{
    color:#fff;
}

.platform-mission{
    margin:1rem 0 1.6rem;
    font-size:1rem;
    line-height:1.75;
    color:var(--ink-soft);
    max-width:95%;
}

.platform-card.featured .platform-mission{
    color:rgba(255,255,255,.72);
}

.platform-divider{
    width:100%;
    height:1px;
    background:var(--ink-faint);
    margin-bottom:1.4rem;
}

.platform-card.featured .platform-divider{
    background:rgba(255,255,255,.08);
}

.platform-label{
    display:block;
    margin-bottom:1rem;
    font-size:.82rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--ink-soft);
}

.platform-card.featured .platform-label{
    color:rgba(255,255,255,.55);
}

.platform-card ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:1rem;
}

.platform-card ul li{
    display:flex;
    align-items:flex-start;
    gap:.85rem;
    font-size:.95rem;
    line-height:1.6;
    color:var(--ink);
    position:relative;
    padding-left:1.8rem;
}

.platform-card.featured ul li{
    color:rgba(255,255,255,.88);
}

.platform-card ul li::before{
    content:"✓";
    position:absolute;
    left:0;
    top:.05rem;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--success-wash);
    color:var(--success);
    font-size:.72rem;
    font-weight:700;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.5),
        0 2px 6px rgba(0,0,0,.05);
}

.platform-card.featured ul li::before{
    background:rgba(31,157,109,.18);
    color:var(--success);
}

.platform-card.featured{
    color:#fff;
}

.platform-card>*:last-child{
    margin-bottom:0;
}


/*==========================================================
    REVLO PLATFORM
    PART 3 — PREMIUM INTERACTIONS
==========================================================*/

.platform-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:
        radial-gradient(
            circle at var(--mx,50%) var(--my,0%),
            var(--card-glow),
            transparent 55%
        );
    opacity:0;
    transition:opacity .35s var(--ease);
    pointer-events:none;
}

.platform-card:hover::before{
    opacity:1;
}

.platform-card::after{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:4px;
    background:linear-gradient(
        90deg,
        var(--card-ink),
        var(--card-accent-2)
    );
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .35s var(--ease);
}

.platform-card:hover::after{
    transform:scaleX(1);
}

.platform-card.featured::after{
    background:linear-gradient(
        90deg,
        #ffffff,
        rgba(255,255,255,.35)
    );
}

.platform-card:hover .platform-icon{
    transform:
        translateY(-6px)
        rotate(-4deg)
        scale(1.05);
}

.platform-card.featured:hover .platform-icon{
    transform:
        translateY(-6px)
        scale(1.05);
}

.platform-card h3{
    transition:color .3s var(--ease);
}

.platform-card:hover h3{
    color:var(--card-ink);
}

.platform-card.featured:hover h3{
    color:#fff;
}

.platform-card ul li{
    transition:
        transform .25s var(--ease),
        color .25s var(--ease);
}

.platform-card:hover ul li{
    transform:translateX(4px);
}

.platform-card ul li::before{
    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease);
}

.platform-card:hover ul li::before{
    transform:scale(1.08);
    box-shadow:
        0 6px 18px rgba(31,157,109,.18);
}

.platform-card{
    overflow:hidden;
}

.platform-card:hover{
    border-color:var(--card-line);
}

.platform-footer{
    margin-top:4rem;
    display:flex;
    justify-content:center;
}

.platform-btn{
    display:inline-flex;
    align-items:center;
    gap:.75rem;
    padding:1rem 1.8rem;
    border-radius:12px;
    background:var(--primary);
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:.95rem;
    transition:
        transform .3s var(--ease),
        box-shadow .3s var(--ease),
        background .3s var(--ease);
    box-shadow:
        0 16px 40px rgba(37,99,235,.25);
}

.platform-btn:hover{
    transform:translateY(-3px);
    background:var(--primary-dark);
    color:#fff;
    box-shadow:
        0 22px 46px rgba(37,99,235,.34);
}

.platform-btn i{
    transition:transform .25s var(--ease);
}

.platform-btn:hover i{
    transform:translateX(4px);
}

.platform-card.featured{
    background:
        linear-gradient(
            160deg,
            #1b1b1b,
            #101010
        );
}

.platform-card{
    will-change:transform;
}

.platform-card:hover{
    box-shadow:
        0 30px 70px rgba(16,33,58,.22);
}

.platform-card:nth-child(1){
    transition-delay:.02s;
}
.platform-card:nth-child(2){
    transition-delay:.04s;
}
.platform-card:nth-child(3){
    transition-delay:.06s;
}
.platform-card:nth-child(4){
    transition-delay:.08s;
}


/*==========================================================
    REVLO PLATFORM
    PART 4 — RESPONSIVE + ACCESSIBILITY
==========================================================*/

@media (max-width:1200px){
    .platform-section .section-header{
        max-width:680px;
    }
    .platform-grid{
        gap:1.5rem;
    }
}

@media (max-width:992px){
    .platform-section{
        padding:5.5rem 0;
    }
    .platform-grid{
        grid-template-columns:1fr;
        gap:1.5rem;
    }
    .platform-card{
        padding:2rem;
    }
    .platform-card h3{
        font-size:1.45rem;
    }
}

@media (max-width:768px){
    .platform-section{
        padding:4.5rem 0;
    }
    .platform-section .container{
        padding:0 1.4rem;
    }
    .platform-section h2{
        font-size:2rem;
        line-height:1.2;
    }
    .platform-section .section-header p{
        font-size:.96rem;
    }
    .platform-powered{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }
    .platform-card{
        padding:1.75rem;
    }
    .platform-icon{
        width:58px;
        height:58px;
        font-size:1.3rem;
    }
}

@media (max-width:576px){
    .platform-section{
        padding:4rem 0;
    }
    .platform-section .container{
        padding:0 1rem;
    }
    .platform-card{
        border-radius:20px;
        padding:1.5rem;
    }
    .platform-card h3{
        font-size:1.3rem;
    }
    .platform-mission{
        font-size:.95rem;
    }
    .platform-card ul li{
        font-size:.9rem;
    }
    .platform-btn{
        width:100%;
        justify-content:center;
    }
}

.platform-btn:focus-visible,
.platform-card:focus-within{
    outline:3px solid rgba(37,99,235,.30);
    outline-offset:4px;
}

@media (prefers-reduced-motion:reduce){
    .platform-card,
    .platform-card::before,
    .platform-card::after,
    .platform-btn,
    .platform-btn i,
    .platform-icon,
    .platform-card ul li,
    .platform-card ul li::before{
        transition:none !important;
        animation:none !important;
        transform:none !important;
    }
}

@media print{
    .platform-backdrop{
        display:none;
    }
    .platform-card{
        box-shadow:none;
        border:1px solid #ddd;
    }
    .platform-btn{
        display:none;
    }
}


/* for the footer and clickable */

.platform-card-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.platform-card{
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.platform-card:hover{
    transform:translateY(-10px);
}

.platform-card:hover .platform-card-footer{
    color:var(--card-ink);
}

.platform-card:hover .platform-card-footer i{
    transform:translateX(6px);
}

.platform-card-footer{
    margin-top:30px;
    padding-top:22px;
    border-top:1px solid rgba(37,99,235,.10);
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:700;
    transition:.3s;
}

.platform-card-footer i{
    transition:.3s;
}


/*==========================================================
    REVLO PLATFORM
    PART 5 — PILLAR BRAND COLORS
    ---------------------------------------------------------
    Only 4 of the 6 platform cards get a pillar identity.
    Finance and Intelligence intentionally receive NO modifier
    class here — they fall through to the generic --primary
    defaults set on .platform-card in Part 1, so nothing above
    needs to change for them, and removing them later is a
    clean PHP-only deletion with zero CSS cleanup required.

    Requires one small addition in index.php: add the matching
    modifier class to each of these 4 <article class="platform-card">
    tags (see the accompanying note for exact before/after).

    Garage note: unlike the other three pillars, its "identity"
    swatch (#E8AF12) is too light for AA text contrast on white,
    so --card-ink deliberately uses its darker variant
    (#B8850A) instead of the raw identity gold — the bright gold
    is still used for the glow/wash/line, just not for text or
    icon glyph color. This mirrors the distinction your own
    Garage token file already draws between --brand and
    --brand-dark.
==========================================================*/

.platform-card--pulse{
    --card-ink:       #FD2D37;   /* Pulse identity red */
    --card-accent-2:  #FB694C;   /* Pulse identity orange */
    --card-wash:      rgba(253,45,55,.10);
    --card-glow:      rgba(253,45,55,.14);
    --card-line:      rgba(253,45,55,.30);
}

.platform-card--drive{
    --card-ink:       #2F5EFF;   /* Drive identity blue */
    --card-accent-2:  #1D3FD1;   /* Drive blue-dark */
    --card-wash:      rgba(47,94,255,.10);
    --card-glow:      rgba(47,94,255,.14);
    --card-line:      rgba(47,94,255,.30);
}

.platform-card--care{
    --card-ink:       #10B981;   /* Care identity jade */
    --card-accent-2:  #0C9468;   /* Care green-dark */
    --card-wash:      rgba(16,185,129,.10);
    --card-glow:      rgba(16,185,129,.14);
    --card-line:      rgba(16,185,129,.30);
}

.platform-card--garage{
    --card-ink:       #B8850A;   /* Garage gold-dark — used for text/icon legibility, see note above */
    --card-accent-2:  #E8AF12;   /* Garage identity gold — used for the glow/line/gradient stop */
    --card-wash:      rgba(232,175,18,.12);
    --card-glow:      rgba(232,175,18,.16);
    --card-line:      rgba(232,175,18,.30);
}