/* PrivateCircle Networks — live palette, custom layout below hero */

body.connect-page.networks-page {
    background: #ffffff;
    color: #000306;
}

.networks-page {
    --nw-hero-bg: #000306;
    --nw-green: #00ba52;
    --nw-green-hover: #00a347;
    --nw-green-soft: #e3ffef;
    --nw-green-muted: #c8f5dc;
    --nw-dark: #001828;
    --nw-text: #000306;
    --nw-muted: #828282;
    --nw-label: #979797;
    --nw-border: #d9e0e8;
    --nw-surface: #ffffff;
    --nw-surface-alt: #f4f5f7;
    --nw-ink: #0a1628;

    font-family: 'Inter', sans-serif;
    background: var(--nw-surface);
    color: var(--nw-text);
}

/* ═══════════════════════════════════════════
   HERO — structure unchanged; fit first fold
   ═══════════════════════════════════════════ */
.networks-page .cn-hero {
    background: linear-gradient(180deg, #FFF 0%, #C7E3C5 100%);
}

.networks-page .cn-btn-primary {
    background: var(--nw-green);
    border-color: var(--nw-green);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
}

.networks-page .cn-btn-primary:hover {
    background: var(--nw-green-hover);
    border-color: var(--nw-green-hover);
    color: #ffffff;
}

.networks-page .cn-btn-ghost {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px;
}

.networks-page .cn-btn-ghost:hover {
    background: #333333;
    border-color: #e6e6e6;
    color: #ffffff;
}

/* Navbar — match other product pages */
.networks-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
}

.networks-page .site-header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.networks-page .logo { color: #1a1a2e; }
.networks-page .nav-link { color: #4a5568; }
.networks-page .nav-link:hover { color: #1a1a2e; }
.networks-page .btn-text { color: #1a1a2e; }
.networks-page .btn-text:hover { background: #f7f9fc; color: #1a1a2e; }
.networks-page .mobile-menu-toggle { color: #1a1a2e; }
.networks-page .btn-primary {
    background: var(--nw-green);
    border-color: var(--nw-green);
}

/* Shared type */
.nw-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nw-green);
}

.nw-accent {
    color: var(--nw-green);
}

/* ═══════════════════════════════════════════
   TRUST GRAPH — animated viz + stats panel
   ═══════════════════════════════════════════ */
.nw-graph {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 186, 82, 0.07) 0%, transparent 70%),
        linear-gradient(180deg, #f6faf8 0%, var(--nw-surface) 100%);
    border-bottom: 1px solid var(--nw-border);
    overflow: hidden;
}

.nw-graph-wrap {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

/* ── Animated network visual ── */
.nw-graph-viz {
    position: relative;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 1rem 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #eef8f2 100%);
    border: 1px solid var(--nw-green-muted);
    box-shadow: 0 16px 48px rgba(0, 186, 82, 0.08);
}

.nw-graph-svg {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: visible;
}

.nw-graph-edge {
    stroke: url(#nw-edge-grad);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.nw-graph-viz.is-visible .nw-graph-edge {
    animation: nw-edge-draw 2.4s ease forwards;
}

.nw-graph-edge:nth-child(1) { animation-delay: 0.1s; }
.nw-graph-edge:nth-child(2) { animation-delay: 0.25s; }
.nw-graph-edge:nth-child(3) { animation-delay: 0.45s; }
.nw-graph-edge:nth-child(4) { animation-delay: 0.55s; }
.nw-graph-edge:nth-child(5) { animation-delay: 0.7s; }
.nw-graph-edge:nth-child(6) { animation-delay: 0.8s; }
.nw-graph-edge:nth-child(7) { animation-delay: 0.95s; }
.nw-graph-edge:nth-child(8) { animation-delay: 1.05s; }

@keyframes nw-edge-draw {
    to { stroke-dashoffset: 0; }
}

.nw-graph-node {
    fill: #fff;
    stroke: var(--nw-green);
    stroke-width: 2.5;
    opacity: 0;
}

.nw-graph-viz.is-visible .nw-graph-node {
    animation: nw-node-in 0.5s ease forwards;
}

.nw-graph-node--hub {
    fill: var(--nw-green);
    stroke: var(--nw-green-hover);
    stroke-width: 3;
    filter: drop-shadow(0 0 12px rgba(0, 186, 82, 0.45));
}

.nw-graph-viz.is-visible .nw-graph-node--hub {
    animation: nw-node-in 0.5s ease forwards, nw-hub-pulse 2.5s ease-in-out 1.2s infinite;
}

.nw-graph-node--a { animation-delay: 0.05s; }
.nw-graph-node--b { animation-delay: 0.3s; }
.nw-graph-node--c { animation-delay: 0.35s; }
.nw-graph-node--hub { animation-delay: 0.55s; }
.nw-graph-node--d { animation-delay: 0.75s; }
.nw-graph-node--e { animation-delay: 0.8s; }
.nw-graph-node--f { animation-delay: 1s; }

@keyframes nw-node-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes nw-hub-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 186, 82, 0.35)); }
    50%      { filter: drop-shadow(0 0 18px rgba(0, 186, 82, 0.6)); }
}

.nw-graph-tags {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nw-graph-tag {
    position: absolute;
    left: var(--nw-tag-x);
    top: var(--nw-tag-y);
    transform: translate(-50%, -50%);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nw-muted);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--nw-border);
    opacity: 0;
}

