/* assets/css/styles.css — site styles */

/* Base Styles */
html {
    scroll-behavior: smooth;
    height: 100%;
    /* Match dark nav/hero if any overscroll slip occurs */
    background-color: #010517;
    /* Disable rubber-band / bounce so fixed nav stays visually attached to hero */
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

body {
    background-color: #F9FAFD;
    color: #000000;
    overflow-x: hidden;
    min-height: 100%;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(1, 5, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(136, 86, 247, 0.28);
    box-shadow:
        0 1px 0 rgba(201, 184, 255, 0.12),
        0 4px 28px rgba(77, 43, 238, 0.2),
        0 10px 40px rgba(136, 86, 247, 0.1);
}

.site-nav-link-active {
    color: #FFFFFF !important;
}

.site-nav-link-active i {
    color: inherit;
}

.glass-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Hover Effects */
.hover-card-effect {
    transition: all 0.3s ease;
}

.hover-card-effect:hover {
    transform: translateY(-5px);
    border-color: #4D2BEE;
    box-shadow: 0 10px 40px rgba(77, 43, 238, 0.1);
}

/* Buttons */
.btn-primary {
    background: #4D2BEE;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #3A1EBD;
    box-shadow: 0 4px 15px rgba(77, 43, 238, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: #4D2BEE;
    border: 1px solid #4D2BEE;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #F5F4FC;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes flashBg {
    0% { background-color: rgba(77, 43, 238, 0.15); }
    100% { background-color: #FFFFFF; }
}

.flash-highlight {
    animation: flashBg 1s ease-out forwards;
}

/* Dark hero (e.g. index #hero / Brand Positioning) — never flash to white */
.hero-dark.flash-highlight {
    animation: flashBgDark 1s ease-out forwards;
}

@keyframes flashBgDark {
    0% { background-color: rgba(136, 86, 247, 0.28); }
    100% { background-color: #010517; }
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9FAFD;
}

::-webkit-scrollbar-thumb {
    background: #BBBBBB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

/* ===========================================================
   Figma 设计令牌 - Dark Hero / Orb / Cards / CTA Banner
   =========================================================== */

/* Dark hero surface (top-of-page banner) */
.hero-dark {
    position: relative;
    background-color: #010517;
    color: #FFFFFF;
    overflow: hidden;
    isolation: isolate;
}

/* Soft glow at nav ↔ hero seam (top band only, not full-hero orbs) */
.hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 128px;
    background:
        radial-gradient(ellipse 85% 100% at 50% 0%, rgba(136, 86, 247, 0.22) 0%, rgba(77, 43, 238, 0.08) 42%, transparent 72%),
        linear-gradient(180deg, rgba(77, 43, 238, 0.14) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(136, 86, 247, 0.35) 18%,
        rgba(201, 184, 255, 0.65) 50%,
        rgba(136, 86, 247, 0.35) 82%,
        transparent 100%
    );
    box-shadow:
        0 0 18px rgba(136, 86, 247, 0.45),
        0 0 36px rgba(77, 43, 238, 0.22),
        0 6px 32px rgba(77, 43, 238, 0.15);
    pointer-events: none;
    z-index: 1;
}

.hero-dark > *:not(.hero-vanta-dots) {
    position: relative;
    z-index: 2;
}

.hero-dark .hero-grid {
    position: relative;
    z-index: auto;
    overflow: visible;
}

.hero-dark .hero-copy {
    position: relative;
    z-index: 2;
}

.hero-dark .hero-globe-stage {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(50%, 672px);
    height: 580px;
    min-height: 520px;
    overflow: visible;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-dark .hero-globe-stage .hero-globe-canvas {
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .hero-dark .hero-grid {
        grid-template-columns: 1fr;
        min-height: 580px;
    }

    .hero-dark .hero-copy {
        max-width: calc(50% - 1.5rem);
    }

    .hero-dark .hero-globe-stage .hero-globe-canvas {
        width: min(100%, 560px);
        height: auto;
        max-height: 580px;
        aspect-ratio: 1;
    }
}

/* Vanta DOTS — bottom layer of hero banner ([vantajs.com dots](https://www.vantajs.com/?effect=dots)) */
.hero-vanta-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72%;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 22%,
        rgba(0, 0, 0, 0.85) 48%,
        #000 68%,
        #000 100%
    );
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 22%,
        rgba(0, 0, 0, 0.85) 48%,
        #000 68%,
        #000 100%
    );
}

.hero-vanta-dots::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, #010517 0%, transparent 14%, transparent 86%, #010517 100%),
        radial-gradient(ellipse 90% 55% at 50% 100%, rgba(77, 43, 238, 0.14) 0%, transparent 62%),
        linear-gradient(0deg, rgba(1, 5, 23, 0.55) 0%, transparent 42%);
}

/* Frosted panel over stat strip — dots subtly visible underneath */
.hero-stat-glass {
    position: relative;
    z-index: 3;
}

.hero-stat-glass .stat-strip-dark {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        165deg,
        rgba(9, 13, 40, 0.14) 0%,
        rgba(12, 18, 48, 0.08) 55%,
        rgba(77, 43, 238, 0.05) 100%
    );
    /* backdrop-filter: blur(18px) saturate(1.15); */
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(189, 173, 255, 0.14);
    box-shadow:
        0 16px 40px rgba(77, 43, 238, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stat-glass .stat-strip-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        rgba(77, 43, 238, 0.06) 0%,
        rgba(136, 86, 247, 0.22) 18%,
        rgba(159, 62, 255, 0.18) 34%,
        rgba(201, 184, 255, 0.26) 50%,
        rgba(159, 62, 255, 0.17) 66%,
        rgba(88, 53, 255, 0.22) 82%,
        rgba(77, 43, 238, 0.06) 100%
    );
    background-size: 220% 100%;
    background-position: 0% 50%;
    animation: hero-stat-border-flow 14s linear infinite;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.hero-stat-glass .stat-strip-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.015) 16%,
        transparent 36%,
        transparent 70%,
        rgba(136, 86, 247, 0.03) 100%
    );
}

