:root,
html[data-theme="light"] {
    --orange: #fd8c00;
    --orange-2: #e67a00;
    --navy: #003588;
    --navy-2: #0a4bb8;
    --ink: #f5f7fb;
    --ink-2: #ffffff;
    --panel: #ffffff;
    --line: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --muted: #5b6b7f;
    --cyan: #0284c7;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --header-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;
    --card-soft: #f1f5f9;
    --ghost-border: rgba(15, 23, 42, 0.14);
    --ghost-text: #0f172a;
    --nav-hover: #0f172a;
    --role-bg: #ffffff;
    --role-list: #334155;
    --cta-bg:
        radial-gradient(circle at 90% 20%, rgba(253,140,0,0.2), transparent 30%),
        linear-gradient(135deg, #ffffff, #eef3f9 55%);
    --stat-grad: linear-gradient(90deg, #0f172a, #fd8c00);
    --menu-bg: rgba(255, 255, 255, 0.98);
    --feed-text: #0f172a;
    --kpi-bg: #f8fafc;
    --platform-item-bg: #ffffff;
    --section-alt: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent);
    --marquee-bg: rgba(15, 23, 42, 0.03);
    --orb-opacity: 0.22;
    --grid-line: rgba(15, 23, 42, 0.045);
    --particle: rgba(15, 23, 42, 0.35);
    --logo-filter: brightness(0) saturate(100%);
}

html[data-theme="dark"] {
    --orange: #fd8c00;
    --orange-2: #ffb347;
    --navy: #003588;
    --navy-2: #0a4bb8;
    --ink: #05070d;
    --ink-2: #0b1220;
    --panel: rgba(10, 16, 32, 0.72);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f7fb;
    --muted: #9bb0c9;
    --cyan: #3ad7ff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(5, 7, 13, 0.82);
    --card-bg: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    --card-soft: rgba(255,255,255,0.04);
    --ghost-border: rgba(255,255,255,0.18);
    --ghost-text: #fff;
    --nav-hover: #fff;
    --role-bg: #07101d;
    --role-list: #d5e4f5;
    --cta-bg:
        radial-gradient(circle at 90% 20%, rgba(253,140,0,0.28), transparent 30%),
        linear-gradient(135deg, #0a1730, #05070d 55%);
    --stat-grad: linear-gradient(90deg, #fff, var(--orange-2));
    --menu-bg: rgba(8, 12, 22, 0.96);
    --feed-text: #fff;
    --kpi-bg: rgba(5, 10, 22, 0.7);
    --platform-item-bg: rgba(255,255,255,0.03);
    --section-alt: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    --marquee-bg: rgba(255,255,255,0.02);
    --orb-opacity: 0.55;
    --grid-line: rgba(255,255,255,0.035);
    --particle: rgba(255,255,255,0.55);
    --logo-filter: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h2 {
    margin: 10px 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h3 { margin: 0 0 8px; }

button { font-family: inherit; }

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: var(--orb-opacity);
    animation: drift 18s ease-in-out infinite;
}

.orb-a {
    width: 420px;
    height: 420px;
    background: #fd8c00;
    top: -80px;
    right: 8%;
}

.orb-b {
    width: 520px;
    height: 520px;
    background: #003588;
    bottom: 8%;
    left: -120px;
    animation-delay: -6s;
}

.orb-c {
    width: 280px;
    height: 280px;
    background: #3ad7ff;
    top: 42%;
    right: -80px;
    animation-delay: -11s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

.scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(58, 215, 255, 0.08), transparent);
    animation: scan 8s linear infinite;
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

@keyframes scan {
    0% { top: -20%; }
    100% { top: 110%; }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow);
}

main {
    position: relative;
    z-index: 1;
    padding-top: 88px;
}

.section,
#platform,
#modules,
#access,
#workflow {
    scroll-margin-top: 96px;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    height: 52px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: var(--logo-filter);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.brand-copy span {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--nav-hover);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-login,
.btn-primary {
    background: linear-gradient(135deg, #fd8c00, #ffb347);
    color: #003588;
    box-shadow: 0 10px 30px rgba(253, 140, 0, 0.35);
}

.btn-login:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(253, 140, 0, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--ghost-text);
    border: 1px solid var(--ghost-border);
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange-2);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card-soft);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--orange);
    color: var(--orange-2);
    transform: translateY(-1px);
}

.theme-icon { display: none; }

