/* ==========================================================================
   PRIMA FINANCE — HOMEPAGE v2
   Premium fintech design · Bootstrap 4.3.1 · 2026
   Target: Revolut / N26 / Wave Africa level quality
   ========================================================================== */

/* ─── 0. THEME FALLBACKS ──────────────────────────────────────────────────── */
:root {
    --app-them:          #072890;
    --app-second-them:   #e30613;
    --app-primary-light: #0a3ab8;
    --app-primary-dark:  #051c66;
    --app-success:       #28a745;
}

/* ─── 1. DESIGN TOKENS ────────────────────────────────────────────────────── */
:root {
    /* Surfaces */
    --pf-surface:         #ffffff;
    --pf-surface-alt:     #f4f6fc;
    --pf-surface-card:    #ffffff;
    --pf-surface-deep:    #eef1f9;

    /* Text */
    --pf-text:            #0d1226;
    --pf-text-secondary:  #505878;
    --pf-text-muted:      #8b93b0;

    /* Borders */
    --pf-border:          #dde3f0;
    --pf-border-light:    #edf0f7;

    /* Radii */
    --pf-radius-xs:  6px;
    --pf-radius-sm:  10px;
    --pf-radius-md:  16px;
    --pf-radius-lg:  24px;
    --pf-radius-xl:  32px;
    --pf-radius-full: 9999px;

    /* Layered shadows — no flat borders */
    --pf-shadow-xs:
        0 1px 2px rgba(7,40,144,.04);
    --pf-shadow-sm:
        0 2px 6px rgba(7,40,144,.06),
        0 1px 2px rgba(0,0,0,.04);
    --pf-shadow-md:
        0 4px 16px rgba(7,40,144,.08),
        0 2px 4px rgba(0,0,0,.04);
    --pf-shadow-lg:
        0 12px 40px rgba(7,40,144,.12),
        0 4px 10px rgba(0,0,0,.06);
    --pf-shadow-xl:
        0 24px 64px rgba(7,40,144,.16),
        0 8px 20px rgba(7,40,144,.08),
        0 2px 6px rgba(0,0,0,.06);
    --pf-shadow-glow:
        0 0 0 1px rgba(7,40,144,.08),
        0 8px 32px rgba(7,40,144,.18);

    /* Card accent shadows per service */
    --pf-card-glow-blue:   0 8px 32px rgba(7,40,144,.22);
    --pf-card-glow-teal:   0 8px 32px rgba(13,148,136,.22);
    --pf-card-glow-purple: 0 8px 32px rgba(109,40,217,.22);
    --pf-card-glow-green:  0 8px 32px rgba(22,163,74,.22);
    --pf-card-glow-amber:  0 8px 32px rgba(217,119,6,.22);

    /* Timing */
    --pf-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --pf-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --pf-ease-sharp:  cubic-bezier(0.4, 0, 0.2, 1);
    --pf-t1: 0.22s var(--pf-ease-sharp);
    --pf-t2: 0.38s var(--pf-ease-out);
    --pf-t3: 0.55s var(--pf-ease-spring);

    /* Layout */
    --pf-section-y: 96px;
    --pf-wave-h:    80px;

    /* Gradients */
    --pf-grad-primary:
        linear-gradient(135deg, var(--app-primary-dark) 0%, var(--app-them) 50%, var(--app-primary-light) 100%);
    --pf-grad-accent:
        linear-gradient(135deg, var(--app-them) 0%, var(--app-primary-light) 100%);
    --pf-grad-red:
        linear-gradient(135deg, #b91c1c 0%, var(--app-second-them) 100%);
    --pf-grad-teal:
        linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    --pf-grad-purple:
        linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    --pf-grad-green:
        linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    --pf-grad-amber:
        linear-gradient(135deg, #b45309 0%, #d97706 100%);
    --pf-grad-glass:
        linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 100%);
}

/* ─── 2. KEYFRAMES ────────────────────────────────────────────────────────── */
@keyframes pf-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes pf-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-18px) rotate(1.5deg); }
    66%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes pf-float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-24px) rotate(2deg); }
}
@keyframes pf-pulse-ring {
    0%   { transform: scale(1);    opacity: 0.6; }
    100% { transform: scale(1.6);  opacity: 0; }
}
@keyframes pf-spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes pf-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes pf-pop-in {
    0%   { opacity: 0; transform: scale(0.85) translateY(16px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pf-counter-bg {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
@keyframes pf-border-rotate {
    from { --pf-angle: 0deg; }
    to   { --pf-angle: 360deg; }
}

/* ─── 3. SCROLL REVEAL ────────────────────────────────────────────────────── */
.pf-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity  0.75s var(--pf-ease-out),
        transform 0.75s var(--pf-ease-out);
}
.pf-reveal--left  { transform: translateX(-48px) translateY(0); }
.pf-reveal--right { transform: translateX(48px) translateY(0); }
.pf-reveal--scale { transform: scale(0.9) translateY(0); }
.pf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.pf-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   0.55s var(--pf-ease-out),
        transform 0.55s var(--pf-ease-out);
}
.pf-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.pf-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.pf-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.pf-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.pf-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.pf-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
.pf-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .pf-reveal, .pf-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ─── 4. SHARED SECTION LAYOUT ────────────────────────────────────────────── */
.pf-section {
    padding: var(--pf-section-y) 0;
    position: relative;
    background: var(--pf-surface);
}
.pf-section--alt {
    background: var(--pf-surface-alt);
}

/* Wave dividers: each section that needs a top wave gets
   a before pseudo-element with an SVG data-URI. */
.pf-section-wave-top::before,
.pf-stats-wave-top::before,
.pf-cta-wave-top::before {
    content: '';
    display: block;
    position: absolute;
    top: calc(-1 * var(--pf-wave-h) + 2px);
    left: 0; right: 0;
    height: var(--pf-wave-h);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

/* Section label pill */
.pf-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--app-them);
    background: rgba(7,40,144,.07);
    padding: 6px 16px;
    border-radius: var(--pf-radius-full);
    margin-bottom: 16px;
    border: 1px solid rgba(7,40,144,.12);
}
.pf-section-label i { font-size: 10px; }

/* Section heading block */
.pf-section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.pf-section-header h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--pf-text);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    line-height: 1.18;
}
.pf-section-header h2 span,
.pf-grad-text {
    background: var(--pf-grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pf-section-header p {
    font-size: 17px;
    color: var(--pf-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ─── 5. BUTTON SYSTEM ────────────────────────────────────────────────────── */
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: var(--pf-radius-sm);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition:
        transform var(--pf-t3),
        box-shadow var(--pf-t1),
        background var(--pf-t1),
        color var(--pf-t1),
        opacity var(--pf-t1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.pf-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--pf-t1);
    border-radius: inherit;
}
.pf-btn:hover::after  { background: rgba(255,255,255,0.08); }
.pf-btn:active::after { background: rgba(0,0,0,0.06); }
.pf-btn:hover  { transform: translateY(-3px); }
.pf-btn:active { transform: translateY(0); }

.pf-btn--primary {
    background: #fff;
    color: var(--app-them);
    box-shadow: 0 4px 20px rgba(0,0,0,.16), 0 1px 4px rgba(0,0,0,.08);
}
.pf-btn--primary:hover {
    background: #f0f4ff;
    color: var(--app-them);
    box-shadow: 0 10px 32px rgba(0,0,0,.22);
}

.pf-btn--outline {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pf-btn--outline:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.7);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.pf-btn--blue {
    background: var(--pf-grad-accent);
    color: #fff;
    box-shadow: 0 4px 18px rgba(7,40,144,.30);
}
.pf-btn--blue:hover {
    box-shadow: 0 10px 32px rgba(7,40,144,.42);
    color: #fff;
}

.pf-btn--ghost {
    background: transparent;
    color: var(--app-them);
    box-shadow: inset 0 0 0 1.5px var(--pf-border);
}
.pf-btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--app-them);
    background: rgba(7,40,144,.04);
    color: var(--app-them);
}

/* ─── 6. HERO ─────────────────────────────────────────────────────────────── */
.pf-hero {
    position: relative;
    color: #fff;
    padding: 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    /* Extra padding-bottom for wave overlap */
    padding-bottom: var(--pf-wave-h);
}

/* Background image + gradient base */
.pf-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: var(--pf-grad-primary);
}
.pf-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Overlay: rich gradient toward left */
.pf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            108deg,
            rgba(5,28,102,.94) 0%,
            rgba(7,40,144,.86) 40%,
            rgba(10,58,184,.50) 70%,
            rgba(10,58,184,.20) 100%
        );
}