@keyframes hero-stat-border-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 220% 50%;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero-stat-glass .stat-strip-dark {
        background: linear-gradient(180deg, rgba(10, 15, 46, 0.82) 0%, rgba(14, 20, 56, 0.72) 100%);
    }
}

/* Hero right-side 3D globe */
.hero-globe-canvas {
    position: relative;
    width: min(100%, 560px);
    max-width: 560px;
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
    cursor: grab;
    touch-action: none;
    overflow: visible;
    transform: scale(1.2);
    transform-origin: center center;
    flex: 0 0 auto;
}

.hero-globe-canvas:active {
    cursor: grabbing;
}

.hero-globe-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-globe-canvas::before {
    content: '';
    position: absolute;
    inset: 4% 2%;
    border-radius: 9999px;
    background: radial-gradient(
        circle at center,
        rgba(136, 86, 247, 0.22) 0%,
        rgba(77, 43, 238, 0.1) 38%,
        transparent 72%
    );
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

/* Hero right-side banner illustration (design JPG assets) — +25% vs base */
.hero-dark div:has(> .hero-illustration) {
    height: 550px;
}

.hero-illustration {
    display: block;
    width: 100%;
    max-width: 600px;
    max-height: 525px;
    height: auto;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1023px) {
    .hero-dark .hero-globe-stage {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 460px;
        min-height: 420px;
        transform: none;
        pointer-events: auto;
    }

    .hero-globe-canvas {
        width: min(100%, 440px);
        max-width: 440px;
        aspect-ratio: 1;
    }

    .hero-dark div:has(> .hero-illustration) {
        height: 440px;
    }

    .hero-illustration {
        max-width: 450px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-dark .hero-globe-stage {
        height: auto;
        min-height: 340px;
    }

    .hero-globe-canvas {
        width: min(100%, 360px);
        max-width: 360px;
        aspect-ratio: 1;
        transform: scale(1.12);
    }

    .hero-dark div:has(> .hero-illustration) {
        height: auto;
        min-height: 280px;
    }

    .hero-illustration {
        max-width: 350px;
        max-height: 300px;
        margin-inline: auto;
    }
}

/* Section subtitle pill */
.label-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(136, 86, 247, 0.45);
    background: rgba(77, 43, 238, 0.15);
    color: #C9B8FF;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

/* Dark stat strip just below hero */
.stat-strip-dark {
    background: linear-gradient(180deg, #0A0F2E 0%, #0E1438 100%);
    border: 1px solid rgba(136, 86, 247, 0.18);
    border-radius: 18px;
    color: #FFFFFF;
    box-shadow: 0 20px 60px rgba(77, 43, 238, 0.15);
}

.stat-strip-dark .stat-cell {
    padding: 24px 16px;
    text-align: center;
}

.hero-stat-glass .stat-strip-dark .stat-cell > div:nth-child(2) {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.hero-stat-glass .stat-strip-dark .stat-cell > div:nth-child(3) {
    line-height: 1.35;
}

.stat-strip-dark .stat-cell + .stat-cell {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .stat-strip-dark .stat-cell + .stat-cell {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Glowing orb (used inside hero illustration container) */
.orb-glow {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 30%, #8856F7 0%, #4D2BEE 45%, #2A1276 90%);
    box-shadow:
        0 0 80px rgba(136, 86, 247, 0.55),
        0 0 140px rgba(77, 43, 238, 0.4),
        inset -20px -30px 60px rgba(0, 0, 0, 0.35),
        inset 20px 20px 60px rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.orb-glow::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 9999px;
    border: 1px dashed rgba(136, 86, 247, 0.3);
    animation: orbRotate 30s linear infinite;
    pointer-events: none;
}

@keyframes orbRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Pedestal beneath the orb */
.orb-pedestal {
    position: absolute;
    left: 50%;
    bottom: -10%;
    transform: translateX(-50%);
    width: 320px;
    height: 60px;
    border-radius: 9999px;
    background: radial-gradient(ellipse at center, rgba(136, 86, 247, 0.45) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

/* Floating chip badges around the orb */
.orb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    background: rgba(20, 24, 60, 0.85);
    border: 1px solid rgba(136, 86, 247, 0.4);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.orb-chip i {
    color: #C9B8FF;
}

/* Feature card (white card with icon tile + title + body) */
.feature-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 43, 238, 0.4);
    box-shadow: 0 12px 40px rgba(77, 43, 238, 0.12);
}

.feature-card .icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #EFECFD;
    color: #4D2BEE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Security feature grid on resources page */
.security-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.security-feature-item {
    width: 100%;
}

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

@media (min-width: 1024px) {
    .security-feature-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }

    .security-feature-item {
        width: calc(25% - 18px);
    }
}

/* Small purple tag chip (used inside industries cards as capability tags) */
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #EFECFD;
    color: #4D2BEE;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

/* Bottom CTA banners — shared background image */
.cta-banner-dark,
.cta-banner-light,
.cta-banner-soft {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #FFFFFF;
    background-color: #0A0F2E;
    background-image: url('../images/bottom-banner.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.cta-banner-dark::before,
.cta-banner-light::before,
.cta-banner-soft::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 15, 46, 0.92) 0%,
        rgba(10, 15, 46, 0.6) 42%,
        rgba(10, 15, 46, 0.15) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.cta-banner-dark > *,
.cta-banner-light > *,
.cta-banner-soft > * {
    position: relative;
    z-index: 1;
}

/* Dark bottom CTA banner */
.cta-banner-dark {
    border-radius: 20px;
    padding: 36px 40px;
}

/* Light purple CTA banner variant (Solutions page) */
.cta-banner-light {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 40px;
}

.cta-banner-light .text-text-sec {
    color: #C9C4E0;
}

.cta-banner-light .btn-outline {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.45);
}

.cta-banner-light .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* Highlight chip card (used at the bottom of Infrastructure / Resources) */
.highlight-card {
    background: linear-gradient(135deg, #0A0F2E 0%, #1A0F4F 100%);
    border-radius: 16px;
    padding: 22px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 12px 40px rgba(77, 43, 238, 0.18);
    transition: transform 0.3s ease;
}

.highlight-card:hover { transform: translateY(-3px); }

.highlight-card .h-illu {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, #8856F7 0%, #4D2BEE 75%);
    box-shadow: 0 0 24px rgba(136, 86, 247, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

/* Section title underline accent */
.section-title-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.section-title-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: #4D2BEE;
    transform: translateX(-50%);
}

/* Form inputs (contact page) */
.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #E4E4E4;
    background: #FFFFFF;
    color: #000000;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4D2BEE;
    box-shadow: 0 0 0 3px rgba(77, 43, 238, 0.12);
}

.form-input::placeholder { color: #BBBBBB; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
}

.form-label .req { color: #E53935; margin-left: 2px; }

/* Legal page sidebar tabs */
#legal-tabs button.bg-primary,
#legal-tabs button.bg-primary:hover,
#legal-tabs button.bg-primary:focus,
#legal-tabs button.bg-primary:focus-visible {
    color: #FFFFFF;
}

/* FAQ accordion (resources page) */
#faqs .grid {
    align-items: start;
}

.faq-item {
    align-self: start;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(77, 43, 238, 0.35);
    box-shadow: 0 8px 24px rgba(77, 43, 238, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chev {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: #777777;
}

.faq-item[open] summary .chev { transform: rotate(180deg); color: #4D2BEE; }

.faq-item .faq-body {
    padding: 0 20px 18px 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* Animated orbit dots around the orb */
.orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #C9B8FF;
    box-shadow: 0 0 12px rgba(136, 86, 247, 0.8);
}

/* ===== Home page (index.html) specific ===== */

/* Hero checkmark chip strip (under sub-title) */
.hero-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}

.hero-check i {
    color: #8856F7;
    width: 16px;
    height: 16px;
}

/* Cosmic globe — wrapper that hosts sphere + orbits + beam + pedestal */
.cosmic-globe {
    position: relative;
    width: 440px;
    height: 440px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Soft outer halo behind everything */
.cosmic-globe::before {
    content: "";
    position: absolute;
    inset: -8%;
    border-radius: 9999px;
    background:
        radial-gradient(circle at center, rgba(136, 86, 247, 0.28) 0%, rgba(77, 43, 238, 0.12) 28%, transparent 60%);
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

/* Distant rotating orbit arcs that pass in front of/behind the sphere */
.cosmic-globe .orbits {
    position: absolute;
    inset: -2%;
    width: 104%;
    height: 104%;
    color: rgba(176, 152, 255, 0.55);
    z-index: 1;
    animation: orbitsSpin 38s linear infinite;
    filter: drop-shadow(0 0 6px rgba(136, 86, 247, 0.5));
}

@keyframes orbitsSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Counter-rotating inner orbit pass for parallax */
.cosmic-globe .orbits-inner {
    position: absolute;
    inset: 4%;
    width: 92%;
    height: 92%;
    color: rgba(201, 184, 255, 0.45);
    z-index: 2;
    animation: orbitsSpin 22s linear infinite reverse;
    filter: drop-shadow(0 0 4px rgba(136, 86, 247, 0.5));
}

/* The sphere body itself */
.cosmic-globe .sphere {
    position: relative;
    width: 76%;
    height: 76%;
    border-radius: 9999px;
    background:
        radial-gradient(circle at 30% 28%, rgba(140, 100, 255, 0.55) 0%, rgba(77, 43, 238, 0.45) 22%, rgba(20, 10, 80, 0.95) 55%, #04031A 92%);
    box-shadow:
        0 0 70px rgba(136, 86, 247, 0.55),
        0 0 140px rgba(77, 43, 238, 0.35),
        inset -28px -42px 80px rgba(0, 0, 0, 0.65),
        inset 28px 28px 70px rgba(180, 150, 255, 0.18);
    overflow: hidden;
    z-index: 3;
}

/* Specular highlight on the top-left of the sphere */
.cosmic-globe .sphere::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 22%);
    pointer-events: none;
}

/* Sphere wireframe (latitude / longitude) */
.cosmic-globe .sphere .wire {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(155, 130, 240, 0.45);
}

/* Dotted continents painted on the sphere */
.cosmic-globe .sphere .continents {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(220, 205, 255, 0.95);
    filter: drop-shadow(0 0 3px rgba(136, 86, 247, 0.9));
    animation: continentsDrift 60s linear infinite;
}

@keyframes continentsDrift {
    from { transform: translateX(0); }
    to   { transform: translateX(-6%); }
}

/* Bright surface stars sprinkled on the sphere */
.cosmic-globe .sphere .stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 0 4px rgba(180, 150, 255, 1));
    animation: starsTwinkle 4.5s ease-in-out infinite;
}

@keyframes starsTwinkle {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

/* Vertical light column descending from the bottom of the sphere */
.cosmic-globe .beam {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    width: 4px;
    height: 110px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(136, 86, 247, 0.7) 40%, rgba(77, 43, 238, 0) 100%);
    border-radius: 9999px;
    filter: blur(0.5px) drop-shadow(0 0 18px rgba(136, 86, 247, 0.95));
    z-index: 4;
    pointer-events: none;
}

/* Concentric pedestal rings under the sphere */
.cosmic-globe .pedestal {
    position: absolute;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    width: 70%;
    height: 70px;
    z-index: 2;
    pointer-events: none;
}

.cosmic-globe .pedestal .ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    border: 1px solid rgba(136, 86, 247, 0.55);
    box-shadow: 0 0 12px rgba(136, 86, 247, 0.45);
    animation: ringPulse 3.2s ease-in-out infinite;
}

.cosmic-globe .pedestal .r1 { width: 60%;  height: 22%; opacity: 0.95; animation-delay: 0s; }
.cosmic-globe .pedestal .r2 { width: 80%;  height: 32%; opacity: 0.65; animation-delay: 0.6s; }
.cosmic-globe .pedestal .r3 { width: 100%; height: 44%; opacity: 0.35; animation-delay: 1.2s; }

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: var(--from, 0.8); }
    50%      { transform: translate(-50%, -50%) scale(1.05); opacity: var(--to,   1); }
}

/* Floating tiny particles orbiting in the foreground */
.cosmic-globe .particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(220, 205, 255, 0.95);
    z-index: 5;
    animation: orbitsSpin 50s linear infinite;
    filter: drop-shadow(0 0 6px rgba(136, 86, 247, 0.9));
    pointer-events: none;
}

@media (max-width: 1024px) {
    .cosmic-globe { width: 360px; height: 360px; }
}

@media (max-width: 640px) {
    .cosmic-globe { width: 300px; height: 300px; }
    .cosmic-globe .beam { height: 80px; }
}

/* Numbered capability card (Core Capabilities row) */
.num-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    padding: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.num-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 43, 238, 0.4);
    box-shadow: 0 12px 40px rgba(77, 43, 238, 0.12);
}

