/* ============================================
   Data page
   ============================================ */

.page-hero--net {
    position: relative;
    overflow: hidden;
    padding-bottom: 90px;
}

.page-hero--net::before { z-index: 2; pointer-events: none; }
.page-hero--net .hero-canvas { z-index: 1; opacity: 0.85; }
.page-hero--net .container { z-index: 3; }

.data-lead {
    position: relative;
    padding: 70px 0 30px;
    text-align: center;
}

.data-lead h2 {
    max-width: 880px;
    margin: 0 auto 18px;
    font-size: clamp(1.75rem, 3.8vw, 2.75rem);
    font-weight: 300;
    line-height: 1.25;
}

.data-lead p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.data-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 34px 0 0;
}

.data-chip {
    position: relative;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1.5px dashed rgba(255, 77, 94, 0.7);
    color: #ff9aa4;
    font-size: 0.9375rem;
    animation: chipHeal 6s ease-in-out infinite;
}

.data-chip:nth-child(2) { animation-delay: 0.5s; }
.data-chip:nth-child(3) { animation-delay: 1s; }
.data-chip:nth-child(4) { animation-delay: 1.5s; }

@keyframes chipHeal {
    0%, 35% { border: 1.5px dashed rgba(255, 77, 94, 0.7); color: #ff9aa4; background: transparent; box-shadow: none; }
    55%, 90% { border: 1.5px solid rgba(0, 212, 255, 0.7); color: var(--color-primary); background: rgba(0, 212, 255, 0.08); box-shadow: 0 0 22px rgba(0, 212, 255, 0.2); }
    100% { border: 1.5px dashed rgba(255, 77, 94, 0.7); color: #ff9aa4; background: transparent; box-shadow: none; }
}

.data-section { padding: 70px 0; }
.data-section .section-header { opacity: 1; transform: none; }

/* ---------- Stage ---------- */
.data-explorer {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}

.dx-steps { display: flex; flex-direction: column; gap: 12px; }

.dx-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.dx-step:hover,
.dx-step.active {
    border-color: rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.10) 0%, rgba(0, 102, 255, 0.10) 100%), var(--color-bg-card);
    box-shadow: var(--shadow-glow);
}

.dx-step.active { transform: translateX(8px); }

.dx-step:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.dx-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--color-primary);
    font-weight: 500;
    transition: var(--transition);
}

.dx-step.active .dx-num { background: var(--gradient-primary); color: #000; border-color: transparent; }

.dx-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dx-title { font-size: 1.0625rem; color: var(--color-text); }
.dx-sub { font-size: 0.8125rem; color: var(--color-text-muted); }

.dx-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--gradient-primary);
}

.dx-step.active .dx-progress { animation: dxProgress var(--dx-time, 7s) linear forwards; }
.data-explorer.paused .dx-step.active .dx-progress { animation: none; width: 100%; }

@keyframes dxProgress { from { width: 0; } to { width: 100%; } }

.dx-stage {
    position: sticky;
    top: 110px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.07) 0%, rgba(0, 102, 255, 0.07) 100%), var(--color-bg-card);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glow);
}

.dx-stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.6875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.dx-stage-top b { color: var(--color-primary); font-weight: 500; }

.dx-svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid rgba(0, 212, 255, 0.12);
}

.dx-svg text { font-family: inherit; }

.dx-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 12px 2px 4px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dx-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.dx-legend i.dot { width: 8px; height: 8px; border-radius: 50%; }
.dx-legend i.dash { height: 0; background: none; border-top: 2px dashed #7fb2ff; }

.dx-text { margin-top: 14px; min-height: 130px; }
.dx-text h3 { margin-bottom: 8px; font-size: 1.25rem; }
.dx-text p { margin-bottom: 12px; color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.75; text-align: left; }

.dx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-tags span {
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
}

.dx-anim > * { animation: dxIn 0.55s ease-out both; }
@keyframes dxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* svg animations */
.dx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dxDraw 1.8s ease-out 0.4s forwards; }
@keyframes dxDraw { to { stroke-dashoffset: 0; } }
.dx-pop { opacity: 0; animation: dxPop 0.5s ease-out forwards; }
@keyframes dxPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.dx-fade { opacity: 0; animation: dxFade 0.8s ease-out forwards; }
@keyframes dxFade { to { opacity: 1; } }
.dx-pulse { animation: dxPulse 1.8s ease-in-out infinite; }
@keyframes dxPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.dx-band { opacity: 0; animation: dxBand 6.6s ease-in-out infinite; }
.dx-band.b2 { animation-delay: 2.2s; }
.dx-band.b3 { animation-delay: 4.4s; }
@keyframes dxBand { 0% { opacity: 0; } 8%, 30% { opacity: 1; } 38%, 100% { opacity: 0; } }
.dx-dots { opacity: 0; animation: dxBand 6.6s ease-in-out infinite; }
.dx-dots.b2 { animation-delay: 2.2s; }
.dx-dots.b3 { animation-delay: 4.4s; }

/* ---------- Client receives ---------- */
.dx-receive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 10px;
}

.dx-card {
    padding: 26px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 102, 255, 0.06) 100%), var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    text-align: left;
}