/* Decorative animated blobs */
.pf-hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}
.pf-hero-blob--1 {
    width: 520px; height: 520px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 65%);
    animation: pf-float-slow 10s ease-in-out infinite;
}
.pf-hero-blob--2 {
    width: 320px; height: 320px;
    bottom: 60px; right: 15%;
    background: radial-gradient(circle, rgba(227,6,19,.12) 0%, rgba(227,6,19,0) 65%);
    animation: pf-float 7s ease-in-out infinite;
    animation-delay: -3s;
}
.pf-hero-blob--3 {
    width: 200px; height: 200px;
    top: 30%; left: 55%;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 65%);
    animation: pf-float 9s ease-in-out infinite;
    animation-delay: -6s;
}

/* Dot-grid noise texture */
.pf-hero-dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
}

/* Hero content */
.pf-hero > .container {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 36px;
}
.pf-hero-content { position: relative; }

/* Agrement badge */
.pf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 20px;
    border-radius: var(--pf-radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    letter-spacing: 0.02em;
    animation: pf-pop-in 0.8s var(--pf-ease-out) both;
    animation-delay: 0.2s;
}
.pf-hero-badge i { color: #fbbf24; }

.pf-hero h1 {
    font-size: clamp(30px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 22px;
    max-width: 580px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 24px rgba(0,0,0,.22);
    animation: pf-pop-in 0.8s var(--pf-ease-out) both;
    animation-delay: 0.35s;
}

.pf-hero-subtitle {
    font-size: 17px;
    opacity: .88;
    max-width: 500px;
    line-height: 1.72;
    margin-bottom: 38px;
    font-weight: 400;
    animation: pf-pop-in 0.8s var(--pf-ease-out) both;
    animation-delay: 0.5s;
}

.pf-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: pf-pop-in 0.8s var(--pf-ease-out) both;
    animation-delay: 0.65s;
}

/* Stats bar — glassmorphism panel */
.pf-hero-stats-bar {
    display: flex;
    gap: 0;
    margin-top: 44px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--pf-radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.2);
    animation: pf-pop-in 0.8s var(--pf-ease-out) both;
    animation-delay: 0.8s;
    max-width: 480px;
}
.pf-hero-stat {
    flex: 1;
    text-align: center;
    padding: 18px 12px;
    position: relative;
}
.pf-hero-stat + .pf-hero-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; height: 60%;
    width: 1px;
    background: rgba(255,255,255,.2);
}
.pf-hero-stat-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
}
.pf-hero-stat-label {
    font-size: 11px;
    opacity: .62;
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Wave bottom of hero ── */
.pf-hero-wave {
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}
.pf-hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ── Hero Showcase (right column) ── */
.pf-hero-showcase {
    position: relative;
    animation: pf-pop-in 0.9s var(--pf-ease-out) both;
    animation-delay: 0.6s;
}

.pf-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pf-showcase-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--pf-radius-sm);
    padding: 16px 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s var(--pf-ease-out);
    cursor: pointer;
}
.pf-showcase-card:hover {
    background: rgba(255,255,255,.18);
    transform: translateX(6px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.pf-showcase-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255,255,255,.15);
}
.pf-showcase-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.pf-showcase-card-body {
    flex: 1;
    min-width: 0;
}
.pf-showcase-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-showcase-card-desc {
    font-size: 12px;
    opacity: .7;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-showcase-card-arrow {
    font-size: 12px;
    opacity: .5;
    flex-shrink: 0;
    transition: opacity .2s, transform .2s;
}
.pf-showcase-card:hover .pf-showcase-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.pf-showcase-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: .6;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pf-showcase-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.2);
}