.num-card .num-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.num-card .num-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #4D2BEE;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.num-card .num-index {
    color: #4D2BEE;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.num-card .num-title {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
}

/* Light purple "soft" CTA banner (Build with PAIOPTIMUM) */
.cta-banner-soft {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
}

.cta-banner-soft .text-text-sec {
    color: #C9C4E0;
}

/* Compliance + API pair (homepage) — ~62% / 38% on large screens */
.infrastructure-compliance-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .infrastructure-compliance-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    }
}

.compliance-feature-card,
.api-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Top: copy left, illustration right */
.compliance-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    gap: 1rem 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.compliance-card-copy {
    min-width: 0;
}

.compliance-feature-image {
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.compliance-feature-image img {
    display: block;
    width: 100%;
    height: auto;
    /* SVG 为扁宽比例（约 2:1），原 JPEG 更“高”；提高上限并让列稍宽以使视觉更接近替换前 */
    max-height: clamp(11rem, 30vw, 15rem);
    object-fit: contain;
    object-position: center right;
}

@media (min-width: 640px) {
    .compliance-card-header {
        grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
        gap: 1.25rem 2rem;
        margin-bottom: 1.75rem;
    }

    .compliance-feature-image img {
        max-height: clamp(12.5rem, 34vw, 17.5rem);
    }
}

@media (min-width: 1024px) {
    .compliance-feature-image img {
        max-height: clamp(13.5rem, 32vw, 19rem);
    }
}

/* Middle: horizontal icon row */
.compliance-icons-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.875rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .compliance-icons-row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1rem;
    }
}

