html:has(.platforms-page),
body:has(.platforms-page) {
    overflow-x: hidden;
}

.platforms-page {
    overflow-x: hidden;
    color: #0a0933;
}

.platforms-page .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: clamp(12px, 3vw, 48px);
    padding-right: clamp(12px, 3vw, 48px);
}

.platforms-page .pf-hero {
    background: linear-gradient(135deg, #0a0933 0%, #023e8a 55%, #00B4D8 100%);
    color: #fff;
    padding: 3rem 0 4rem;
}

.platforms-page .pf-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.platforms-page .pf-breadcrumb a {
    color: #d4af37;
}

.platforms-page .pf-breadcrumb .active,
.platforms-page .pf-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.platforms-page .pf-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.platforms-page .pf-hero .lead {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.92);
}

.platforms-page .pf-section {
    padding: 3rem 0;
}

.platforms-page .pf-section--muted {
    background: #f7f9fc;
}

.platforms-page .pf-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.platforms-page .pf-card,
.platforms-page .pf-item {
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(10, 9, 51, 0.06);
}

.platforms-page .pf-card h3,
.platforms-page .pf-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.platforms-page .pf-card-logo {
    min-height: 72px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.platforms-page .pf-card-logo img,
.platforms-page .pf-hero-logo {
    max-height: 72px;
    max-width: 100%;
    width: auto;
}

.platforms-page .pf-hero-logo {
    max-height: 120px;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.platforms-page .pf-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #00B4D8;
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
}

.platforms-page .pf-mark-lg {
    width: 88px;
    height: 88px;
    font-size: 2rem;
}

.platforms-page .pf-tagline {
    color: #023e8a;
    font-weight: 600;
}

.platforms-page .pf-actions {
    gap: 0.75rem;
}

.platforms-page .pf-btn {
    display: inline-block;
    background: #d4af37;
    color: #0a0933;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
}

.platforms-page .pf-btn:hover {
    color: #0a0933;
    opacity: 0.92;
}

.platforms-page .pf-btn-ghost,
.platforms-page .pf-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.platforms-page .pf-section .pf-btn-outline {
    color: #0a0933;
    border-color: #00B4D8;
}

.platforms-page .pf-prose p {
    margin-bottom: 1rem;
}

.platforms-page .pf-contact,
.platforms-page .pf-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platforms-page .pf-contact li,
.platforms-page .pf-social li {
    margin-bottom: 0.5rem;
}

.platforms-page .pf-social a {
    color: #023e8a;
    font-weight: 600;
}

.platforms-page a:focus-visible,
.platforms-page button:focus-visible {
    outline: 3px solid #00B4D8;
    outline-offset: 2px;
}

/* Index listing only — do not restyle /platforms/{slug} */
.platforms-index .pf-index-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.platforms-index .pf-index-hero::before,
.platforms-index .pf-index-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.platforms-index .pf-index-hero::before {
    right: -80px;
    top: -60px;
    width: min(50vw, 380px);
    height: min(50vw, 380px);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 70%);
    animation: pf-orb 12s ease-in-out infinite;
}

.platforms-index .pf-index-hero::after {
    left: -100px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    background: rgba(0, 180, 216, 0.25);
    animation: pf-orb 9s ease-in-out infinite reverse;
}

@keyframes pf-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -14px) scale(1.07); }
}

.platforms-index .pf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.platforms-index .pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 30px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.platforms-index .pf-btn:hover,
.platforms-index .pf-btn:focus {
    background: #00B4D8;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.platforms-index .pf-btn-ghost:hover,
.platforms-index .pf-btn-ghost:focus {
    background: #fff;
    color: #0a0933;
}

.platforms-index .pf-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.75rem;
}

.platforms-index .pf-stat strong {
    display: block;
    font-size: 1.6rem;
    color: #d4af37;
    line-height: 1.1;
}

.platforms-index .pf-stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.platforms-index .pf-index-list {
    padding: 2.5rem 0 3rem;
    background: #f6f8fb;
}

.platforms-index .pf-index-list h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.platforms-index .pf-list-intro {
    color: #445;
    margin-bottom: 1.5rem;
    max-width: 40rem;
}

.platforms-index .pf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .platforms-index .pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .platforms-index .pf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.platforms-index .pf-hero h1 {
    color: #fff;
}

.platforms-index .pf-hero .lead {
    color: rgba(255, 255, 255, 0.92);
}

.platforms-index .pf-index-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    animation: pf-in 0.55s ease both;
}

.platforms-index .pf-index-card:nth-child(1) { animation-delay: 0.05s; }
.platforms-index .pf-index-card:nth-child(2) { animation-delay: 0.12s; }
.platforms-index .pf-index-card:nth-child(3) { animation-delay: 0.2s; }
.platforms-index .pf-index-card:nth-child(4) { animation-delay: 0.28s; }
.platforms-index .pf-index-card:nth-child(5) { animation-delay: 0.36s; }
.platforms-index .pf-index-card:nth-child(6) { animation-delay: 0.44s; }

@keyframes pf-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.platforms-index .pf-index-card:hover {
    box-shadow: 0 16px 36px rgba(10, 9, 51, 0.14);
    transform: translateY(-4px);
}

.platforms-index .pf-card-logo {
    position: relative;
    overflow: hidden;
}

.platforms-index .pf-card-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

.platforms-index .pf-index-card:hover .pf-card-logo::after {
    animation: pf-shine 0.85s ease;
}

@keyframes pf-shine {
    to { transform: translateX(120%); }
}

.platforms-index .pf-purpose {
    color: #445;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platforms-index .pf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.platforms-index .pf-meta li {
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 180, 216, 0.12);
    color: #023e8a;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.platforms-index .pf-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.platforms-index .pf-card-actions .pf-btn-outline {
    color: #0a0933;
    border: 1px solid #00B4D8;
    background: transparent;
}

.platforms-index .pf-card-actions .pf-btn-outline:hover,
.platforms-index .pf-card-actions .pf-btn-outline:focus {
    background: #0a0933;
    color: #fff;
    border-color: #0a0933;
}

.platforms-index .pf-empty {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.25rem;
    color: #445;
    margin: 0;
}

.platforms-index .pf-cta {
    background: #0a0933;
    color: #fff;
    padding: 3rem 0;
}

.platforms-index .pf-cta h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
}

.platforms-index .pf-cta p {
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.25rem;
}

.platforms-index .pf-cta .pf-actions {
    margin-top: 1.25rem;
}

@media (max-width: 575.98px) {
    .platforms-index .pf-index-hero,
    .platforms-index .pf-cta {
        padding: 2.25rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platforms-index .pf-index-hero::before,
    .platforms-index .pf-index-hero::after,
    .platforms-index .pf-index-card,
    .platforms-index .pf-btn {
        animation: none !important;
        transition: none !important;
    }
}