.dx-card:hover { transform: translateY(-5px); border-color: rgba(0, 212, 255, 0.45); box-shadow: var(--shadow-glow); }
.dx-card h3 { margin-bottom: 8px; font-size: 1.125rem; }
.dx-card p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.7; }

.dx-provenance {
    margin-top: 18px;
    padding: 16px 20px;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--border-radius);
}

.dx-prow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.dx-prow em { font-style: normal; margin-left: auto; color: var(--color-text); }
.dx-prow i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dx-m { background: #00d4ff; }
.dx-r { background: #7fb2ff; box-shadow: 0 0 0 2px rgba(127, 178, 255, 0.25); }
.dx-e { background: transparent; border: 1.5px dashed #ffb020; }

/* ---------- What can be rebuilt ---------- */
.dx-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dx-case {
    position: relative;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
}

.dx-case:hover { transform: translateY(-5px); border-color: rgba(0, 212, 255, 0.45); box-shadow: var(--shadow-glow); }
.dx-case h3 { margin: 14px 0 8px; font-size: 1.0625rem; }

.dx-flow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dx-flow b { color: var(--color-primary); font-weight: 500; }
.dx-case svg { display: block; width: 100%; height: 64px; }

/* ---------- How we work ---------- */
.hw2 { position: relative; padding: 30px 0 10px; }

.hw2-line {
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 47px;
    height: 2px;
    background: rgba(0, 212, 255, 0.15);
}

.hw2-line span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
    transition: width 2.4s ease-out;
}

.hw2.in .hw2-line span { width: 100%; }

.hw2-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hw2-step {
    position: relative;
    padding: 0 6px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.hw2.in .hw2-step { opacity: 1; transform: none; }
.hw2.in .hw2-step:nth-child(2) { transition-delay: 0.5s; }
.hw2.in .hw2-step:nth-child(3) { transition-delay: 1s; }
.hw2.in .hw2-step:nth-child(4) { transition-delay: 1.5s; }

.hw2-node {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    margin: 31px auto 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 600;
    line-height: 34px;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.12), 0 0 22px rgba(0, 212, 255, 0.5);
    animation: nodePulse 3s ease-in-out infinite;
}

.hw2-step:nth-child(2) .hw2-node { animation-delay: 0.4s; }
.hw2-step:nth-child(3) .hw2-node { animation-delay: 0.8s; }
.hw2-step:nth-child(4) .hw2-node { animation-delay: 1.2s; }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(0,212,255,0.12), 0 0 22px rgba(0,212,255,0.5); } 50% { box-shadow: 0 0 0 12px rgba(0,212,255,0.05), 0 0 34px rgba(0,212,255,0.8); } }

.hw2-card {
    padding: 22px 20px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.07) 0%, rgba(0, 102, 255, 0.07) 100%), var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    text-align: left;
    transition: var(--transition);
}

.hw2-card:hover { transform: translateY(-5px); border-color: rgba(0, 212, 255, 0.45); box-shadow: var(--shadow-glow); }
.hw2-card h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.hw2-card p { margin-bottom: 14px; color: var(--color-text-muted); font-size: 0.875rem; line-height: 1.65; }
.hw2-card svg { display: block; width: 100%; height: auto; padding: 8px; background: rgba(10,10,15,0.55); border: 1px solid rgba(0,212,255,0.15); border-radius: var(--border-radius); }

.hw2-points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.hw2-point {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-left: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    text-align: left;
    transition: var(--transition);
}

.hw2-point:hover { background: rgba(0, 212, 255, 0.06); }
.hw2-point b { display: block; margin-bottom: 4px; font-weight: 500; color: var(--color-text); }
.hw2-point span { font-size: 0.8125rem; line-height: 1.6; color: var(--color-text-muted); }

.data-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 20px 0 100px;
    padding: 36px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 102, 255, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius-lg);
}

.data-cta h2 { margin-bottom: 6px; font-size: 1.75rem; }
.data-cta p { color: var(--color-text-muted); max-width: 640px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .data-explorer { grid-template-columns: 1fr; }
    .dx-stage { position: static; order: -1; }
    .dx-step.active { transform: none; }
    .dx-receive, .dx-cases { grid-template-columns: 1fr 1fr; }
    .hw2-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
    .hw2-line { display: none; }
    .hw2-node { margin-top: 0; }
    .hw2-points { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .data-section { padding: 48px 0; }
    .data-lead { padding-top: 48px; }
    .dx-receive, .dx-cases, .hw2-grid, .hw2-points { grid-template-columns: 1fr; }
    .dx-stage { padding: 14px; }
    .data-cta { flex-direction: column; align-items: stretch; padding: 24px; margin-bottom: 60px; }
    .page-hero--net { padding-bottom: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    .data-chip, .hw2-node, .dx-pulse, .dx-band, .dx-dots { animation: none; }
    .dx-band.b3, .dx-dots.b3 { opacity: 1; }
    .rv, .hw2-step { opacity: 1; transform: none; }
    .hw2-line span { width: 100%; transition: none; }
}

/* animations inside "How we work" start when the section enters the viewport */
.hw2 .dx-draw, .hw2 .dx-pulse { animation-play-state: paused; }
.hw2.in .dx-draw, .hw2.in .dx-pulse { animation-play-state: running; }