/* Article variant */
.pf-showcase-card--article .pf-showcase-card-icon {
    width: 60px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
}
.pf-showcase-card-meta {
    font-size: 11px;
    opacity: .55;
    margin-top: 2px;
}

/* ─── 7. SERVICES ─────────────────────────────────────────────────────────── */
#pf-services {
    padding-top: calc(var(--pf-section-y) + 20px);
    background: var(--pf-surface);
    position: relative;
    z-index: 1;
}

/* Per-card accent colors — cycle via nth-child on .col wrapper */
.pf-service-card { --pf-card-accent: var(--pf-grad-accent); --pf-card-glow: var(--pf-card-glow-blue); }
#pf-services-grid > div:nth-child(5n+2) .pf-service-card { --pf-card-accent: var(--pf-grad-teal);   --pf-card-glow: var(--pf-card-glow-teal); }
#pf-services-grid > div:nth-child(5n+3) .pf-service-card { --pf-card-accent: var(--pf-grad-purple); --pf-card-glow: var(--pf-card-glow-purple); }
#pf-services-grid > div:nth-child(5n+4) .pf-service-card { --pf-card-accent: var(--pf-grad-green);  --pf-card-glow: var(--pf-card-glow-green); }
#pf-services-grid > div:nth-child(5n+5) .pf-service-card { --pf-card-accent: var(--pf-grad-amber);  --pf-card-glow: var(--pf-card-glow-amber); }

.pf-service-card {
    background: var(--pf-surface-card);
    border-radius: var(--pf-radius-md);
    padding: 28px 22px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--pf-shadow-sm);
    border: 1px solid transparent;
    transition:
        transform  0.45s var(--pf-ease-spring),
        box-shadow 0.3s var(--pf-ease-sharp),
        border-color 0.3s var(--pf-ease-sharp);
    /* 3D perspective on parent */
    transform-style: preserve-3d;
    cursor: default;
}

/* Top accent bar — slides in on hover */
.pf-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--pf-card-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--pf-ease-out);
    border-radius: 4px 4px 0 0;
}

/* Background glow blob */
.pf-service-card::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: var(--pf-card-accent);
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.5s var(--pf-ease-out), transform 0.5s var(--pf-ease-out);
    transform: scale(0.6);
    pointer-events: none;
    z-index: 0;
}

.pf-service-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-1deg) scale(1.01);
    box-shadow: var(--pf-card-glow), var(--pf-shadow-xl);
    border-color: rgba(255,255,255,.9);
}
.pf-service-card:hover::before { transform: scaleX(1); }
.pf-service-card:hover::after  { opacity: .09; transform: scale(1.2); }

/* Icon wrapper */
.pf-service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--pf-radius-sm);
    background: var(--pf-card-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
    transition: transform var(--pf-t3), box-shadow var(--pf-t1);
    box-shadow: 0 6px 20px rgba(7,40,144,.25);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
/* Animated ring on icon */
.pf-service-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--pf-card-accent);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s, transform 0.3s;
    filter: blur(8px);
}
.pf-service-card:hover .pf-service-icon {
    transform: rotate(-10deg) scale(1.12);
    box-shadow: 0 10px 28px rgba(7,40,144,.32);
}
.pf-service-card:hover .pf-service-icon::after { opacity: .45; }

.pf-service-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-text);
    margin-bottom: 8px;
    letter-spacing: -0.015em;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}
.pf-service-card p {
    font-size: 13px;
    color: var(--pf-text-secondary);
    line-height: 1.65;
    flex: 1;
    margin: 0;
    position: relative;
    z-index: 1;
}
.pf-service-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    margin-top: 22px;
    transition: gap var(--pf-t1), color var(--pf-t1);
    position: relative;
    z-index: 1;
    /* Dynamic color from gradient — use first stop */
    color: var(--app-them);
}
.pf-service-link:hover  { gap: 14px; text-decoration: none; }
.pf-service-link i      { font-size: 12px; }