html[data-theme="light"] .theme-icon-moon { display: block; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card-soft);
    color: var(--text);
    cursor: pointer;
}

.hero {
    position: relative;
    z-index: 1;
    padding: 48px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(253, 140, 0, 0.35);
    background: rgba(253, 140, 0, 0.08);
    color: var(--orange-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #fd8c00, #ffd089, #3ad7ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.lead {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 0 28px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dash-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: perspective(1200px) rotateY(-8deg) rotateX(6deg);
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(6deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-4deg) rotateX(3deg) translateY(-12px); }
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dash-top strong { font-size: 14px; }

.live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.kpi {
    background: var(--kpi-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
}

.kpi small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.kpi b {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 92px;
    padding: 8px 4px 0;
}

.bars span {
    flex: 1;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, var(--orange), rgba(253,140,0,0.2));
    animation: grow 2.4s ease-in-out infinite alternate;
}

.bars span:nth-child(odd) {
    background: linear-gradient(180deg, var(--cyan), rgba(58,215,255,0.15));
}

.bars span:nth-child(1) { height: 42%; animation-delay: 0s; }
.bars span:nth-child(2) { height: 68%; animation-delay: 0.2s; }
.bars span:nth-child(3) { height: 54%; animation-delay: 0.4s; }
.bars span:nth-child(4) { height: 86%; animation-delay: 0.1s; }
.bars span:nth-child(5) { height: 47%; animation-delay: 0.35s; }
.bars span:nth-child(6) { height: 73%; animation-delay: 0.15s; }
.bars span:nth-child(7) { height: 61%; animation-delay: 0.45s; }
.bars span:nth-child(8) { height: 91%; animation-delay: 0.25s; }

@keyframes grow {
    from { transform: scaleY(0.86); }
    to { transform: scaleY(1.08); }
}

.feed {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.feed-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--card-soft);
    font-size: 12px;
}

.feed-item b { color: var(--feed-text); }
.tag { color: var(--orange-2); font-weight: 700; }

.section {
    position: relative;
    z-index: 1;
    padding: 88px 0;
}

.section.alt {
    background: var(--section-alt);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head h2 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.marquee-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--marquee-bg);
    padding: 16px 0;
}

.marquee {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee span::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 12px var(--orange);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

.module {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    min-height: 220px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.module::before {
    content: "";
    position: absolute;
    inset: auto auto -40px -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253,140,0,0.25), transparent 70%);
}

.module:hover {
    transform: translateY(-8px);
    border-color: rgba(253,140,0,0.45);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(253,140,0,0.12);
    color: var(--orange-2);
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.module h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.module p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.role {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--role-bg);
    border: 1px solid var(--line);
    min-height: 280px;
}

.role:nth-child(1) { border-top: 3px solid #fd8c00; }
.role:nth-child(2) { border-top: 3px solid #3ad7ff; }
.role:nth-child(3) { border-top: 3px solid #60a5fa; }
.role:nth-child(4) { border-top: 3px solid #a78bfa; }

.role h3 { margin: 12px 0 8px; }
.role p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.role ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--role-list);
    font-size: 13px;
}

.role li {
    padding: 6px 0 6px 16px;
    position: relative;
}

.role li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}

.step {
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(253,140,0,0.08), rgba(255,255,255,0.02));
    border: 1px solid var(--line);
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    color: var(--orange);
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    text-align: center;
    padding: 28px 12px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--card-soft);
}

.stat b {
    display: block;
    font-size: 38px;
    letter-spacing: -0.04em;
    background: var(--stat-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }

.cta-band {
    position: relative;
    z-index: 1;
    margin: 0 0 80px;
}

.cta-inner {
    border-radius: 32px;
    padding: 48px;
    background: var(--cta-bg);
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cta-inner h2 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.cta-inner p { margin: 0; color: var(--muted); }

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding: 42px 0 28px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: var(--text);
}

.site-footer a:hover { color: var(--orange-2); }

.site-footer img {
    filter: var(--logo-filter);
}

.copyright {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.spotlight {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(253,140,0,0.16), transparent 68%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 36px;
    row-gap: 18px;
    align-items: stretch;
}

.platform-intro {
    grid-column: 1;
    grid-row: 1;
}

.platform-list {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    gap: 14px;
    align-content: stretch;
}

.vis-card {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    border-radius: 28px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #2b2b2b;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.platform-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--platform-item-bg);
    align-items: flex-start;
}

.platform-item .icon-box { margin-bottom: 0; }

.platform-item strong { display: block; margin-bottom: 4px; }
.platform-item span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.vis-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    font-size: 13px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.india-map-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2b2b2b;
    overflow: hidden;
}

.india-map-stage {
    position: relative;
    height: 100%;
    width: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
}

.india-map-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

.state-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #e10600;
    border: 1.5px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -90%) rotate(-45deg);
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.85);
    animation: statePinBlink 1.45s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes statePinBlink {
    0%, 100% { opacity: 1; transform: translate(-50%, -90%) rotate(-45deg) scale(1); }
    50% { opacity: 0.2; transform: translate(-50%, -90%) rotate(-45deg) scale(1.35); }
}

