/* ============================================
   CERTIFICATION SECTION - ENTERPRISE EDITION
   Inti Wasi Global - E-commerce International

   Quick Wins Phase 1:
   - Triple shadow system for premium depth
   - GPU acceleration (translate3d, backface-visibility)
   - Glassmorphism backgrounds
   - Crystal curtain hover effects
   - Enhanced step number styling
   - Optimized grid spacing
   ============================================ */

/* ============================================
   CERTIFICATION SECTION CONTAINER
   ============================================ */

/* ENTERPRISE: Text centering utility */
.center {
    text-align: center;
}

:root {
    /* ENTERPRISE: Animation duration constants */
    --cert-hover-duration: 0.4s;
    --cert-transition-duration: 0.6s;
    --cert-stagger-delay: 100ms;
    --cert-scan-duration: 2s;
    --cert-scan-hover-duration: 1.5s;
    --cert-spin-duration: 3s;
    --cert-glow-duration: 3s;
    --cert-breathing-duration: 4s;
}

.certification-section {
    padding: var(--spacing-3xl) 0; /* OPTIMIZED: Reduced from 5xl (128px) to 3xl (64px) */
    background: var(--color-white);
    position: relative;
    overflow: hidden; /* For future enhancements */
}

/* Section description highlight */
.section-description-highlight {
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
    font-size: var(--font-size-base);
}

.section-description-highlight strong {
    font-weight: 600;
}

/* ============================================
   CERTIFICATION HEADER - CENTERED
   ============================================ */

.certification-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl) auto; /* OPTIMIZED: Reduced from 5xl (128px) to 2xl (48px) */

    /* ENTERPRISE: Page-load fade-in animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certification-header .section-badge {
    display: inline-block;
}

.certification-header .section-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SYMMETRIC CENTERED LAYOUT - ENTERPRISE
   ============================================ */

.cert-step-wrapper,
.cert-card-wrapper {
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl) auto; /* OPTIMIZED: Reduced from 4xl (96px) to 2xl (48px) */
}

.cert-step-wrapper {
    display: flex;
    justify-content: center;
}

/* ============================================
   CERTIFICATION CTA GROUP
   ============================================ */

.certification-cta-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-2xl); /* OPTIMIZED: Reduced from 3xl (64px) to 2xl (48px) */
}

.certification-cta-group .btn-enterprise {
    flex: 0 1 auto;
}

/* ============================================
   VISUAL ICON CARDS - 3 COLUMN GRID
   ============================================ */

.cert-visual-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto var(--spacing-2xl) auto; /* OPTIMIZED: Reduced from 4xl (96px) to 2xl (48px) */
}

.visual-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg); /* OPTIMIZED: Reduced from xl (32px) to lg (24px) */
    border-radius: var(--radius-xl);

    /* ENTERPRISE: Glassmorphism */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 244, 240, 0.9) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 118, 66, 0.15);

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(217, 118, 66, 0.08);

    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-icon-card:hover {
    /* ENTERPRISE: Spring physics lift */
    animation: springLiftSmall 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(217, 118, 66, 0.15);
    border-color: rgba(217, 118, 66, 0.25);
}

@keyframes springLiftSmall {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0); /* Overshoot */
    }
    100% {
        transform: translate3d(0, -8px, 0); /* Settle */
    }
}

.visual-icon-card .icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* ENTERPRISE: White background with subtle gradient */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 248, 248, 1) 100%
    );

    /* ENTERPRISE: Brand border */
    border: 2px solid rgba(217, 118, 66, 0.2);
    border-radius: var(--radius-full);

    /* ENTERPRISE: Soft depth shadow */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    /* ENTERPRISE: Hover-only animations for visual calm */
    transition: all var(--cert-hover-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-icon-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    /* Enhanced border on hover */
    border-color: rgba(217, 118, 66, 0.4);
    box-shadow: 0 4px 12px rgba(217, 118, 66, 0.15);
}