/* Service card with image */
.pf-service-card--has-img {
    padding: 0;
}
.pf-service-card--has-img .pf-service-body {
    padding: 18px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pf-service-img {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: var(--pf-radius-md) var(--pf-radius-md) 0 0;
}
.pf-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--pf-ease-out);
}
.pf-service-card:hover .pf-service-img img {
    transform: scale(1.08);
}
.pf-service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7,40,144,.08) 100%);
    pointer-events: none;
}
.pf-service-card--has-img .pf-service-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    margin-top: -28px;
    margin-bottom: 12px;
    border: 3px solid var(--pf-surface-card);
    position: relative;
    z-index: 2;
}

/* Skeleton loader */
.pf-service-skeleton {
    background: var(--pf-surface-card);
    border-radius: var(--pf-radius-lg);
    padding: 36px 30px;
    height: 270px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--pf-shadow-sm);
}
.pf-service-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(7,40,144,.05) 50%, transparent 100%);
    animation: pf-shimmer 1.6s infinite;
}

/* ─── 7b. CATEGORY TABS ──────────────────────────────────────────────────── */
.pf-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}
.pf-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--pf-radius-full);
    border: 1.5px solid var(--pf-border);
    background: var(--pf-surface-card);
    color: var(--pf-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--pf-ease-sharp);
    white-space: nowrap;
}
.pf-cat-tab i {
    font-size: 13px;
    opacity: .7;
}
.pf-cat-tab:hover {
    border-color: var(--app-them);
    color: var(--app-them);
    background: rgba(7,40,144,.04);
}
.pf-cat-tab.active {
    background: var(--pf-grad-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(7,40,144,.3);
}
.pf-cat-tab.active i { opacity: 1; }

/* Type badge on service cards */
.pf-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: var(--pf-radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 3;
    backdrop-filter: blur(6px);
}
.pf-type-badge--product {
    background: rgba(7,40,144,.85);
    color: #fff;
}
.pf-type-badge--service {
    background: rgba(13,148,136,.85);
    color: #fff;
}
/* When card has no image, position badge in card body */
.pf-service-card:not(.pf-service-card--has-img) .pf-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

@media (max-width: 575px) {
    .pf-cat-tabs { gap: 6px; }
    .pf-cat-tab { padding: 6px 12px; font-size: 12px; }
    .pf-cat-tab span { display: none; }
    .pf-cat-tab i { font-size: 16px; opacity: 1; }
    .pf-cat-tab.active span { display: inline; }
}

/* ─── 8. WHY CHOOSE US ────────────────────────────────────────────────────── */
.pf-section--alt {
    position: relative;
}

/* Angled top edge on alt sections */
.pf-section--alt::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--pf-surface);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
    pointer-events: none;
    z-index: 1;
}

.pf-why-card {
    display: flex;
    gap: 22px;
    padding: 32px 28px;
    border-radius: var(--pf-radius-lg);
    background: var(--pf-surface-card);
    box-shadow: var(--pf-shadow-md);
    height: 100%;
    transition:
        transform 0.4s var(--pf-ease-spring),
        box-shadow 0.3s var(--pf-ease-sharp);
    position: relative;
    overflow: hidden;
}
.pf-why-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--pf-grad-accent);
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--pf-ease-out);
}
.pf-why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-xl);
}
.pf-why-card:hover::before { transform: scaleY(1); }

.pf-why-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--pf-radius-md);
    background: rgba(7,40,144,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    color: var(--app-them);
    transition: transform var(--pf-t3), background var(--pf-t1), color var(--pf-t1);
}
.pf-why-card:hover .pf-why-icon {
    background: var(--pf-grad-accent);
    color: #fff;
    transform: rotate(-8deg) scale(1.1);
}
.pf-why-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--pf-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.pf-why-text p {
    font-size: 14px;
    color: var(--pf-text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* ─── 9. STATS ────────────────────────────────────────────────────────────── */
.pf-stats {
    position: relative;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    padding: 80px 0;
}

/* Animated gradient background */
.pf-stats-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        -45deg,
        var(--app-primary-dark),
        var(--app-them),
        var(--app-primary-light),
        #1a47d4
    );
    background-size: 400% 400%;
    animation: pf-counter-bg 10s ease infinite;
}

/* Dot-grid pattern */
.pf-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
}

/* Decorative large ring */
.pf-stats::after {
    content: '';
    position: absolute;
    right: -120px; top: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,.04);
    z-index: -1;
    pointer-events: none;
}

/* Wave top/bottom */
.pf-stats-wave-top,
.pf-stats-wave-bottom {
    position: absolute;
    left: 0; right: 0;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}
.pf-stats-wave-top    { top: -2px; }
.pf-stats-wave-bottom { bottom: -2px; transform: rotate(180deg); }
.pf-stats-wave-top svg,
.pf-stats-wave-bottom svg {
    display: block;
    width: 100%;
    height: 64px;
}