.compliance-card-actions {
    margin-top: auto;
}

/* Small icon item used inside the compliance card */
.compliance-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 0 4px;
    min-width: 0;
}

.compliance-icon-item .ci-tile {
    width: 50px;
    height: 50px;
    border-radius: 9999px;
    background: #EFECFD;
    color: #4D2BEE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compliance-icon-item .ci-tile svg {
    width: 1.25rem;
    height: 1.25rem;
}

.compliance-icon-item .ci-label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    line-height: 1.35;
    max-width: 6.5rem;
}

@media (max-width: 639px) {
    .compliance-card-header {
        grid-template-columns: 1fr;
    }

    .compliance-feature-image {
        max-width: 12.5rem;
        margin-inline: auto;
    }

    .compliance-feature-image img {
        max-height: 12rem;
        object-position: center;
    }
}

/* API card: four mini tiles in a row, button at bottom */
.api-mini-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex: 1 1 auto;
}

.api-feature-card .api-mini-card {
    padding: 14px 10px;
}

.api-card-actions {
    margin-top: auto;
}

/* API mini-card (used inside the right-side API-First card) */
.api-mini-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.api-mini-card:hover {
    border-color: rgba(77, 43, 238, 0.4);
    box-shadow: 0 6px 18px rgba(77, 43, 238, 0.08);
}