.visual-icon-card .icon-wrapper i {
    width: 32px;
    height: 32px;
    color: var(--color-primary); /* ENTERPRISE: Brand color on white background */
}

.visual-icon-card .icon-content {
    flex: 1;
}

.visual-icon-card h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-xs);
}

.visual-icon-card p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   TRUST STATS CARDS - 3 COLUMN GRID
   ============================================ */

.cert-trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto var(--spacing-2xl) auto; /* OPTIMIZED: Reduced from 4xl (96px) to 2xl (48px) */
}

.trust-stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);

    /* Glassmorphism */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 244, 240, 0.9) 100%
    );
    backdrop-filter: blur(10px);

    border: 1px solid rgba(217, 118, 66, 0.15);

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(217, 118, 66, 0.08);

    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-stat-card:hover {
    /* ENTERPRISE: Spring physics subtle lift */
    animation: springLiftSubtle 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(217, 118, 66, 0.15);
    border-color: rgba(217, 118, 66, 0.25);
}

@keyframes springLiftSubtle {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -5px, 0); /* Overshoot */
    }
    100% {
        transform: translate3d(0, -4px, 0); /* Settle */
    }
}

.trust-stat-card .stat-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* ENTERPRISE: White background with subtle gradient */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 248, 248, 1) 100%
    );

    /* ENTERPRISE: Subtle brand border */
    border: 2px solid rgba(217, 118, 66, 0.2);
    border-radius: var(--radius-lg);

    /* ENTERPRISE: Soft depth shadow */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    /* ENTERPRISE: Hover-only animations for visual calm */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-stat-card:hover .stat-icon {
    /* Enhanced border on hover */
    border-color: rgba(217, 118, 66, 0.4);
    box-shadow: 0 4px 12px rgba(217, 118, 66, 0.15);
}

.trust-stat-card .stat-icon i {
    width: 28px;
    height: 28px;
    color: var(--color-primary); /* ENTERPRISE: Brand color on white background */
}

.trust-stat-card .stat-content {
    flex: 1;
}

.trust-stat-card .stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.trust-stat-card .stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin: 0;
}

@media (max-width: 768px) {
    .certification-cta-group {
        flex-direction: column;
    }

    .certification-cta-group .btn-enterprise {
        width: 100%;
    }
}

.cert-step {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);

    /* ENTERPRISE: GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-step:hover {
    background: rgba(217, 118, 66, 0.03);
    transform: translate3d(8px, 0, 0);
    box-shadow: 0 4px 12px rgba(217, 118, 66, 0.08);
}

/* ============================================
   STEP NUMBER - ENTERPRISE PREMIUM
   ============================================ */

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    /* ENTERPRISE: Multi-stop gradient for depth */
    background: linear-gradient(
        135deg,
        #d97642 0%,
        #e8915f 25%,
        #d97642 50%,
        #e8915f 75%,
        #d97642 100%
    );

    color: var(--color-white);
    font-size: var(--font-size-lg);
    font-weight: 700;
    border-radius: var(--radius-full);

    /* ENTERPRISE: Triple shadow system */
    box-shadow:
        0 4px 12px rgba(217, 118, 66, 0.3),
        0 2px 6px rgba(217, 118, 66, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);

    /* ENTERPRISE: GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;

    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ENTERPRISE: Rotating Border Ring */
.step-number::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    padding: 3px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(217, 118, 66, 0.6) 25%,
        rgba(232, 145, 95, 0.8) 50%,
        rgba(217, 118, 66, 0.6) 75%,
        transparent 100%
    );
    mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    animation: spinBorder var(--cert-spin-duration) linear infinite;
    transition: opacity var(--cert-hover-duration) ease;
    pointer-events: none;
}

.cert-step:hover .step-number::before {
    opacity: 1;
}

@keyframes spinBorder {
    to {
        transform: rotate(360deg);
    }
}

