/* Common styles for platform detail pages */

.section-mt {
    margin-top: 100px;
}

.text-center {
    text-align: center;
}

.mb-50 {
    margin-bottom: 50px;
}

.max-800 {
    max-width: 800px;
    margin: 0 auto;
}

.lh-1-2 {
    line-height: 1.2;
}

.lh-1-6 {
    line-height: 1.6;
}

.fs-2-2 {
    font-size: 2.2rem !important;
}

.fs-1-8 {
    font-size: 1.8rem !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.step-icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.hybrid-access-section {
    background: rgba(37, 99, 235, 0.02);
    padding: 60px;
    border-radius: 30px;
}

/* Platform-specific helper classes */
.bg-xtb {
    background: var(--xtb-accent) !important;
    color: #fff !important;
}

.bg-swissborg {
    background: var(--swissborg-accent) !important;
    color: #000 !important;
}

.bg-purple {
    background: #a855f7 !important;
    color: #fff !important;
}

.bg-green {
    background: #10b981 !important;
    color: #fff !important;
}

.max-800-auto {
    max-width: 800px;
    margin: 20px auto !important;
}

.txt-xtb {
    color: var(--xtb-accent) !important;
}

.txt-swissborg {
    color: var(--swissborg-accent) !important;
}

/* Premium Hero Section Base Styles */
.premium-hero-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-image: var(--bg-image);
    border-radius: 24px;
    overflow: hidden;
    margin: 20px 0;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 12, 26, 0.8) 0%, rgba(15, 12, 26, 0.95) 100%);
    z-index: 1;
}

.hero-halo {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: pulse-halo 8s ease-in-out infinite alternate;
}

.halo-top-right {
    top: -200px;
    right: -100px;
}

.halo-bottom-left {
    bottom: -200px;
    left: -100px;
    animation-delay: -4s;
}

@keyframes pulse-halo {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.25;
    }
}

.hero-content-relative {
    position: relative;
    z-index: 10;
}

/* Shared polish for platform detail pages */
.platform-detail-hero {
    padding: 148px 0 88px;
    text-align: center;
}

.platform-detail-hero .hero-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
}

.platform-detail-hero .hero-text {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-detail-hero .hero-title {
    max-width: none !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: clamp(2.95rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.platform-detail-page {
    padding-top: 40px;
}

.platform-detail-page > .tuto-grid:first-of-type {
    margin-top: 20px !important;
    gap: 3rem !important;
    margin-bottom: 64px !important;
}

.platform-intro-card {
    padding: 36px !important;
    margin-bottom: 48px !important;
}

.platform-badge {
    margin-bottom: 14px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.tuto-grid {
    gap: 3rem !important;
    margin-bottom: 84px !important;
}

.tuto-grid[style*="margin-top: 20px"] {
    margin-top: 12px !important;
}

.tuto-grid[style*="margin-top: 40px"] {
    margin-top: 24px !important;
}

.tuto-grid[style*="margin-top: 100px"] {
    margin-top: 72px !important;
}

.warning-banner-premium {
    margin: 44px 0 32px !important;
}

.section-title-premium {
    margin-bottom: 18px !important;
}

.lead-text {
    margin-bottom: 1.1rem !important;
}

.section-header {
    width: 100%;
    max-width: 820px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 28px !important;
    text-align: center;
}

.section-header .section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.76;
}

.platform-detail-page .section-header + .tuto-grid,
.platform-detail-page .section-header + section {
    margin-top: 56px !important;
}

.platform-detail-page .tuto-grid.reverse-layout .tuto-content > a[style*="display: inline-flex"],
.platform-detail-page .tuto-grid.reverse .tuto-content > a[style*="display: inline-flex"] {
    min-width: 220px;
    justify-content: center;
    border-radius: 16px !important;
}

.service-list {
    gap: 22px !important;
    margin: 32px 0 !important;
}

.service-card {
    padding: 24px !important;
}

.tuto-content > a[style*="display: inline-flex"] {
    min-width: 220px;
    justify-content: center;
}

a.btn[style*="padding: 18px 45px"] {
    min-width: 220px;
    text-align: center;
}

.platform-action-block {
    margin: 96px 0 80px !important;
    padding: 68px 56px !important;
    border-radius: 34px !important;
    text-align: center;
}

.platform-action-block > h3 {
    margin-bottom: 20px !important;
}

.platform-action-block > p {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 992px) {
    .platform-detail-hero {
        padding: 132px 0 78px;
    }

    .platform-detail-hero .hero-text {
        max-width: 680px;
    }

    .platform-detail-hero .hero-title {
        font-size: clamp(2.3rem, 8vw, 3.7rem);
        line-height: 1.05;
    }

    .platform-intro-card {
        padding: 30px !important;
        margin-bottom: 40px !important;
    }

    .tuto-grid {
        gap: 2.25rem !important;
        margin-bottom: 64px !important;
    }

    .service-list {
        gap: 18px !important;
    }

    .tuto-grid[style*="margin-top: 100px"] {
        margin-top: 52px !important;
    }

    .platform-action-block {
        padding: 48px 24px !important;
        border-radius: 28px !important;
    }
}