.api-mini-card .api-tile {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EFECFD;
    color: #4D2BEE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.api-mini-card .api-label {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

/* Industries showcase (homepage "Built for Modern Financial Businesses") */
.industries-showcase-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    place-content: center;
    place-items: center;
    gap: 1.25rem 0.75rem;
    min-height: 11rem;
    width: 100%;
}

/* Industries mini-card */
.industry-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.industry-mini .im-tile {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #EFECFD;
    color: #4D2BEE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.industry-mini .im-tile svg {
    width: 1.5625rem;
    height: 1.5625rem;
}

.industry-mini .im-label {
    font-size: 13.75px;
    font-weight: 500;
    color: #444;
    line-height: 1.25;
    width: 100%;
    max-width: 8.125rem;
}

/* Global Settlement Network — map + stats side by side */
.settlement-network-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

@media (min-width: 640px) {
    .settlement-network-body {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        column-gap: 1.5rem;
    }
}

.settlement-network-map {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: visible;
}

.settlement-network-map img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.settlement-network-card .settlement-network-map img {
    width: 108%;
    max-width: 108%;
    margin-inline: -4%;
}

.settlement-network-stats {
    text-align: left;
    padding-inline: 0;
}

/* Pastel region pill (legacy world map) */
.region-pill {
    position: absolute;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #EFECFD;
    color: #4D2BEE;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(77, 43, 238, 0.1);
}