.login-icon {
    width: 16px;
    height: 16px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.8s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    .hero-grid,
    .modules,
    .roles,
    .steps,
    .stats,
    .split,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-card { transform: none; animation: none; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .wrap {
        width: min(1180px, calc(100% - 24px));
    }

    .site-header {
        padding: 10px 0;
    }

    .nav-row {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 158px);
    }

    .brand img {
        height: 34px;
        max-width: 100%;
        width: auto;
    }

    .nav-links,
    .nav-actions .btn-ghost { display: none; }

    .nav-actions {
        flex: 0 0 auto;
        gap: 6px;
        margin-left: auto;
    }

    .btn-login {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .theme-toggle,
    .menu-toggle {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .menu-toggle { display: grid; place-items: center; }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 62px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 18px;
        background: var(--menu-bg);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
        z-index: 120;
    }

    .hero { padding-top: 24px; }
    .hero-grid,
    .modules,
    .roles,
    .steps,
    .stats,
    .split,
    .footer-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-rows: none;
    }

    .platform-intro,
    .platform-list,
    .vis-card {
        grid-column: auto;
        grid-row: auto;
    }

    .vis-card {
        min-height: 420px;
    }

    .cta-inner { padding: 28px; }
    .brand-copy { display: none; }

    main {
        padding-top: 72px;
    }
}

@media (max-width: 420px) {
    .brand {
        max-width: calc(100% - 148px);
    }

    .brand img {
        height: 30px;
    }

    .btn-login {
        padding: 8px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .login-icon {
        width: 14px;
        height: 14px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
}

.nav-links a.is-active {
    color: var(--nav-hover);
}

.nav-links a.is-active::after {
    width: 100%;
}

.page-hero {
    position: relative;
    z-index: 1;
    padding: 36px 0 28px;
}

.page-hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero-copy {
    margin-bottom: 0;
    text-align: left;
    max-width: 760px;
    margin-left: 0;
    margin-right: auto;
}

.page-hero-copy .lead {
    max-width: 680px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.page-hero-panel {
    display: grid;
    gap: 12px;
}

.page-hero-stat {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--platform-item-bg);
}

.page-hero-stat span {
    display: inline-block;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.page-hero-stat strong {
    display: block;
    margin-bottom: 4px;
}

.page-hero-stat p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.detail-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.detail-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    min-height: 100%;
}

.detail-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.detail-card > p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    position: relative;
    padding: 7px 0 7px 16px;
    color: var(--role-list);
    font-size: 13px;
    line-height: 1.45;
}

.detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

.modules-detailed .module {
    min-height: 260px;
}

.modules-detailed .detail-list {
    margin-top: 12px;
}

.roles-detailed .role {
    min-height: 360px;
}

.split-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.page-map-card {
    min-height: 420px;
}

.workflow-timeline {
    display: grid;
    gap: 16px;
}

.workflow-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
}

.workflow-index {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(253,140,0,0.12);
    color: var(--orange-2);
    font-weight: 800;
    font-size: 14px;
}

.workflow-body h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.workflow-body > p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .page-hero-grid,
    .detail-grid,
    .detail-grid.three,
    .split-detail {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero-grid,
    .detail-grid,
    .detail-grid.three,
    .split-detail {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .page-map-card {
        min-height: 320px;
    }
}

html[data-theme="dark"] .orb-c {
    opacity: 0.28;
}

html[data-theme="light"] .step {
    background: linear-gradient(180deg, rgba(253,140,0,0.1), #ffffff);
}

html[data-theme="light"] .module,
html[data-theme="light"] .detail-card,
html[data-theme="light"] .workflow-step {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .vis-head {
    color: #fff;
}

html[data-theme="light"] .vis-head .live {
    color: #86efac;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

