/* ================================================
           SAFIR 5C Page — Custom Styles
           ================================================ */

        /* --- Hero --- */
        .safir-hero {
            padding-top: 9rem;
            padding-bottom: 5rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .safir-hero::before {
            content: '';
            position: absolute;
            top: -10%;
            left: 50%;
            transform: translateX(-50%);
            width: 900px;
            height: 700px;
            background: radial-gradient(ellipse at 50% 30%, rgba(252, 211, 77, 0.08) 0%, rgba(37, 99, 235, 0.12) 40%, transparent 70%);
            z-index: 0;
            pointer-events: none;
        }

        .safir-hero>* {
            position: relative;
            z-index: 1;
        }

        .safir-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(252, 211, 77, 0.1);
            border: 1px solid rgba(252, 211, 77, 0.3);
            border-radius: 100px;
            padding: 0.4rem 1.2rem;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--color-yellow);
            margin-bottom: 2rem;
        }

        .safir-hero h1 {

            line-height: 1.04;
            margin-bottom: 1.5rem;
            max-width: 1000px;
            margin-left: auto;
            margin-right: auto;
        }

        .safir-hero h1 .highlight {
            color: var(--color-yellow);
            -webkit-text-fill-color: var(--color-yellow);
        }

        .safir-hero .sub {
            font-size: clamp(1.05rem, 2vw, 1.3rem);
            color: #a8b8cc;
            max-width: 680px;
            margin: 0 auto 3rem;
            line-height: 1.65;
        }

        .hero-cta-group {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn-gold {
            background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
            color: #000;
            font-weight: 700;
            padding: 0.9rem 2.2rem;
            border-radius: 50px;
            font-size: 0.95rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 8px 30px rgba(252, 211, 77, 0.35);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.04em;
        }

        .btn-gold:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 40px rgba(252, 211, 77, 0.5);
        }

        .btn-ghost {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #e2e8f0;
            font-weight: 500;
            padding: 0.9rem 2.2rem;
            border-radius: 50px;
            font-size: 0.95rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }

        .btn-ghost:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.35);
            transform: translateY(-2px);
        }

        /* --- Stats Bar --- */
        .stats-bar {
            background: rgba(255, 255, 255, 0.03);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 2.5rem 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            text-align: center;
        }

        .stat-item .stat-num {
            font-family: 'Lora', serif;
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 700;
            color: var(--color-yellow);
            line-height: 1;
            margin-bottom: 0.4rem;
        }

        .stat-item .stat-label {
            font-size: 0.82rem;
            color: #7a8fa6;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 500;
            line-height: 1.4;
        }

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }
        }

        /* --- Architecture Diagram Section --- */
        .arch-section {
            padding: 6rem 0;
        }

        .arch-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 5rem;
            align-items: center;
        }

        @media (max-width: 900px) {
            .arch-grid {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
        }

        .arch-img-wrapper {
            position: relative;
        }

        .arch-img-wrapper::before {
            content: '';
            position: absolute;
            inset: -20px;
            background: radial-gradient(ellipse at center, rgba(252, 211, 77, 0.07) 0%, transparent 65%);
            border-radius: 50%;
            pointer-events: none;
        }

        .arch-img-wrapper img {
            width: 100%;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.07);
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
        }

        .section-label {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--color-yellow);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .section-label::before {
            content: '';
            width: 24px;
            height: 2px;
            background: var(--color-yellow);
            display: inline-block;
        }

        .arch-text h2 {
            text-align: left;
            margin-bottom: 1.25rem;
        }

        .arch-text p {
            color: #a8b8cc;
            line-height: 1.75;
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
        }

        /* --- 5C Layers --- */
        .layers-section {
            padding: 6rem 0;
            background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
        }

        .layers-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .layers-header h2 {
            text-align: center;
        }

        .layers-header p {
            color: #a8b8cc;
            max-width: 580px;
            margin: 0 auto;
            font-size: 1.05rem;
            line-height: 1.65;
        }

        .layers-stack {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            max-width: 900px;
            margin: 0 auto;
        }

        .layer-card {
            display: grid;
            grid-template-columns: 72px 1fr;
            gap: 1.5rem;
            align-items: start;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            cursor: default;
        }

        .layer-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--layer-color, var(--color-yellow));
            opacity: 0;
            transition: opacity 0.4s;
        }

        .layer-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.12);
            transform: translateX(8px);
        }

        .layer-card:hover::before {
            opacity: 1;
        }

        .layer-num {
            width: 52px;
            height: 52px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Lora', serif;
            font-size: 1.4rem;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--layer-color, var(--color-yellow));
            flex-shrink: 0;
        }

        .layer-content h3 {
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: none;
            letter-spacing: 0;
            margin-bottom: 0.4rem;
            color: white;
        }

        .layer-content .layer-role {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--layer-color, var(--color-yellow));
            margin-bottom: 0.75rem;
        }

        .layer-content p {
            color: #8a9bb0;
            font-size: 0.95rem;
            line-height: 1.65;
            margin: 0;
        }

        .layer-1 {
            --layer-color: #fcd34d;
        }

        .layer-2 {
            --layer-color: #60a5fa;
        }

        .layer-3 {
            --layer-color: #34d399;
        }

        .layer-4 {
            --layer-color: #a78bfa;
        }

        .layer-5 {
            --layer-color: #f87171;
        }

        .layer-6 {
            --layer-color: #fb923c;
        }

        /* --- Why SAFIR Wins --- */
        .versus-section {
            padding: 6rem 0;
        }

        .versus-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .versus-grid {
            display: grid;
            grid-template-columns: 1fr 80px 1fr;
            gap: 0;
            align-items: stretch;
            max-width: 900px;
            margin: 0 auto;
        }

        .vs-col {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 16px;
            padding: 2.5rem 2rem;
        }

        .vs-col.winner {
            background: rgba(252, 211, 77, 0.04);
            border-color: rgba(252, 211, 77, 0.25);
            position: relative;
        }

        .vs-col.winner::before {
            content: '★ WINNER';
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--color-yellow);
            color: #000;
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            padding: 0.25rem 0.8rem;
            border-radius: 100px;
            white-space: nowrap;
        }

        .vs-col h3 {
            text-align: center;
            font-size: 1.05rem;
            margin-bottom: 2rem;
            text-transform: none;
            letter-spacing: 0;
        }

        .vs-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            color: #4a5568;
        }

        .vs-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .vs-item .icon-ok {
            color: #34d399;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .vs-item .icon-fail {
            color: #f87171;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .vs-item span {
            color: #a8b8cc;
        }

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

            .vs-divider {
                padding: 1rem 0;
            }
        }

        /* --- Methodology --- */
        .methodology-section {
            padding: 6rem 0;
            background: rgba(0, 0, 0, 0.15);
        }

        .methodology-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

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

        .method-card {
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 14px;
            padding: 2rem;
            transition: all 0.3s;
        }

        .method-card:hover {
            background: rgba(255, 255, 255, 0.045);
            border-color: rgba(252, 211, 77, 0.2);
            transform: translateY(-4px);
        }

        .method-icon {
            width: 44px;
            height: 44px;
            background: rgba(252, 211, 77, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.25rem;
            color: var(--color-yellow);
        }

        .method-card h3 {
            font-size: 1rem;
            font-weight: 700;
            text-transform: none;
            letter-spacing: 0;
            margin-bottom: 0.6rem;
            color: white;
        }

        .method-card p {
            font-size: 0.9rem;
            color: #8a9bb0;
            line-height: 1.65;
            margin: 0;
        }

        /* --- CTA Banner --- */
        .cta-banner {
            padding: 6rem 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .cta-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at 50% 50%, rgba(252, 211, 77, 0.06) 0%, transparent 65%);
            pointer-events: none;
        }

        .cta-banner h2 {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 1.5rem;
        }

        .cta-banner p {
            color: #a8b8cc;
            max-width: 550px;
            margin: 0 auto 2.5rem;
            font-size: 1.05rem;
            line-height: 1.65;
        }

        /* --- Bias Guard --- */
        .bias-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

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

        .bias-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 14px;
            padding: 2rem;
            display: flex;
            gap: 1.25rem;
            align-items: flex-start;
            transition: all 0.3s;
        }

        .bias-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.12);
        }

        .bias-card .bias-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--color-yellow);
            background: rgba(252, 211, 77, 0.08);
        }

        .bias-card h4 {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 0.4rem;
            color: white;
        }

        .bias-card p {
            font-size: 0.88rem;
            color: #8a9bb0;
            line-height: 1.6;
            margin: 0;
        }

        /* --- Scroll animation --- */
        .fade-up {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* general section spacing */
        .section-spacer {
            padding: 5rem 0;
        }