/* ═══════════════════════════════════════════════════════════════════
   PLATFORM SUB-PAGES - shared chrome for every page under /platform/*.
   Reads variables from landing.css (loaded first). Layout is:
     crumbs → dark hero → features grid → how-it-works → demo card →
     role chips → dark CTA band.
   ═══════════════════════════════════════════════════════════════════ */

/* Breadcrumbs - flex+wrap so they read cleanly on every viewport width.
   Older fixed-spacing version overflowed below ~22em (small phone in
   landscape with a deep crumb trail). Container is now a flex row that
   wraps its segments to new lines as needed; column-gap replaces the
   per-separator margin so gaps stay constant regardless of where the
   line break lands. Padding shrinks at narrower breakpoints. */
.platform-crumbs {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    overflow-wrap: anywhere;
    min-width: 0;
}
.platform-crumbs a {
    color: var(--text-2);
    text-decoration: none;
    transition: color 140ms ease;
}
.platform-crumbs a:hover { color: var(--gold-dk); }
.platform-crumbs .sep { color: var(--border-dk); }
/* Tighten side padding on phones so the trail never crowds the edge. */
@media (max-width: 30em) {
    .platform-crumbs {
        padding: 1rem 1.125rem 0;
        column-gap: 0.4375rem;
    }
}
@media (max-width: 22.5em) {
    .platform-crumbs {
        padding: 0.875rem 0.875rem 0;
        column-gap: 0.375rem;
        letter-spacing: 0.06em;
    }
}

/* Hero - dark slate, smaller than landing hero */
.platform-hero {
    background: linear-gradient(180deg, var(--slate) 0%, #141b29 100%);
    color: #fff;
    padding: 5.5rem 2rem 4.5rem;
    position: relative;
    overflow: hidden;
}
.platform-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50rem 28rem at 20% 20%, rgba(212, 175, 55, 0.12), transparent 70%);
    pointer-events: none;
}
.platform-hero-i {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
}
.platform-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-soft);
    margin-bottom: 1.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(212, 175, 55, 0.08);
    border: 0.0625rem solid rgba(212, 175, 55, 0.22);
    border-radius: 2rem;
}
.platform-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 1.5rem;
    max-width: 42rem;
}
.platform-hero h1 em {
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 800;
}
.platform-lede {
    font-size: clamp(1rem, 1.2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 2.25rem;
    max-width: 36rem;
}
.platform-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
}
.platform-ctas .bb-btn-ghost {
    color: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: transparent !important;
}
.platform-ctas .bb-btn-ghost:hover {
    color: #fff !important;
    border-color: rgba(212, 175, 55, 0.55) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}
.platform-ctas-tertiary {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
    margin-left: 0.5rem;
}
.platform-ctas-tertiary a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.55);
    padding-bottom: 0.125rem;
    transition: color 180ms ease, border-color 180ms ease;
}
.platform-ctas-tertiary a:hover {
    color: var(--gold-soft);
    border-bottom-color: var(--gold-soft);
}

/* Section container */
.platform-section {
    padding: 5rem 2rem;
    background: var(--cream);
}
.platform-section.alt { background: var(--bg-warm); }
.platform-section-i {
    max-width: 72rem;
    margin: 0 auto;
}
.platform-section-head {
    max-width: 46rem;
    margin: 0 auto 3rem;
    text-align: center;
}
.platform-section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-dk);
    margin-bottom: 0.875rem;
}
.platform-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: var(--slate);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
}
.platform-h2 em { font-style: italic; color: var(--gold-dk); font-weight: 700; }
.platform-sub {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 38rem;
}