.pf-stat-item {
    text-align: center;
    padding: 20px 16px;
    position: relative;
}
.pf-stat-item + .pf-stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 18%; height: 64%;
    width: 1px;
    background: rgba(255,255,255,.15);
}
.pf-stat-value {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.pf-stat-label {
    font-size: 13px;
    opacity: .7;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── 10. HOW IT WORKS (STEPS) ────────────────────────────────────────────── */
.pf-steps-section {
    background: var(--pf-surface);
    padding-top: calc(var(--pf-section-y) + 32px);
}

/* Connector line via row pseudo-element trick (positioned inside .pf-steps-track) */
.pf-steps-track {
    position: relative;
}
.pf-steps-track::before {
    content: '';
    position: absolute;
    top: 40px; left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    height: 2px;
    background: linear-gradient(to right,
        var(--app-them)      0%,
        var(--app-primary-light) 50%,
        rgba(7,40,144,.15)   100%
    );
    z-index: 0;
}

.pf-step {
    text-align: center;
    padding: 20px 16px;
    position: relative;
    z-index: 1;
}

/* Number circle with pulsing ring */
.pf-step-number {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--pf-grad-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 22px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 6px 24px rgba(7,40,144,.30),
        0 2px 6px rgba(0,0,0,.08);
    transition: transform var(--pf-t3), box-shadow var(--pf-t1);
}
/* Pulse ring (static, animates on hover) */
.pf-step-number::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(7,40,144,.18);
    transition: inset var(--pf-t3), border-color var(--pf-t1);
}
/* Animated outer ring */
.pf-step-number::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(7,40,144,.12);
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.3s;
}
.pf-step:hover .pf-step-number {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 12px 36px rgba(7,40,144,.38), 0 4px 10px rgba(0,0,0,.1);
}
.pf-step:hover .pf-step-number::before { inset: -14px; border-color: rgba(7,40,144,.25); }
.pf-step:hover .pf-step-number::after  {
    animation: pf-pulse-ring 0.8s var(--pf-ease-out) forwards;
}

.pf-step h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pf-text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.pf-step p {
    font-size: 14px;
    color: var(--pf-text-secondary);
    line-height: 1.65;
    margin: 0;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── 11. TESTIMONIALS ────────────────────────────────────────────────────── */
.pf-testimonial-card {
    background: var(--pf-surface-card);
    border-radius: var(--pf-radius-lg);
    padding: 36px 30px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--pf-shadow-md);
    border-left: 4px solid transparent;
    border-left-color: var(--app-them);
    transition:
        transform  0.4s var(--pf-ease-spring),
        box-shadow 0.3s var(--pf-ease-sharp);
}
/* Decorative large quote mark */
.pf-testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px; right: 22px;
    font-size: 96px;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    background: var(--pf-grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: .12;
    pointer-events: none;
    user-select: none;
}
/* Background blob glow */
.pf-testimonial-card::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    background: var(--pf-grad-accent);
    opacity: 0;
    border-radius: 50%;
    filter: blur(50px);
    transition: opacity 0.5s;
    pointer-events: none;
}
.pf-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pf-shadow-xl);
}
.pf-testimonial-card:hover::after { opacity: .05; }

/* Nth-child border accents */
#pf-testimonials-grid .col-md-4:nth-child(2) .pf-testimonial-card { border-left-color: #0d9488; }
#pf-testimonials-grid .col-md-4:nth-child(3) .pf-testimonial-card { border-left-color: var(--app-second-them); }

.pf-testimonial-stars {
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    gap: 3px;
}
.pf-testimonial-text {
    font-size: 15px;
    color: var(--pf-text-secondary);
    line-height: 1.8;
    flex: 1;
    font-style: italic;
    position: relative;
}
.pf-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--pf-border-light);
}
.pf-testimonial-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--pf-grad-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(7,40,144,.25);
    border: 2px solid rgba(255,255,255,.8);
}
.pf-testimonial-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
/* Verified badge */
.pf-testimonial-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--app-success);
    background: rgba(40,167,69,.1);
    padding: 2px 8px;
    border-radius: var(--pf-radius-full);
    margin-top: 4px;
}
.pf-testimonial-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--pf-text);
    line-height: 1.2;
}
.pf-testimonial-position {
    font-size: 12px;
    color: var(--pf-text-muted);
    margin-top: 3px;
}

/* ─── 12. CTA ─────────────────────────────────────────────────────────────── */
.pf-cta {
    position: relative;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Background — animated gradient */
.pf-cta-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        -45deg,
        var(--app-primary-dark),
        var(--app-them),
        #1a47d4,
        var(--app-primary-dark)
    );
    background-size: 400% 400%;
    animation: pf-counter-bg 12s ease infinite;
}

/* Cross-hatch texture */
.pf-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.015) 0,
            rgba(255,255,255,.015) 1px,
            transparent 1px,
            transparent 50%
        );
    background-size: 24px 24px;
    z-index: -1;
}

/* Red accent glow */
.pf-cta::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 240px;
    background: radial-gradient(ellipse, rgba(227,6,19,.18) 0%, transparent 70%);
    z-index: -1;
}

/* Wave top and bottom */
.pf-cta-wave-top,
.pf-cta-wave-bottom {
    position: absolute;
    left: 0; right: 0;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}
.pf-cta-wave-top    { top: -2px; }
.pf-cta-wave-bottom { bottom: -2px; transform: rotate(180deg); }
.pf-cta-wave-top svg,
.pf-cta-wave-bottom svg {
    display: block;
    width: 100%;
    height: 72px;
}

.pf-cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
    position: relative;
    z-index: 1;
}
.pf-cta p {
    font-size: 18px;
    opacity: .85;
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}
.pf-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.pf-cta-trust {
    display: flex;
    gap: 36px;
    justify-content: center;
    margin-top: 44px;
    opacity: .6;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}