.cert-step:hover .step-number {
    transform: translate3d(0, -4px, 0);
    box-shadow:
        0 8px 16px rgba(217, 118, 66, 0.4),
        0 4px 8px rgba(217, 118, 66, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

.step-text {
    color: var(--color-gray-600);
    font-size: var(--font-size-base); /* FIXED: Added explicit font size for consistency */
    line-height: 1.6;
    margin-bottom: var(--spacing-sm); /* Space before bullets */
}

/* ============================================
   STEP BULLETS - CONDENSED CONTENT
   ============================================ */

.step-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.step-bullets li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    padding-left: var(--spacing-xs);
}

.step-bullets li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97642' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12' stroke-dasharray='24' stroke-dashoffset='24'%3E%3Canimate attributeName='stroke-dashoffset' from='24' to='0' dur='0.4s' fill='freeze' /%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 2px;
    animation: checkDraw 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes checkDraw {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   CERTIFICATION CARD - ENTERPRISE PREMIUM
   ============================================ */

.cert-card {
    position: relative;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl); /* OPTIMIZED: Reduced from 2xl (48px) to xl (32px) */
    max-width: 100%; /* ENTERPRISE: Full wrapper width for visual consistency */
    width: 100%; /* ENTERPRISE: Ensure card takes full width */

    /* ENTERPRISE: Glassmorphism background */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 244, 240, 0.9) 50%,
        rgba(255, 255, 255, 0.85) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* ENTERPRISE: Colored border with opacity */
    border: 1px solid rgba(217, 118, 66, 0.15);

    /* ENTERPRISE: Triple shadow system + Premium Glow */
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(217, 118, 66, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 20px rgba(217, 118, 66, 0.15);

    /* ENTERPRISE: GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;

    /* ENTERPRISE: Advanced cubic-bezier transitions */
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    overflow: hidden; /* Contain crystal curtain effect */
}

/* PREMIUM: Crystal curtain effect on hover */
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;

    /* Multi-layer gradient to simulate crystal/glass with reflections */
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 20%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.85) 50%, /* Peak brightness - crystal center */
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0.2) 70%,
        transparent 80%,
        transparent 100%
    );

    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    border-radius: var(--radius-2xl);
    pointer-events: none;
    filter: blur(0.5px);
}

.cert-card:hover::before {
    left: 100%; /* Sweep crystal curtain across card */
}

/* ENTERPRISE: Enhanced hover state */
.cert-card:hover {
    /* ENTERPRISE: Spring physics simulation via animation */
    animation: springLift 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;

    /* ENTERPRISE: Triple shadow elevation + Enhanced Glow */
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(217, 118, 66, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 40px rgba(217, 118, 66, 0.3);

    /* Enhanced glassmorphism on hover */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 244, 240, 0.95) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );

    /* Enhanced border */
    border-color: rgba(217, 118, 66, 0.25);
}

/* ENTERPRISE: Spring physics simulation */
@keyframes springLift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -14px, 0); /* Overshoot */
    }
    100% {
        transform: translate3d(0, -12px, 0); /* Settle */
    }
}

/* ============================================
   CERT CARD HEADER
   ============================================ */

.cert-card-header {
    display: flex;
    align-items: center;
    justify-content: center; /* ENTERPRISE: Center header content */
    gap: var(--spacing-md);
    /* OPTIMIZED: Removed padding-bottom to fix double-spacing bug */
    /* REFINED: Subtle gradient border instead of heavy solid */
    border-bottom: 1px solid rgba(217, 118, 66, 0.15);
    margin-bottom: var(--spacing-md); /* OPTIMIZED: Reduced from lg (24px) to md (16px) */

    /* Subtle gradient background */
    background: linear-gradient(
        180deg,
        rgba(217, 118, 66, 0.02) 0%,
        transparent 100%
    );

    /* Z-index to stay above crystal curtain */
    position: relative;
    z-index: 2;
}