.nw-graph-viz.is-visible .nw-graph-tag {
    animation: nw-tag-in 0.4s ease forwards;
    animation-delay: calc(1.1s + var(--nw-tag-i, 0) * 0.12s);
}

.nw-graph-tag:nth-child(1) { --nw-tag-i: 0; }
.nw-graph-tag:nth-child(2) { --nw-tag-i: 1; }
.nw-graph-tag:nth-child(3) { --nw-tag-i: 2; }
.nw-graph-tag:nth-child(4) { --nw-tag-i: 3; }
.nw-graph-tag:nth-child(5) { --nw-tag-i: 4; }
.nw-graph-tag:nth-child(6) { --nw-tag-i: 5; }

.nw-graph-tag--hub {
    color: var(--nw-green-hover);
    border-color: var(--nw-green);
    background: var(--nw-green-soft);
}

@keyframes nw-tag-in {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ── Intro & CTA ── */
.nw-graph-intro {
    margin-bottom: 2rem;
}

.nw-lead-label {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nw-label);
    line-height: 1.5;
}

.nw-graph-title {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    line-height: 1.45;
    font-weight: 400;
    color: var(--nw-ink);
    letter-spacing: -0.02em;
}

.nw-graph-lede {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--nw-muted);
}

.nw-graph-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: 14px;
    background: var(--nw-green-soft);
    border: 1px solid var(--nw-green-muted);
}

.nw-graph-cta-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    max-width: 540px;
}

.nw-graph-cta-copy i {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--nw-green);
    margin-top: 0.1rem;
}

.nw-graph-cta-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--nw-dark);
}

.nw-graph-cta-copy strong {
    color: var(--nw-ink);
    font-weight: 600;
}

/* ── Stats panel ── */
.nw-graph-stats-panel {
    text-align: left;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--nw-surface);
    border: 1px solid var(--nw-border);
    box-shadow: 0 8px 32px rgba(0, 24, 40, 0.05);
}

.nw-stats-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--nw-border);
}

.nw-graph-stats-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nw-label);
    font-weight: 600;
}

.nw-stats-date {
    font-size: 0.78rem;
    color: var(--nw-muted);
}

.nw-stats-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.nw-stats-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nw-stats-hero {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nw-stats-hero > i {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--nw-green-soft);
    color: var(--nw-green);
    font-size: 1.35rem;
}

.nw-stat-num {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--nw-ink);
    line-height: 1.1;
}

.nw-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nw-muted);
    margin-top: 0.15rem;
}

.nw-stats-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.nw-stats-breakdown li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: var(--nw-surface-alt);
    font-size: 0.88rem;
    color: var(--nw-muted);
    line-height: 1.3;
}

.nw-stats-breakdown li i {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--nw-green);
}

.nw-stats-breakdown strong {
    color: var(--nw-ink);
    font-weight: 700;
}

/* Scroll reveal */
.nw-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.nw-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nw-reveal--delay-1 { transition-delay: 0.1s; }
.nw-reveal--delay-2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .nw-graph-edge {
        stroke-dashoffset: 0;
    }

    .nw-graph-node,
    .nw-graph-tag {
        opacity: 1;
    }

    .nw-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ═══════════════════════════════════════════
   SERVICE — dark fold, scroll word reveal
   ═══════════════════════════════════════════ */
.nw-service {
    background: var(--nw-ink);
    color: #fff;
}

.nw-service .nw-kicker {
    color: var(--nw-green);
}

.nw-service-pin {
    height: 240vh;
}

.nw-service-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(5rem, 10vh, 6.5rem) 1.5rem;
    box-sizing: border-box;
    text-align: center;
}

.nw-service-head {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.nw-service-copy {
    margin: 0 auto;
    max-width: 1180px;
    font-size: clamp(1.75rem, 3.8vw, 3.25rem);
    line-height: 1.35;
    letter-spacing: -0.025em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
}

.nw-service-copy .word {
    color: #6b7280;
    transition: color 0.3s ease;
}

.nw-service-copy .word.is-lit {
    color: #ffffff;
}

.nw-service-icon {
    display: inline-block;
    vertical-align: middle;
    font-size: clamp(1.5rem, 3.2vw, 2.75rem);
    line-height: 1;
    margin: 0 0.12em 0 0.08em;
    color: #4a5568;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nw-service-icon.is-lit {
    color: var(--nw-green);
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .nw-service-pin {
        height: auto;
    }

    .nw-service-sticky {
        position: relative;
        min-height: 0;
    }

    .nw-service-copy .word {
        color: #ffffff;
    }

    .nw-service-icon {
        color: var(--nw-green);
    }
}

/* ═══════════════════════════════════════════
   USE CASES — light grid, path visuals
   ═══════════════════════════════════════════ */
.nw-use-cases {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(180deg, #f8faf9 0%, var(--nw-surface) 100%);
    border-bottom: 1px solid var(--nw-border);
}

.nw-use-head {
    max-width: 720px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.nw-use-lede {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--nw-muted);
}

.nw-use-lede strong {
    color: var(--nw-ink);
    font-weight: 600;
}

#nw-use-cases-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--nw-ink);
    font-weight: 600;
}

.nw-use-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.nw-use-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--nw-surface);
    border: 1px solid var(--nw-border);
    box-shadow: 0 4px 24px rgba(0, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nw-use-card:hover {
    border-color: var(--nw-green-muted);
    box-shadow: 0 12px 40px rgba(0, 186, 82, 0.08);
}

.nw-use-visual {
    margin-bottom: 1.25rem;
    padding: 1rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nw-green-soft) 0%, #f0f7f4 100%);
    border: 1px solid var(--nw-green-muted);
}