.pf-cta-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── 13. NEWS ────────────────────────────────────────────────────────────── */
.pf-news-card {
    background: var(--pf-surface-card);
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pf-shadow-md);
    transition:
        transform  0.4s var(--pf-ease-spring),
        box-shadow 0.3s var(--pf-ease-sharp);
}
.pf-news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pf-shadow-xl);
}

.pf-news-img-wrap {
    overflow: hidden;
    position: relative;
}
.pf-news-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(5,28,102,.5) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}
.pf-news-card:hover .pf-news-img-wrap::after { opacity: 1; }

.pf-news-img {
    width: 100%; height: 220px;
    object-fit: cover;
    transition: transform 0.7s var(--pf-ease-out);
    display: block;
}
.pf-news-card:hover .pf-news-img { transform: scale(1.06); }

.pf-news-category {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 1;
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    background: var(--pf-grad-accent);
    padding: 5px 14px;
    border-radius: var(--pf-radius-full);
    box-shadow: 0 2px 10px rgba(7,40,144,.3);
}
.pf-news-body {
    padding: 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pf-news-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--pf-text);
    margin-bottom: 14px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}
.pf-news-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--pf-t1);
}
.pf-news-title a:hover { color: var(--app-them); }
.pf-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--pf-border-light);
}
.pf-news-date {
    font-size: 12px;
    color: var(--pf-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.pf-news-readmore {
    font-size: 12px;
    font-weight: 700;
    color: var(--app-them);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--pf-t1), color var(--pf-t1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pf-news-readmore:hover {
    gap: 10px;
    text-decoration: none;
    color: var(--app-primary-dark);
}

/* ─── 14. FAQ ─────────────────────────────────────────────────────────────── */
.pf-faq-item {
    background: var(--pf-surface-card);
    border-radius: var(--pf-radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--pf-shadow-sm);
    border-left: 3px solid transparent;
    transition:
        border-left-color 0.3s,
        box-shadow 0.3s var(--pf-ease-sharp),
        transform 0.3s var(--pf-ease-out);
}
.pf-faq-item:hover  { box-shadow: var(--pf-shadow-md); transform: translateX(3px); }
.pf-faq-item.active {
    border-left-color: var(--app-them);
    box-shadow: var(--pf-shadow-lg);
    transform: translateX(3px);
}

.pf-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-text);
    transition: color var(--pf-t1);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.pf-faq-question:hover       { color: var(--app-them); }
.pf-faq-item.active .pf-faq-question { color: var(--app-them); }

.pf-faq-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(7,40,144,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: background var(--pf-t1), transform var(--pf-t1);
}
.pf-faq-icon i {
    font-size: 12px;
    color: var(--app-them);
    transition: transform 0.4s var(--pf-ease-out), color var(--pf-t1);
}
.pf-faq-item.active .pf-faq-icon { background: var(--app-them); }
.pf-faq-item.active .pf-faq-icon i {
    color: #fff;
    transform: rotate(180deg);
}

.pf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.pf-faq-answer-inner {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--pf-text-secondary);
    line-height: 1.8;
    border-top: 1px solid var(--pf-border-light);
    padding-top: 18px;
    margin: 0 24px;
    padding-left: 0;
    padding-right: 0;
}
.pf-faq-item.active .pf-faq-answer { max-height: 400px; }

/* ─── 15. PARTNERS ────────────────────────────────────────────────────────── */
.pf-partners {
    background: linear-gradient(165deg, #f0f4ff 0%, #fff 40%, #f8faff 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.pf-partners::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--pf-border), transparent);
}
/* Decorative floating shapes */
.pf-partners::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(7,40,144,.04) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px; right: -100px;
    pointer-events: none;
}

/* Partners grid */
.pf-partners-marquee {
    padding: 30px 0 10px;
}
.pf-partners-track {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Partner card - glass effect with depth */
.pf-partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 210px;
    height: 110px;
    padding: 22px 32px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(7,40,144,.08);
    border-radius: 18px;
    text-decoration: none;
    position: relative;
    box-shadow:
        0 2px 8px rgba(7,40,144,.04),
        0 8px 24px rgba(7,40,144,.03);
    transition:
        transform .45s cubic-bezier(.34,1.56,.64,1),
        box-shadow .4s ease,
        border-color .35s ease;
}
/* Shimmer glow on hover */
.pf-partner-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(7,40,144,.15), rgba(227,6,19,.1), rgba(7,40,144,.08));
    opacity: 0;
    z-index: -1;
    transition: opacity .4s ease;
}
.pf-partner-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 12px 28px rgba(7,40,144,.1),
        0 4px 12px rgba(7,40,144,.06);
    border-color: rgba(7,40,144,.18);
    z-index: 2;
}
.pf-partner-card:hover::before {
    opacity: 1;
}
.pf-partner-card img {
    max-height: 56px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s ease;
}
.pf-partner-card:hover img {
    transform: scale(1.06);
}

/* Text-only partner (no logo) */
.pf-partner-text-logo {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .5px;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
    transition: color .3s ease;
}
.pf-partner-card:hover .pf-partner-text-logo {
    color: var(--app-them);
}