.cert-card-header svg {
    width: 32px; /* ENTERPRISE: Restored size for better visual presence */
    height: 32px;
    color: var(--color-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover .cert-card-header svg {
    transform: scale(1.1) rotate(5deg);
}

.cert-card-header span {
    font-size: var(--font-size-lg); /* ENTERPRISE: Restored for hierarchy */
    font-weight: 600;
    color: var(--color-gray-900);
}

/* ============================================
   CERT CARD BODY
   ============================================ */

.cert-card-body {
    display: flex;
    gap: var(--spacing-xl); /* OPTIMIZED: Reduced from 2xl (48px) to xl (32px) */
    margin-bottom: var(--spacing-md); /* OPTIMIZED: Reduced from lg (24px) to md (16px) */
    align-items: flex-start; /* ENTERPRISE: Align to top for balanced layout */
    justify-content: center; /* ENTERPRISE: Center content horizontally */

    /* Z-index to stay above crystal curtain */
    position: relative;
    z-index: 2;
}

/* ============================================
   QR PLACEHOLDER - PREMIUM STYLING
   ============================================ */

.qr-placeholder {
    flex-shrink: 0;
    width: 140px; /* ENTERPRISE: Increased from 100px for better visual weight */
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* ENTERPRISE: Contain scan line */

    /* ENTERPRISE: Gradient background */
    background: linear-gradient(
        135deg,
        rgba(217, 118, 66, 0.05) 0%,
        rgba(201, 168, 103, 0.05) 100%
    );

    border-radius: var(--radius-lg);
    border: 2px solid rgba(217, 118, 66, 0.15);

    /* Inset shadow for depth */
    box-shadow: inset 0 2px 8px rgba(217, 118, 66, 0.08);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ENTERPRISE: QR Scan Line Animation - Hover Only */
.qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-primary) 50%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(217, 118, 66, 0.6);
    opacity: 0;
    transform: translateY(-2px);
    z-index: 1;
}

@keyframes qrScan {
    0%, 100% {
        transform: translateY(-2px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(140px); /* ENTERPRISE: Updated for new QR size */
        opacity: 1;
    }
}

.qr-placeholder svg {
    width: 70px; /* ENTERPRISE: Increased from 56px for proportional scale */
    height: 70px;
    color: var(--color-primary);
    opacity: 0.4;
    position: relative;
    z-index: 0;
}

.cert-card:hover .qr-placeholder {
    border-color: rgba(217, 118, 66, 0.25);
    box-shadow:
        inset 0 2px 8px rgba(217, 118, 66, 0.12),
        0 4px 12px rgba(217, 118, 66, 0.15);
}

.cert-card:hover .qr-scan-line {
    /* Trigger scan animation only on hover */
    animation: qrScan var(--cert-scan-hover-duration) ease-in-out;
    opacity: 1;
}

/* ============================================
   CERT INFO
   ============================================ */

.cert-info {
    flex: 0 1 auto; /* ENTERPRISE: Don't grow to fill space, shrink if needed */
    max-width: 480px; /* ENTERPRISE: Limit width for better readability */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm); /* ENTERPRISE: Consistent spacing between all items */
}

.cert-info p {
    margin-bottom: 0; /* ENTERPRISE: Using gap instead of margin for consistency */
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.8; /* ENTERPRISE: Increased for better readability */
    /* OPTIMIZED: Removed padding to prevent extra spacing (gap handles separation) */
}

.cert-info strong {
    color: var(--color-gray-900);
    font-weight: 600;
}

/* ============================================
   CERT DETAILS COLLAPSE - DENSITY OPTIMIZATION
   ============================================ */

.cert-details-collapse {
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(217, 118, 66, 0.1);
    padding-top: var(--spacing-md);
}

.cert-details-collapse summary {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color 0.2s ease;
}

.cert-details-collapse summary::-webkit-details-marker {
    display: none;
}

.cert-details-collapse summary::before {
    content: '+';
    font-weight: 700;
    font-size: var(--font-size-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-details-collapse[open] summary::before {
    content: 'âˆ’';
    transform: rotate(180deg);
}

.cert-details-collapse summary:hover {
    color: var(--color-primary-dark);
}

.cert-details-collapse p {
    margin-top: var(--spacing-sm);
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CERTIFICATION BADGES - PREMIUM STYLING
   ============================================ */

.cert-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center; /* ENTERPRISE: Center badges */

    /* Z-index to stay above crystal curtain */
    position: relative;
    z-index: 2;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);

    /* ENTERPRISE: Glassmorphism */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(245, 245, 245, 0.9) 100%
    );

    border: 1px solid rgba(217, 118, 66, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-gray-700);

    /* Shadow for depth */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-badge svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-badge:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(217, 118, 66, 0.3);
    cursor: pointer;
}

.mini-badge:hover svg {
    /* ENTERPRISE: Unified badge animation - subtle scale + lift */
    animation: badgeHover 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ENTERPRISE: Unified badge hover animation */
@keyframes badgeHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15) translateY(-2px);
    }
    100% {
        transform: scale(1.1);
    }
}