.nw-path-viz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.nw-path-node {
    flex: 0 1 auto;
    max-width: 28%;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: var(--nw-surface);
    border: 1px solid var(--nw-border);
    font-size: 0.62rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    color: var(--nw-ink);
}

.nw-path-node--connector {
    border-color: var(--nw-green);
    color: var(--nw-green-hover);
    background: #fff;
}

.nw-path-node--target {
    background: var(--nw-ink);
    border-color: var(--nw-ink);
    color: #fff;
}

.nw-path-line {
    flex: 1 1 12%;
    height: 2px;
    min-width: 12px;
    background: linear-gradient(90deg, var(--nw-green-muted) 0%, var(--nw-green) 100%);
    border-radius: 99px;
    position: relative;
}

.nw-path-line::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--nw-green);
}

.nw-use-card-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.nw-use-card-head i {
    font-size: 1.35rem;
    color: var(--nw-green);
}

.nw-use-card-head h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--nw-ink);
    letter-spacing: -0.01em;
}

.nw-use-summary {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--nw-muted);
}

.nw-use-steps {
    margin: 0;
    padding: 0 0 0 1.15rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--nw-ink);
}

.nw-use-steps li {
    margin-bottom: 0.35rem;
}

.nw-use-steps li::marker {
    color: var(--nw-green);
    font-weight: 700;
}

.nw-use-steps li:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════ */
.nw-pricing {
    padding: 5rem 0;
    background: var(--nw-surface);
}

.nw-pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.nw-pricing-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.25;
    color: var(--nw-ink);
    font-weight: 600;
}

.nw-pricing-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.nw-price-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: var(--nw-surface-alt);
    border: 1px solid var(--nw-border);
}

.nw-price-card i {
    font-size: 1.35rem;
    color: var(--nw-green);
    margin-top: 0.1rem;
}

.nw-price-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--nw-ink);
}

/* ═══════════════════════════════════════════
   PRODUCT SUITE
   ═══════════════════════════════════════════ */
.nw-suite {
    padding: 4.5rem 0 5rem;
    background: var(--nw-green-soft);
    border-top: 1px solid rgba(0, 186, 82, 0.15);
}

.nw-suite-title {
    margin: 0 0 2rem;
    text-align: center;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    color: var(--nw-ink);
}

.nw-suite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.nw-suite-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem;
    border-radius: 16px;
    background: var(--nw-surface);
    border: 1px solid var(--nw-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nw-suite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 24, 40, 0.08);
}

.nw-suite-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.nw-suite-card p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--nw-muted);
}

.nw-suite-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nw-green);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.networks-page .cn-cta {
    padding: 5.5rem 0;
    background: linear-gradient(180deg, #f0fff4 0%, #d4f5e3 100%);
    border-top: 1px solid rgba(0, 186, 82, 0.12);
}

.networks-page .cn-cta-glow {
    background: radial-gradient(ellipse, rgba(0, 186, 82, 0.15) 0%, transparent 70%);
}

.networks-page .cn-cta-title {
    color: var(--nw-ink);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.networks-page .cn-cta-note {
    color: var(--nw-label);
}

.networks-page .cn-cta-note i {
    color: var(--nw-green);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nw-pricing-layout {
        grid-template-columns: 1fr;
    }

    .nw-suite-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nw-graph,
    .nw-use-cases,
    .nw-pricing {
        padding: 3.5rem 0;
    }

    .nw-use-grid {
        grid-template-columns: 1fr;
    }

    .nw-service-pin {
        height: 220vh;
    }

    .nw-service-sticky {
        padding-top: 4.5rem;
    }

    .nw-service-copy {
        font-size: clamp(1.35rem, 5.5vw, 2rem);
        line-height: 1.35;
    }

    .nw-service-icon {
        font-size: clamp(1.25rem, 4.5vw, 1.85rem);
    }

    .nw-stats-columns {
        grid-template-columns: 1fr;
    }

    .nw-graph-viz {
        padding: 1rem 0.5rem 1.5rem;
    }

    .nw-graph-tag {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .nw-graph-cta-copy {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nw-graph-tags {
        display: none;
    }
}