/* Three-column feature grid */
.platform-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 64em) { .platform-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 44em) { .platform-grid-3 { grid-template-columns: 1fr; } }
.platform-card {
    background: #fff;
    border: 0.0625rem solid var(--border);
    border-radius: 0.875rem;
    padding: 2rem 1.75rem;
    transition: transform 220ms cubic-bezier(0.16, 0.84, 0.32, 1), border-color 220ms ease, box-shadow 220ms ease;
}
.platform-card:hover {
    transform: translateY(-0.25rem);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 1.25rem 2.5rem rgba(12, 17, 26, 0.08);
}
.platform-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--slate) 0%, #2a3447 100%);
    color: var(--gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.platform-card-icon svg { width: 1.25rem; height: 1.25rem; }
.platform-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate);
    margin: 0 0 0.625rem;
    letter-spacing: -0.01em;
}
.platform-card p {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* How it works - numbered steps */
.platform-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}
@media (max-width: 64em) { .platform-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40em) { .platform-steps { grid-template-columns: 1fr; } }
.platform-step-n {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--gold-dk);
    margin-bottom: 0.625rem;
}
.platform-step h4 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate);
    margin: 0 0 0.5rem;
}
.platform-step p {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

/* Demo / product card */
.platform-demo {
    background: linear-gradient(135deg, var(--slate) 0%, #2a3447 100%);
    border-radius: 1rem;
    padding: 2.5rem;
    color: #fff;
    box-shadow: 0 1.5rem 3rem rgba(12, 17, 26, 0.18);
    max-width: 56rem;
    margin: 3rem auto 0;
}
.platform-demo-tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 1.25rem;
}
.platform-demo-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
}
.platform-demo-row:last-child { border-bottom: 0; }
.platform-demo-row-label {
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.platform-demo-row-value {
    color: #fff;
    font-weight: 600;
    font-family: var(--font-mono);
}
.platform-demo-row-value.gold { color: var(--gold-soft); }

/* Role chips */
.platform-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    margin-top: 2rem;
}
.platform-role {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 0.0625rem solid var(--border);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate);
    transition: border-color 140ms ease, transform 180ms ease;
}
.platform-role:hover {
    border-color: var(--gold);
    transform: translateY(-0.0625rem);
}

/* ═══════════════════════════════════════════════════════════════
   Bottom CTA band
   Distinct from the footer (slightly lighter/warmer slate) with a
   professional gold radial burst and top/bottom accent lines.
   Shared across Platform / Solutions / Data / Resources / Company.
═══════════════════════════════════════════════════════════════ */
.platform-cta-band {
    position: relative;
    background:
        radial-gradient(ellipse 18rem 10rem at 82% 18%, rgba(212, 175, 55, 0.10) 0%, transparent 62%),
        radial-gradient(ellipse 16rem 10rem at 18% 82%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #273149 0%, #232c42 50%, #1f2838 100%);
    color: #fff;
    padding: 6.5rem 2rem 7rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Central gold burst - focuses attention on the heading */
.platform-cta-band::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: min(68rem, 110%);
    height: 32rem;
    background:
        radial-gradient(ellipse 56% 60% at 50% 50%,
            rgba(212, 175, 55, 0.22) 0%,
            rgba(212, 175, 55, 0.11) 35%,
            rgba(212, 175, 55, 0.04) 60%,
            transparent 78%);
    z-index: -1;
    pointer-events: none;
    filter: blur(0.03125rem);
}

/* Top + bottom hairline accents - seal the band from the section
   above and the footer below. */
.platform-cta-band::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.0625rem;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.0) 15%,
        rgba(212, 175, 55, 0.45) 50%,
        rgba(212, 175, 55, 0.0) 85%,
        transparent 100%);
    z-index: 1;
}

.platform-cta-band h2 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1.125rem;
    max-width: 40rem;
    letter-spacing: -0.018em;
    line-height: 1.18;
    z-index: 2;
}

.platform-cta-band h2 em {
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 700;
}

.platform-cta-band p {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    max-width: 36rem;
    margin: 0 auto 2.25rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    z-index: 2;
}

.platform-cta-band-ctas {
    position: relative;
    display: inline-flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

.platform-cta-band .bb-btn-primary {
    background: var(--gold);
    color: var(--slate);
    border-color: var(--gold);
    box-shadow: 0 0.5rem 1.375rem rgba(212, 175, 55, 0.22);
}

.platform-cta-band .bb-btn-primary:hover {
    background: var(--gold-soft);
    color: var(--slate);
    border-color: var(--gold-soft);
    box-shadow: 0 0.625rem 1.625rem rgba(212, 175, 55, 0.28);
}

.platform-cta-band .bb-btn-ghost {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
}

.platform-cta-band .bb-btn-ghost:hover {
    color: #fff;
    border-color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 42em) {
    .platform-cta-band { padding: 4.5rem 1.25rem 5rem; }
    .platform-cta-band::before { height: 20rem; }
}
