﻿
:root {
    --navy: #042a64;
    --navy-soft: #0e3c82;
    --teal: #03959e;
    --teal-soft: #0bb5bf;
    --slate: #b3bdc6;
    --mist: #eef5f7;
    --ink: #1c2b3a;
    --white: #ffffff;
    --radius-lg: 22px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px -25px rgba(4,42,100,0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--white);
    font-family: 'Inter',sans-serif;
    color: var(--ink);
}

.mody-section {
    padding: 88px 24px;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(3,149,158,0.08), transparent 60%), var(--white);
}

.mody-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: 56px;
    align-items: center;
}

/* ---------- LEFT: COPY ---------- */
.mody-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--mist);
    border: 1px solid rgba(3,149,158,0.25);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
}

    .mody-eyebrow::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--teal);
        box-shadow: 0 0 0 3px rgba(3,149,158,0.18);
    }

.mody-heading {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-optical-sizing: auto;
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.12;
    color: var(--navy);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

    .mody-heading em {
        font-style: italic;
        color: var(--teal);
        font-weight: 500;
    }

.mody-copy {
    font-size: 16.5px;
    line-height: 1.65;
    color: #465569;
    max-width: 460px;
    margin: 0 0 32px;
}

.mody-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.mody-stat {
    padding-right: 28px;
    border-right: 1px solid var(--slate);
}

    .mody-stat:last-child {
        border-right: none;
        padding-right: 0;
    }

.mody-stat-num {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 25px;
    color: var(--navy);
    display: block;
    line-height: 1.1;
}

.mody-stat-label {
    font-size: 12.5px;
    color: #6d7c8c;
    margin-top: 4px;
    display: block;
}

.mody-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.mody-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 14px 30px -12px rgba(4,42,100,0.55);
}

    .mody-cta:hover {
        background: var(--teal);
        transform: translateY(-2px);
        box-shadow: 0 16px 34px -12px rgba(3,149,158,0.55);
    }

    .mody-cta:focus-visible {
        outline: 3px solid var(--teal-soft);
        outline-offset: 3px;
    }

    .mody-cta svg {
        width: 16px;
        height: 16px;
        transition: transform .25s ease;
    }

    .mody-cta:hover svg {
        transform: translateX(3px);
    }

.mody-secondary-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--slate);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}

    .mody-secondary-link:hover {
        color: var(--teal);
        border-color: var(--teal);
    }

/* ---------- RIGHT: NETWORK MAP ---------- */
.mody-visual {
    position: relative;
    background: linear-gradient(160deg, #f5f9fa 0%, var(--mist) 100%);
    border: 1px solid rgba(179,189,198,0.6);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.mody-visual-label {
    position: absolute;
    top: 22px;
    left: 30px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d7c8c;
    z-index: 2;
}

.mody-svg {
    width: 100%;
    height: auto;
    display: block;
}

.mody-line {
    stroke: var(--slate);
    stroke-width: 1.4;
    fill: none;
    stroke-dasharray: 6 500;
    stroke-dashoffset: 0;
    animation: mody-draw 1.8s ease-out forwards;
    opacity: 0.9;
}

    .mody-line.pan-india {
        stroke: var(--teal);
        stroke-dasharray: 3 5;
        opacity: 0.55;
    }

@keyframes mody-draw {
    from {
        stroke-dasharray: 0 500;
    }

    to {
        stroke-dasharray: 500 0;
    }
}

.mody-node circle.dot {
    fill: var(--navy);
    stroke: #fff;
    stroke-width: 2;
    transition: r .2s ease, fill .2s ease;
}

.mody-node.hub circle.dot {
    fill: var(--teal);
}

.mody-node.satellite circle.dot {
    fill: var(--navy-soft);
}

.mody-node.far circle.dot {
    fill: var(--slate);
}

.mody-node circle.pulse {
    fill: none;
    stroke: var(--teal);
    stroke-width: 1.5;
    opacity: 0;
    transform-origin: center;
}

.mody-node.hub circle.pulse {
    animation: mody-pulse 2.4s ease-out infinite;
}

@keyframes mody-pulse {
    0% {
        opacity: 0.55;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(2.6);
    }
}

.mody-node text {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    fill: #465569;
    font-weight: 500;
}

.mody-node.hub text {
    fill: var(--navy);
    font-weight: 700;
    font-size: 11.5px;
}

.mody-node {
    cursor: pointer;
}

    .mody-node circle.dot:hover, .mody-node:focus circle.dot {
        r: 8;
    }

    .mody-node:focus {
        outline: none;
    }

        .mody-node:focus circle.dot {
            stroke: var(--teal);
            stroke-width: 3;
        }

.mody-tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--navy);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 8px;
    transform: translate(-50%, -120%);
    opacity: 0;
    transition: opacity .15s ease;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 10px 24px -8px rgba(4,42,100,0.5);
}

    .mody-tooltip b {
        color: var(--teal-soft);
    }

    .mody-tooltip.visible {
        opacity: 1;
    }

    .mody-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: var(--navy);
    }

.mody-legend {
    display: flex;
    gap: 18px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(179,189,198,0.6);
    font-size: 12px;
    color: #6d7c8c;
    flex-wrap: wrap;
}

    .mody-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .mody-legend i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }

@media (max-width: 880px) {
    .mody-container {
        grid-template-columns: 1fr;
    }

    .mody-copy {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mody-line {
        animation: none;
        stroke-dasharray: none;
    }

    .mody-node.hub circle.pulse {
        animation: none;
        opacity: 0;
    }

    .mody-cta, .mody-cta svg {
        transition: none;
    }
}