/* About — Our Markets region cards (reference: copy left, faded map right) */
.market-region-card {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.market-region-card:hover {
    transform: translateY(-4px);
}

.market-region-body {
    position: relative;
    min-height: 15.5rem;
    padding: 1.75rem 1.5rem;
}

.market-region-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 62%;
    min-height: 12rem;
}

/* Match Core Capabilities .num-tile */
.market-region-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #4D2BEE;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0.875rem;
}

.market-region-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #010517;
    margin: 0 0 0.875rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.market-region-title--sans {
    font-family: inherit;
}

.market-region-text {
    margin: 0;
    flex: 1 1 auto;
    line-height: 1.65;
}

.market-region-accent {
    width: 3rem;
    height: 3px;
    margin-top: auto;
    margin-top: 1rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #5835FF 0%, #9F3EFF 100%);
    flex-shrink: 0;
}

.market-region-map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 54%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.market-region-map::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 18%, transparent 36%);
    pointer-events: none;
}

.market-region-map img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 12.5rem;
    margin-left: auto;
    object-fit: contain;
    object-position: right center;
    opacity: 0.82;
    user-select: none;
}

@media (max-width: 767px) {
    .market-region-body {
        min-height: 0;
        padding: 1.25rem 1.25rem 1rem;
    }

    .market-region-copy {
        max-width: 100%;
        min-height: 10.5rem;
    }

    .market-region-map {
        position: relative;
        width: 100%;
        height: 8.5rem;
        margin-top: 0.5rem;
    }

    .market-region-map::after {
        background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 30%, transparent 55%);
    }

    .market-region-map img {
        max-height: 9rem;
        margin-inline: auto;
        opacity: 0.85;
        object-position: center;
    }

    .market-region-accent {
        padding-top: 1.5rem;
    }
}

