/* =========================================================
   BHUMIRAKSHA — PHASE 5
   INTERACTIVE INTELLIGENCE DEMO
   ========================================================= */

:root {
    --navy: #061a38;
    --navy-2: #0a2548;
    --navy-3: #102f55;
    --green: #079669;
    --green-dark: #067d59;
    --green-light: #dff5ed;
    --white: #ffffff;
    --text: #10233f;
    --muted: #61728a;
    --line: #dce5ec;
    --soft: #f5f8fa;
    --cream: #f1eadc;
    --shadow: 0 20px 60px rgba(6, 26, 56, 0.10);
    --radius: 18px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(var(--container), calc(100% - 48px));
    min-height: 94px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.brand-mark {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-mark img {
    width: 66px;
    height: auto;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    color: var(--navy);
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.brand-copy span {
    color: #718096;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: #39485c;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--green);
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.header-button:hover {
    background: var(--green);
    transform: translateY(-2px);
}

/* =========================================================
   COMMON
   ========================================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #11a97a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: #11a97a;
}

h1,
h2,
h3 {
    letter-spacing: -0.045em;
}

p {
    color: var(--muted);
}

/* =========================================================
   HERO
   ========================================================= */

.demo-hero {
    position: relative;
    min-height: 720px;
    padding: 105px max(24px, calc((100% - var(--container)) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    color: var(--white);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(8, 150, 105, 0.16),
            transparent 32%
        ),
        linear-gradient(135deg, #061a38 0%, #071f40 55%, #082d4a 100%);
}

.demo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
    background-size: 72px 72px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .eyebrow {
    margin-bottom: 32px;
}

.hero-content h1 {
    max-width: 700px;
    font-size: clamp(56px, 6vw, 92px);
    line-height: 0.98;
    font-weight: 750;
    color: var(--white);
}

.hero-content h1 span {
    display: block;
    color: #08a974;
}

.hero-content p {
    max-width: 650px;
    margin-top: 30px;
    color: #c7d3e2;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 38px;
}

.primary-button,
.secondary-button {
    min-height: 52px;
    padding: 0 25px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 750;
    transition: all 0.2s ease;
}

.primary-button {
    background: var(--green);
    color: var(--white);
}

.primary-button:hover {
    background: #0aae7c;
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

.secondary-button:hover {
    background: rgba(255,255,255,0.10);
    transform: translateY(-2px);
}

/* =========================================================
   HERO ORBITAL VISUAL
   ========================================================= */

.hero-visual {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-system {
    position: relative;
    width: min(560px, 100%);
    aspect-ratio: 1;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(180, 210, 220, 0.20);
    border-radius: 50%;
    inset: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 58%;
    height: 58%;
}

.orbit-two {
    width: 78%;
    height: 78%;
}

.orbit-three {
    width: 98%;
    height: 98%;
}

.central-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(
            circle at 35% 25%,
            rgba(23, 91, 126, 0.90),
            transparent 35%
        ),
        linear-gradient(145deg, #0d4c6d, #061a38);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 30px 80px rgba(0,0,0,0.35);
}

.central-orb small {
    margin-bottom: 12px;
    color: #12ad7e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.central-orb strong {
    color: var(--white);
    font-size: 25px;
    line-height: 1.12;
}

.signal-card {
    position: absolute;
    min-width: 126px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(19, 48, 78, 0.84);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
}

.signal-card span {
    display: block;
    margin-bottom: 5px;
    color: #36bc93;
    font-size: 9px;
    font-weight: 800;
}

.signal-card strong {
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0.03em;
}

.signal-one {
    top: 8%;
    left: 10%;
}

.signal-two {
    top: 24%;
    right: 2%;
}

.signal-three {
    bottom: 14%;
    left: 3%;
}

.signal-four {
    right: 3%;
    bottom: 4%;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-section {
    padding: 110px 24px;
    background: var(--white);
}

.section-heading {
    width: min(var(--container), 100%);
    margin: 0 auto 55px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: end;
}

.section-heading h2 {
    margin-top: 18px;
    max-width: 700px;
    color: var(--navy);
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.02;
}

.section-heading h2 span {
    color: var(--green);
}

.section-heading > p {
    font-size: 16px;
    line-height: 1.8;
}

.dashboard-grid {
    width: min(var(--container), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card {
    min-height: 270px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 30px rgba(6,26,56,0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: #c8d8e2;
    box-shadow: var(--shadow);
}

.overview-card {
    grid-column: span 3;
    min-height: 230px;
    background: var(--navy);
    color: var(--white);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.card-label {
    color: #73859c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.overview-card .card-label {
    color: #91a5bd;
}

.status-dot,
.indicator {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(7,150,105,0.10);
}

.indicator.attention {
    background: #d28a23;
    box-shadow: 0 0 0 5px rgba(210,138,35,0.10);
}

.system-status {
    margin-top: 24px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.system-status strong {
    font-size: 27px;
    letter-spacing: -0.02em;
}

.system-status span {
    color: #91a5bd;
    font-size: 13px;
}

.status-bar {
    height: 5px;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255,255,255,0.10);
}

.status-bar span {
    display: block;
    width: 91%;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.card-meta {
    display: flex;
    gap: 70px;
    margin-top: 26px;
}

.card-meta div {
    display: flex;
    flex-direction: column;
}

.card-meta small {
    color: #8194aa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
}

.card-meta strong {
    margin-top: 3px;
    color: var(--white);
    font-size: 22px;
}

.dashboard-card h3 {
    margin-top: 28px;
    color: var(--navy);
    font-size: 22px;
}

.dashboard-card p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.metric span {
    color: #73859c;
    font-size: 12px;
}

.metric strong {
    color: var(--green-dark);
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* =========================================================
   INTELLIGENCE FLOW
   ========================================================= */

.flow-section {
    padding: 110px 24px;
    background: var(--soft);
}

.flow-heading {
    width: min(var(--container), 100%);
    margin: 0 auto 55px;
}

.flow-heading h2 {
    margin-top: 18px;
    color: var(--navy);
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.02;
}

.flow-heading h2 span {
    color: var(--green);
}

.flow-heading p {
    max-width: 650px;
    margin-top: 20px;
}

.flow {
    width: min(var(--container), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
}

.flow-step {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
}

.flow-step > span {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
}

.flow-step strong {
    display: block;
    margin-top: 24px;
    color: var(--navy);
    font-size: 20px;
}

.flow-step p {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 22px;
    font-weight: 700;
}

/* =========================================================
   SCENARIO ENGINE
   ========================================================= */

.scenario-section {
    padding: 110px 24px;
    background: var(--white);
}

.scenario-heading {
    width: min(var(--container), 100%);
    margin: 0 auto 55px;
}

.scenario-heading h2 {
    margin-top: 18px;
    color: var(--navy);
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.02;
}

.scenario-heading h2 span {
    color: var(--green);
}

.scenario-heading p {
    max-width: 680px;
    margin-top: 20px;
}

.scenario-layout {
    width: min(var(--container), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.scenario-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scenario-button {
    width: 100%;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-button span {
    color: #8292a6;
    font-size: 10px;
    font-weight: 800;
}

.scenario-button:hover {
    border-color: #bcd2dc;
    transform: translateX(3px);
}

.scenario-button.active {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.scenario-button.active span {
    color: rgba(255,255,255,0.7);
}

.scenario-result {
    min-height: 370px;
    padding: 42px;
    border-radius: var(--radius);
    color: var(--white);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(7,150,105,0.18),
            transparent 32%
        ),
        var(--navy);
}

.scenario-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8ea1b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.scenario-result h3 {
    margin-top: 24px;
    color: var(--white);
    font-size: 40px;
    line-height: 1.1;
}

.scenario-result > p {
    max-width: 700px;
    margin-top: 14px;
    color: #b9c8d8;
    font-size: 15px;
}

.scenario-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 35px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.12);
}

.scenario-data > div {
    padding: 20px;
    background: rgba(6,26,56,0.75);
}

.scenario-data small {
    display: block;
    color: #8297ad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.scenario-data strong {
    display: block;
    margin-top: 6px;
    color: var(--white);
    font-size: 13px;
}

.response-box {
    margin-top: 20px;
    padding: 20px 22px;
    border-left: 3px solid var(--green);
    background: rgba(7,150,105,0.08);
}

.response-box span {
    display: block;
    color: #54c7a3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.response-box strong {
    display: block;
    margin-top: 7px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   PILOT CTA
   ========================================================= */

.pilot-section {
    padding: 100px 24px;
    background: var(--green);
}

.pilot-content {
    width: min(var(--container), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
}

.pilot-content .eyebrow {
    color: rgba(255,255,255,0.75);
}

.pilot-content .eyebrow::before {
    background: rgba(255,255,255,0.75);
}

.pilot-content h2 {
    max-width: 800px;
    margin-top: 20px;
    color: var(--white);
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.02;
}

.pilot-content h2 span {
    display: block;
    color: #dff8ef;
}

.pilot-content p {
    max-width: 700px;
    margin-top: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 16px;
}

.pilot-button {
    min-width: 220px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.pilot-button:hover {
    transform: translateY(-3px);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--navy);
    color: var(--white);
}

.footer-main {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 75px 0 65px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 60px;
}

.footer-brand img {
    width: 76px;
    margin-bottom: 20px;
}

.footer-brand strong {
    display: block;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.footer-brand p {
    margin-top: 6px;
    color: #8ea1b8;
    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    margin-bottom: 12px;
    color: #9db0c5;
    font-size: 10px;
    letter-spacing: 0.15em;
}

.footer-column a {
    color: #d2dbe5;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #11b282;
}

.footer-bottom {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #788da5;
    font-size: 11px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {

    .main-nav {
        gap: 15px;
    }

    .header-inner {
        width: min(var(--container), calc(100% - 32px));
    }

    .demo-hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-card {
        grid-column: span 2;
    }

    .flow {
        grid-template-columns: repeat(3, 1fr);
    }

    .flow-arrow {
        display: none;
    }
}

@media (max-width: 900px) {

    .header-inner {
        min-height: 80px;
    }

    .main-nav {
        display: none;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .scenario-layout {
        grid-template-columns: 1fr;
    }

    .scenario-selector {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .pilot-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .header-inner {
        width: calc(100% - 24px);
    }

    .brand-mark {
        width: 55px;
        height: 55px;
    }

    .brand-mark img {
        width: 52px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .brand-copy span {
        display: none;
    }

    .header-button {
        min-height: 40px;
        padding: 0 15px;
        font-size: 11px;
    }

    .demo-hero {
        min-height: auto;
        padding: 75px 24px;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-visual {
        min-height: 390px;
    }

    .central-orb {
        width: 180px;
        height: 180px;
    }

    .central-orb strong {
        font-size: 18px;
    }

    .signal-card {
        min-width: 90px;
        padding: 10px 12px;
    }

    .signal-card strong {
        font-size: 9px;
    }

    .dashboard-section,
    .flow-section,
    .scenario-section {
        padding: 75px 18px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        grid-column: span 1;
    }

    .dashboard-card {
        min-height: 240px;
    }

    .system-status {
        flex-direction: column;
        gap: 5px;
    }

    .card-meta {
        gap: 25px;
    }

    .flow {
        grid-template-columns: 1fr;
    }

    .scenario-selector {
        grid-template-columns: 1fr;
    }

    .scenario-result {
        padding: 28px 22px;
    }

    .scenario-result h3 {
        font-size: 31px;
    }

    .scenario-data {
        grid-template-columns: 1fr;
    }

    .pilot-section {
        padding: 75px 24px;
    }

    .pilot-button {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 55px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}