/* ============================================
   SCROLL-TRIGGERED STAGGER ANIMATIONS
   ============================================ */

[data-animate-child] {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate-child].animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .cert-visual-icons,
    .cert-trust-stats {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .certification-header {
        margin-bottom: var(--spacing-3xl);
    }

    .cert-step-wrapper,
    .cert-card-wrapper {
        max-width: 700px;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .certification-header {
        margin-bottom: var(--spacing-2xl);
    }

    .cert-step-wrapper,
    .cert-card-wrapper {
        margin-bottom: var(--spacing-2xl);
    }

    .cert-visual-icons,
    .cert-trust-stats {
        margin-bottom: var(--spacing-2xl);
        gap: var(--spacing-md);
    }

    .cert-card {
        padding: var(--spacing-lg);
        /* ENTERPRISE: Maintain full width on mobile */
        max-width: 100%;
    }

    .cert-card-body {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .qr-placeholder {
        width: 120px; /* ENTERPRISE: Proportional size for mobile */
        height: 120px;
        margin: 0 auto;
    }

    .qr-placeholder svg {
        width: 60px; /* ENTERPRISE: Proportional icon size for mobile */
        height: 60px;
    }

    .cert-step {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cert-card:hover {
        /* Reduced lift on mobile */
        transform: translate3d(0, -8px, 0);
    }

    .visual-icon-card {
        padding: var(--spacing-lg);
    }

    .visual-icon-card .icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .visual-icon-card .icon-wrapper i {
        width: 28px;
        height: 28px;
    }

    .trust-stat-card {
        padding: var(--spacing-lg);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .trust-stat-card .stat-icon {
        width: 56px;
        height: 56px;
    }

    .trust-stat-card .stat-icon i {
        width: 28px;
        height: 28px;
    }

    .trust-stat-card .stat-number {
        font-size: var(--font-size-xl);
    }

    .certification-cta-group {
        margin-top: var(--spacing-2xl);
        flex-direction: column;
    }

    .certification-cta-group .btn-enterprise {
        width: 100%;
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .cert-card,
    .cert-card::before,
    .step-number,
    .mini-badge,
    .cert-step,
    .visual-icon-card,
    .trust-stat-card {
        transition: none;
        animation: none;
    }

    .cert-card:hover,
    .cert-step:hover,
    .visual-icon-card:hover,
    .trust-stat-card:hover {
        transform: translate3d(0, 0, 0);
    }

    .cert-card::before {
        display: none;
    }
}

/* Focus states for keyboard navigation */
.cert-card:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.cert-step:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-xl);
}

.mini-badge:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.visual-icon-card:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-lg);
}

.trust-stat-card:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-xl);
}