/* World map dotted SVG background helper */
.world-map-bg {
    width: 100%;
    height: 100%;
    color: rgba(77, 43, 238, 0.25);
}

/* Footer — top CTA strip */
.site-footer {
    padding-top: 2rem;
}

.footer-cta-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 3.25rem;
    padding-block: 0.5rem;
}

.footer-cta-title {
    margin: 0;
    line-height: 1.2;
}

.footer-cta-gap {
    display: inline-block;
    width: 0.35em;
}

.footer-cta-gradient-text {
    background: linear-gradient(
        90deg,
        #5835FF 0%,
        #9F3EFF 25%,
        #5835FF 50%,
        #9F3EFF 75%,
        #5835FF 100%
    );
    background-size: 220% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: footer-cta-gradient-flow 10s linear infinite;
}

@keyframes footer-cta-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 220% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta-gradient-text {
        animation: none;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: #9F3EFF;
        color: #9F3EFF;
    }
}

.footer-cta-rule {
    width: 100%;
    height: 1px;
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .site-footer {
        padding-top: 1rem;
    }

    .footer-cta-top {
        min-height: 3.5rem;
    }

    .footer-cta-rule {
        margin-bottom: 3rem;
    }
}

/* Footer — brand column separate; link columns grouped right */
.footer-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 0 1 auto;
    min-width: 0;
}

.footer-brand-logo {
    margin: 0;
}

.footer-brand-name {
    line-height: 1.2;
}

.footer-brand-desc {
    margin: 0;
}

.footer-links-cluster {
    min-width: 0;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

.footer-link-col {
    text-align: left;
}

.footer-link-col h4 {
    margin-bottom: 1.125rem;
}

.footer-link-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem 3rem;
    }

    .footer-brand {
        flex: 0 1 22rem;
        max-width: 22rem;
        padding-right: 1rem;
    }

    .footer-links-cluster {
        position: relative;
        flex: 0 1 auto;
        margin-left: auto;
        padding-left: 2.5rem;
    }

    .footer-links-cluster::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.25rem;
        bottom: 0.25rem;
        width: 1px;
        background: repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.2) 0 6px,
            transparent 6px 12px
        );
    }

    .footer-links-grid {
        grid-template-columns: repeat(4, auto);
        column-gap: 2.5rem;
        row-gap: 0;
        justify-content: end;
    }

    .footer-link-col {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .footer-links-grid {
        column-gap: 3.5rem;
    }

    .footer-links-cluster {
        padding-left: 3rem;
    }
}
