/* tanso.group — glassmorphism frosted */

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
body {
    background: linear-gradient(180deg, #0F1729 0%, #1B2A4A 50%, #0F1729 100%);
    color: #E0E7FF;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Scene wrapper with perspective for translateZ depth ── */
.scene {
    perspective: 1000px;
    perspective-origin: 50% 50%;
    position: relative;
}

/* ── Section Headings ── */
.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 26px);
    color: #FFFFFF;
    letter-spacing: 0.005em;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ── Glass panel base ── */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(16px)) {
    .glass {
        background: rgba(27, 42, 74, 0.85);
    }
}

/* ── Depth layers using translateZ ── */
.depth-layer-1 {
    transform: translateZ(10px);
    transform-style: preserve-3d;
}

.depth-layer-2 {
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

.depth-layer-3 {
    transform: translateZ(30px);
    transform-style: preserve-3d;
}

/* ── Floating Particle Field ── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.p {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: drift linear infinite;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

.p1  { top: 95%; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.p2  { top: 90%; left: 25%; animation-duration: 22s; animation-delay: 2s; width: 2px; height: 2px; }
.p3  { top: 85%; left: 40%; animation-duration: 16s; animation-delay: 4s; }
.p4  { top: 92%; left: 55%; animation-duration: 20s; animation-delay: 1s; width: 2px; height: 2px; }
.p5  { top: 88%; left: 70%; animation-duration: 24s; animation-delay: 3s; }
.p6  { top: 96%; left: 85%; animation-duration: 19s; animation-delay: 5s; width: 4px; height: 4px; background: rgba(99, 102, 241, 0.12); }
.p7  { top: 80%; left: 15%; animation-duration: 21s; animation-delay: 7s; }
.p8  { top: 94%; left: 50%; animation-duration: 17s; animation-delay: 6s; width: 2px; height: 2px; }
.p9  { top: 87%; left: 35%; animation-duration: 23s; animation-delay: 8s; }
.p10 { top: 91%; left: 65%; animation-duration: 15s; animation-delay: 1.5s; width: 2px; height: 2px; }
.p11 { top: 82%; left: 80%; animation-duration: 20s; animation-delay: 4.5s; }
.p12 { top: 97%; left: 45%; animation-duration: 26s; animation-delay: 9s; width: 4px; height: 4px; background: rgba(52, 211, 153, 0.1); }

/* ── Hero Section ── */
.hero {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.depth-container {
    perspective: 1000px;
    display: inline-block;
    margin-bottom: 2.5rem;
}

.hero-panel {
    padding: 2.5rem 3rem;
    display: inline-block;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.15);
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 36px);
    color: #FFFFFF;
    letter-spacing: 0.005em;
    margin-bottom: 0.35rem;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #E0E7FF;
    letter-spacing: 0.02em;
}

/* ── Stat Cards ── */
.stat-row {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 170px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateZ(20px) translateY(-4px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.12);
}

.stat-num {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 1.6rem;
    color: #FFFFFF;
    display: block;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #E0E7FF;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Service Pillars ── */
.pillars {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.pillar-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pillar-card {
    flex: 1;
    min-width: 240px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateZ(20px) translateY(-4px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.1);
}

.pillar-icon {
    margin-bottom: 1rem;
}

.pillar-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #FFFFFF;
    letter-spacing: 0.005em;
    margin-bottom: 0.6rem;
}

.pillar-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #E0E7FF;
    line-height: 1.65;
}

/* ── Members Horizontal Scroll ── */
.members {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.members-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.members-scroll::-webkit-scrollbar {
    height: 4px;
}

.members-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.members-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.member-card {
    flex: 0 0 180px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.member-name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #FFFFFF;
    margin-bottom: 0.3rem;
}

.member-sector {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #6366F1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Network Diagram ── */
.network {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.network-panel {
    padding: 2.5rem 2rem;
}

.network-diagram {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
}

.net-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
    transition: stroke 0.3s ease;
}

.node-bg {
    fill: rgba(255, 255, 255, 0.06);
}

.node-label {
    fill: #E0E7FF;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
}

.node-sublabel {
    fill: rgba(224, 231, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 7px;
    font-weight: 400;
}

.node-verified {
    fill: #34D399;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 600;
}

.data-flow {
    opacity: 0.8;
}

/* ── Standards Compliance ── */
.compliance {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.compliance-panel {
    padding: 2rem;
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-table thead tr {
    background: rgba(248, 250, 252, 0.06);
}

.comp-table thead th:first-child {
    color: #F8FAFC;
}

.comp-table th {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    color: #E0E7FF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.comp-table td {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #FFFFFF;
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.comp-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.mono {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    color: #E0E7FF;
}

.badge-active {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
}

.badge-draft {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
}

.badge-review {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

.footer-panel {
    padding: 2.5rem;
}

.footer-cols {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.flink {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #6366F1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #818CF8;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 2rem 0 1.25rem;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #E0E7FF;
    text-align: center;
}

/* ── Fade-in Animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ── */
@media (max-width: 640px) {
    .pillar-row {
        flex-direction: column;
    }

    .stat-row {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }

    .footer-cols {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .hero-panel {
        padding: 1.5rem 2rem;
    }

    .network-panel {
        padding: 1.5rem 1rem;
    }
}