/* Stagger entrance animation */
.pf-partners-track .pf-partner-card {
    opacity: 0;
    transform: translateY(20px);
    animation: pf-partnerIn .6s ease forwards;
}
.pf-partners-track .pf-partner-card:nth-child(1) { animation-delay: .1s; }
.pf-partners-track .pf-partner-card:nth-child(2) { animation-delay: .2s; }
.pf-partners-track .pf-partner-card:nth-child(3) { animation-delay: .3s; }
.pf-partners-track .pf-partner-card:nth-child(4) { animation-delay: .35s; }
.pf-partners-track .pf-partner-card:nth-child(5) { animation-delay: .4s; }
.pf-partners-track .pf-partner-card:nth-child(6) { animation-delay: .45s; }

@keyframes pf-partnerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── 16. MORE LINK ───────────────────────────────────────────────────────── */
.pf-more-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--app-them);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: gap var(--pf-t1), color var(--pf-t1);
    position: relative;
}
.pf-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1.5px;
    background: var(--pf-grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--pf-ease-out);
}
.pf-more-link:hover {
    gap: 14px;
    text-decoration: none;
    color: var(--app-primary-dark);
}
.pf-more-link:hover::after { transform: scaleX(1); }

/* ─── 17. SVG WAVE SHAPES (data-URI) ──────────────────────────────────────── */
/*
  All SVG waves are inlined directly in the HTML via .pf-hero-wave,
  .pf-stats-wave-top, .pf-stats-wave-bottom, .pf-cta-wave-top,
  .pf-cta-wave-bottom elements. The styles above size and position them.
  The SVG fill colors mirror the adjacent section backgrounds to create
  seamless flow.
*/

/* ─── 18. DARK MODE ───────────────────────────────────────────────────────── */
.sa-dark {
    --pf-surface:       #0c0d1a;
    --pf-surface-alt:   #101120;
    --pf-surface-card:  #161728;
    --pf-surface-deep:  #0e0f1e;

    --pf-text:          #e8eaf4;
    --pf-text-secondary:#8b93b0;
    --pf-text-muted:    #555d7a;

    --pf-border:        #272940;
    --pf-border-light:  #1e2036;

    --pf-shadow-xs:  0 1px 2px rgba(0,0,0,.3);
    --pf-shadow-sm:  0 2px 6px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2);
    --pf-shadow-md:  0 4px 16px rgba(0,0,0,.4),  0 2px 4px rgba(0,0,0,.2);
    --pf-shadow-lg:  0 12px 40px rgba(0,0,0,.5),  0 4px 10px rgba(0,0,0,.25);
    --pf-shadow-xl:  0 24px 64px rgba(0,0,0,.6),  0 8px 20px rgba(0,0,0,.3);
    --pf-shadow-glow: 0 0 0 1px rgba(126,168,255,.1), 0 8px 32px rgba(7,40,144,.35);

    --pf-card-glow-blue:   0 8px 32px rgba(7,40,144,.45);
    --pf-card-glow-teal:   0 8px 32px rgba(13,148,136,.45);
    --pf-card-glow-purple: 0 8px 32px rgba(109,40,217,.45);
    --pf-card-glow-green:  0 8px 32px rgba(22,163,74,.45);
    --pf-card-glow-amber:  0 8px 32px rgba(217,119,6,.45);
}

/* Dark: link colors */
.sa-dark .pf-service-link,
.sa-dark .pf-news-readmore,
.sa-dark .pf-more-link { color: #7ea8ff; }
.sa-dark .pf-service-link:hover,
.sa-dark .pf-news-readmore:hover,
.sa-dark .pf-more-link:hover { color: #a8c4ff; }

/* Dark: section dividers — reverse clip direction */
.sa-dark .pf-section--alt::before { background: var(--pf-surface); }

/* Dark: icons / pill */
.sa-dark .pf-section-label {
    color: #7ea8ff;
    background: rgba(126,168,255,.08);
    border-color: rgba(126,168,255,.15);
}
.sa-dark .pf-why-icon { background: rgba(126,168,255,.1); color: #7ea8ff; }
.sa-dark .pf-why-card:hover .pf-why-icon { background: var(--pf-grad-accent); color: #fff; }

/* Dark: service card borders */
.sa-dark .pf-service-card:hover { border-color: rgba(126,168,255,.2); }
/* Dark: category tabs */
.sa-dark .pf-cat-tab { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #b0b8d0; }
.sa-dark .pf-cat-tab:hover { background: rgba(126,168,255,.1); border-color: rgba(126,168,255,.3); color: #7ea8ff; }
.sa-dark .pf-cat-tab.active { background: var(--pf-grad-accent); color: #fff; border-color: transparent; }

/* Dark: FAQ */
.sa-dark .pf-faq-icon { background: rgba(126,168,255,.1); }
.sa-dark .pf-faq-icon i { color: #7ea8ff; }
.sa-dark .pf-faq-item.active .pf-faq-icon { background: var(--app-them); }
.sa-dark .pf-faq-item.active .pf-faq-icon i { color: #fff; }

/* Dark: testimonial quote mark */
.sa-dark .pf-testimonial-card::before { opacity: .08; }

/* Dark: steps connector */
.sa-dark .pf-steps-track::before {
    background: linear-gradient(to right, var(--app-them), rgba(126,168,255,.3), rgba(126,168,255,.1));
}

/* Dark: hero badge */
.sa-dark .pf-hero-badge {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,168,255,.15);
}

/* Dark: partners */
.sa-dark .pf-partners { background: linear-gradient(165deg, #0a0f1e 0%, #0f172a 40%, #0a1228 100%); }
.sa-dark .pf-partners::before { background: linear-gradient(to right, transparent, var(--pf-border), transparent); }
.sa-dark .pf-partners::after { background: radial-gradient(circle, rgba(126,168,255,.04) 0%, transparent 70%); }
.sa-dark .pf-partner-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); box-shadow: 0 2px 8px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.1); }
.sa-dark .pf-partner-card::before { background: linear-gradient(135deg, rgba(126,168,255,.2), rgba(168,196,255,.1), rgba(126,168,255,.08)); }
.sa-dark .pf-partner-card:hover { border-color: rgba(126,168,255,.25); box-shadow: 0 12px 32px rgba(126,168,255,.08), 0 4px 12px rgba(0,0,0,.2); }
.sa-dark .pf-partner-text-logo { color: #cbd5e1; }
.sa-dark .pf-partner-card:hover .pf-partner-text-logo { color: #7ea8ff; }

/* Dark: glass stats bar */
.sa-dark .pf-hero-stats-bar {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}

/* Dark: buttons */
.sa-dark .pf-btn--ghost { box-shadow: inset 0 0 0 1.5px var(--pf-border); color: #7ea8ff; }
.sa-dark .pf-btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px #7ea8ff;
    background: rgba(126,168,255,.07);
    color: #7ea8ff;
}
.sa-dark .pf-btn--primary { background: #e8eaf4; color: var(--app-them); }
.sa-dark .pf-btn--primary:hover { background: #fff; }

/* ─── 19. TABLET (≤ 991px) ────────────────────────────────────────────────── */
@media (max-width: 991px) {
    :root { --pf-section-y: 68px; --pf-wave-h: 56px; }

    .pf-hero           { min-height: 400px; padding-bottom: var(--pf-wave-h); }
    .pf-hero > .container { padding-top: 76px; }
    .pf-hero-stats-bar { max-width: 100%; }
    .pf-hero-stat-value { font-size: 22px; }
    .pf-hero-wave svg  { height: 56px; }

    .pf-section-header { margin-bottom: 44px; }
    .pf-section-header h2 { font-size: 28px; }

    .pf-stat-item + .pf-stat-item::before { display: none; }
    .pf-stats-wave-top svg,
    .pf-stats-wave-bottom svg { height: 50px; }

    .pf-cta            { padding: 72px 0; }
    .pf-cta-wave-top svg,
    .pf-cta-wave-bottom svg { height: 56px; }

    /* Steps: hide connector line on tablet (2-col) */
    .pf-steps-track::before { display: none; }

    .pf-service-card:hover {
        /* Reduce 3D tilt on touch-ish devices */
        transform: translateY(-8px) scale(1.01);
    }
}

/* ─── 20. MOBILE (≤ 767px) ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    :root { --pf-section-y: 52px; --pf-wave-h: 40px; }

    .pf-hero { min-height: 340px; padding-bottom: var(--pf-wave-h); }
    .pf-hero > .container { padding-top: 48px; padding-bottom: 24px; }
    .pf-hero h1 { font-size: 28px; }
    .pf-hero-subtitle { font-size: 15px; margin-bottom: 28px; }
    .pf-hero-actions { flex-direction: column; }
    .pf-btn { width: 100%; justify-content: center; }
    .pf-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(5,28,102,.94) 0%,
            rgba(7,40,144,.9) 100%
        );
    }
    .pf-hero-stats-bar { max-width: 100%; }
    .pf-hero-wave svg  { height: 40px; }

    .pf-section-header h2 { font-size: 22px; }
    .pf-section-header    { margin-bottom: 36px; }
    .pf-section--alt::before { clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%); height: 40px; }

    .pf-why-card { flex-direction: column; gap: 16px; }
    .pf-why-card::before { display: none; }

    .pf-stats-wave-top svg,
    .pf-stats-wave-bottom svg { height: 36px; }
    .pf-steps-track::before   { display: none; }
    .pf-step p { max-width: 100%; }

    .pf-cta { padding: 56px 0; }
    .pf-cta-actions  { flex-direction: column; align-items: center; }
    .pf-cta-trust    { flex-direction: column; gap: 12px; align-items: center; }
    .pf-cta-wave-top svg,
    .pf-cta-wave-bottom svg { height: 36px; }

    .pf-news-img { height: 185px; }
    .pf-testimonial-card { border-left: none; border-top: 4px solid var(--app-them); }
    #pf-testimonials-grid .col-md-4:nth-child(2) .pf-testimonial-card { border-top-color: #0d9488; }
    #pf-testimonials-grid .col-md-4:nth-child(3) .pf-testimonial-card { border-top-color: var(--app-second-them); }

    .pf-partners { padding: 50px 0 40px; }
    .pf-partners-track { gap: 16px; padding: 0 16px; }
    .pf-partner-card { min-width: 160px; height: 90px; padding: 16px 20px; border-radius: 14px; }
    .pf-partner-card img { max-height: 44px; max-width: 120px; }
    .pf-partner-text-logo { font-size: 15px; }
}

/* ─── 21. PRINT ───────────────────────────────────────────────────────────── */
@media print {
    .pf-hero, .pf-stats, .pf-cta {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .pf-reveal,
    .pf-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
    .pf-hero-blob,
    .pf-hero-dots,
    .pf-hero-wave,
    .pf-stats-wave-top,
    .pf-stats-wave-bottom,
    .pf-cta-wave-top,
    .pf-cta-wave-bottom { display: none; }
}
