:root {
    color-scheme: dark;
    --bg: #05070b;
    --bg-soft: rgba(10, 14, 22, 0.9);
    --panel: rgba(10, 16, 24, 0.84);
    --panel-strong: rgba(8, 12, 18, 0.96);
    --line: rgba(120, 182, 255, 0.18);
    --text: #edf6ff;
    --muted: #96abc0;
    --cyan: #59e1ff;
    --amber: #ffc96b;
    --mint: #7ef0b2;
    --rose: #ff808c;
    --violet: #93a4ff;
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(5, 7, 11, 0.72), rgba(5, 7, 11, 0.88)),
        linear-gradient(110deg, rgba(89, 225, 255, 0.06), transparent 34%, rgba(255, 201, 107, 0.05) 60%, transparent 84%),
        var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

body::before {
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(89, 225, 255, 0.08), transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(255, 201, 107, 0.06), transparent 18%),
        radial-gradient(circle at 50% 75%, rgba(126, 240, 178, 0.05), transparent 24%);
    opacity: 0.9;
}

body::after {
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.08;
}

.network-field {
    position: fixed;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.scanline {
    position: fixed;
    inset: -30% 0 auto;
    z-index: -1;
    height: 30vh;
    background: linear-gradient(180deg, transparent, rgba(89, 225, 255, 0.08), transparent);
    opacity: 0.34;
    pointer-events: none;
    animation: sweep 16s linear infinite;
}

.network-link,
.network-node {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 50%;
    pointer-events: none;
}

.network-link {
    height: 1px;
    background: linear-gradient(90deg, rgba(89, 225, 255, 0), rgba(89, 225, 255, 0.42), rgba(255, 201, 107, 0.08));
    opacity: 0.34;
}

.network-node {
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    border-radius: 999px;
    background: rgba(89, 225, 255, 0.92);
    box-shadow:
        0 0 10px rgba(89, 225, 255, 0.5),
        0 0 26px rgba(89, 225, 255, 0.18);
}

.network-node.layer-2 {
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    background: rgba(255, 201, 107, 0.92);
    box-shadow:
        0 0 12px rgba(255, 201, 107, 0.48),
        0 0 28px rgba(255, 201, 107, 0.18);
}

.network-node.layer-3 {
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    background: rgba(126, 240, 178, 0.92);
    box-shadow:
        0 0 8px rgba(126, 240, 178, 0.45),
        0 0 22px rgba(126, 240, 178, 0.16);
}

@keyframes sweep {
    from { transform: translateY(-15vh); }
    to { transform: translateY(120vh); }
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(20px, 4vw, 40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 8, 12, 0.52);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(89, 225, 255, 0.28);
    border-radius: 6px;
    color: var(--cyan);
    background: rgba(15, 22, 32, 0.88);
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.18s ease;
}

.nav a:hover {
    color: var(--text);
}

.hero {
    min-height: calc(100svh - 76px);
    padding: 34px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

.hero-copy h1 {
    margin: 0;
    font-size: 6.2rem;
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-copy h1 span {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.34em;
    font-weight: 500;
    line-height: 1.5;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 36rem;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.86;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.action-button,
.ghost-link,
.command-bar button {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.action-button:hover,
.ghost-link:hover,
.command-bar button:hover,
.module-card:hover {
    transform: translateY(-1px);
}

.action-button {
    background: linear-gradient(180deg, rgba(89, 225, 255, 0.16), rgba(89, 225, 255, 0.06));
    border-color: rgba(89, 225, 255, 0.22);
    color: #ecfbff;
}

.action-button:hover {
    border-color: rgba(89, 225, 255, 0.48);
    background: linear-gradient(180deg, rgba(89, 225, 255, 0.22), rgba(89, 225, 255, 0.1));
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.ghost-link:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
    max-width: 40rem;
}

.metric {
    min-height: 86px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 16, 24, 0.62);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    margin-top: 10px;
    font-size: 0.98rem;
    font-weight: 700;
}

.terminal-panel,
.forge-editor,
.forge-runtime,
.radar-shell,
.contact-kernel,
.protocol,
.module-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.terminal-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 680px;
    background:
        linear-gradient(180deg, rgba(13, 20, 30, 0.98), rgba(8, 12, 18, 0.96));
}

.terminal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 0.82rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.status-dot.red { background: #ff6b6b; }
.status-dot.amber { background: #ffc96b; }
.status-dot.green { background: #7ef0b2; }

.terminal-title {
    margin-left: 6px;
    color: var(--text);
    font-weight: 700;
}

.terminal-state {
    margin-left: auto;
    color: var(--amber);
    text-transform: uppercase;
}

.terminal-clock {
    min-width: 88px;
    text-align: right;
}

.terminal-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

#terminalOutput {
    margin: 0;
    flex: 1;
    color: #deebf7;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt {
    color: var(--mint);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.8;
}

#commandInput {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.8;
    letter-spacing: 0;
}

#commandInput::placeholder {
    color: rgba(150, 171, 192, 0.72);
}

.command-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.command-bar button {
    color: var(--muted);
}

.command-bar button:hover {
    border-color: rgba(89, 225, 255, 0.26);
    color: var(--text);
    background: rgba(89, 225, 255, 0.08);
}

.section {
    padding-bottom: 86px;
    scroll-margin-top: 96px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}

.section-head p {
    margin: 0;
}

.section-head p:first-child {
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 10px 0 0;
    max-width: 16ch;
    font-size: 2.8rem;
    line-height: 1.06;
    letter-spacing: 0;
}

.section-lead {
    max-width: 34rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.84;
}

.forge-section {
    position: relative;
}

.forge-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    gap: 18px;
    align-items: stretch;
}

.forge-editor,
.forge-runtime {
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

.forge-editor {
    background:
        linear-gradient(135deg, rgba(89, 225, 255, 0.08), transparent 32%),
        linear-gradient(315deg, rgba(255, 201, 107, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(12, 18, 28, 0.96), rgba(6, 10, 16, 0.96));
}

.forge-editor::before,
.forge-runtime::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.18;
    pointer-events: none;
}

.forge-editor::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(89, 225, 255, 0.72), rgba(255, 201, 107, 0.42), transparent);
    filter: drop-shadow(0 0 14px rgba(89, 225, 255, 0.5));
}

.forge-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.forge-tabstrip,
.forge-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forge-tab,
.forge-phase,
.forge-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    white-space: nowrap;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
}

.forge-tab {
    max-width: min(48vw, 360px);
    overflow: hidden;
    color: var(--text);
    font-weight: 700;
    text-overflow: ellipsis;
}

.forge-tab::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    content: "";
    background: var(--mint);
    box-shadow: 0 0 16px rgba(126, 240, 178, 0.42);
}

.forge-phase {
    padding: 0 9px;
    border: 1px solid rgba(89, 225, 255, 0.18);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(89, 225, 255, 0.06);
}

.forge-state {
    color: var(--amber);
    text-transform: uppercase;
}

.forge-replay {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.forge-replay:hover {
    transform: translateY(-1px);
    border-color: rgba(89, 225, 255, 0.36);
    background: rgba(89, 225, 255, 0.08);
}

.forge-stage {
    position: relative;
    min-height: 500px;
    padding: 22px 20px 24px 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 14, 0.24), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 18% 22%, rgba(89, 225, 255, 0.08), transparent 28%),
        radial-gradient(circle at 84% 78%, rgba(255, 201, 107, 0.06), transparent 26%);
}

.forge-rail {
    position: absolute;
    inset: 0 auto 0 0;
    width: 62px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(89, 225, 255, 0.05), rgba(255, 255, 255, 0.015), rgba(255, 201, 107, 0.04));
}

.forge-lines {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
}

.forge-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    min-height: 1.78em;
    padding-right: 4px;
    color: #dfeafa;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.78;
}

.forge-line.is-active {
    background: linear-gradient(90deg, rgba(89, 225, 255, 0.08), transparent 78%);
}

.forge-index {
    padding-right: 12px;
    color: rgba(150, 171, 192, 0.62);
    text-align: right;
    user-select: none;
}

.forge-line.is-active .forge-index {
    color: var(--amber);
}

.forge-code-cell {
    min-width: 0;
}

.forge-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.forge-caret {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.16em;
    background: var(--mint);
    box-shadow: 0 0 16px rgba(126, 240, 178, 0.45);
    animation: caretBlink 0.82s steps(2, start) infinite;
}

.code-keyword { color: var(--cyan); }
.code-string { color: var(--amber); }
.code-comment { color: rgba(150, 171, 192, 0.72); }
.code-entity { color: var(--mint); }
.code-number { color: var(--rose); }

.forge-runtime {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(12, 18, 28, 0.9), rgba(7, 12, 18, 0.96)),
        radial-gradient(circle at 50% 18%, rgba(89, 225, 255, 0.12), transparent 30%);
}

.forge-orbit,
.forge-summary,
.forge-metrics,
.forge-trace {
    position: relative;
    z-index: 1;
}

.forge-orbit {
    width: min(290px, 86%);
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1px solid rgba(89, 225, 255, 0.16);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(89, 225, 255, 0.15) 0 4%, rgba(89, 225, 255, 0.05) 18%, transparent 58%),
        conic-gradient(from 120deg, rgba(89, 225, 255, 0.08), rgba(255, 201, 107, 0.12), rgba(126, 240, 178, 0.12), rgba(89, 225, 255, 0.08));
    box-shadow: inset 0 0 36px rgba(89, 225, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.forge-orbit::before,
.forge-orbit::after,
.forge-orbit-ring,
.forge-orbit-needle,
.forge-orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
}

.forge-orbit::before {
    width: 72%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: translate(-50%, -50%);
}

.forge-orbit::after {
    width: 1px;
    height: 72%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translate(-50%, -50%);
}

.forge-orbit-ring {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.forge-orbit-ring.ring-a {
    width: 30%;
    height: 30%;
}

.forge-orbit-ring.ring-b {
    width: 52%;
    height: 52%;
    border-color: rgba(89, 225, 255, 0.18);
}

.forge-orbit-ring.ring-c {
    width: 74%;
    height: 74%;
}

.forge-orbit-needle {
    width: 42%;
    height: 2px;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(89, 225, 255, 0), rgba(89, 225, 255, 0.82));
    filter: drop-shadow(0 0 10px rgba(89, 225, 255, 0.34));
}

.forge-orbit-core {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow:
        0 0 0 10px rgba(126, 240, 178, 0.08),
        0 0 30px rgba(126, 240, 178, 0.38);
    transform: translate(-50%, -50%);
    animation: forgeCorePulse 2.4s ease-in-out infinite;
}

.forge-label {
    margin: 0;
    color: var(--amber);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.forge-summary h3 {
    margin: 10px 0 8px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.forge-summary p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.78;
}

.forge-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.forge-metric {
    min-height: 76px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.forge-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.forge-metric strong {
    display: block;
    margin-top: 9px;
    font-size: 0.95rem;
    font-weight: 800;
    word-break: break-word;
}

.forge-trace {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.forge-trace-row {
    position: relative;
    min-height: 34px;
    padding: 8px 10px 8px 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
}

.forge-trace-row::before {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    content: "";
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(89, 225, 255, 0.44);
    transform: translateY(-50%);
}

@keyframes caretBlink {
    50% { opacity: 0; }
}

@keyframes forgeCorePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.92); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.signal-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 18px;
}

.radar-shell {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(11, 17, 26, 0.92), rgba(8, 12, 18, 0.94));
}

.radar-graph {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(89, 225, 255, 0.08) 0, rgba(89, 225, 255, 0.05) 22%, transparent 54%),
        radial-gradient(circle at center, transparent 0 28%, rgba(255, 255, 255, 0.04) 29%, transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%, rgba(255, 255, 255, 0.02) 80%, transparent);
    overflow: hidden;
}

.radar-graph::before,
.radar-graph::after {
    position: absolute;
    inset: 10% 12%;
    content: "";
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.radar-graph::after {
    inset: 24% 26%;
    border-color: rgba(89, 225, 255, 0.12);
}

.radar-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: translate(-50%, -50%);
}

.radar-ring.ring-1 {
    width: 24%;
    height: 24%;
}

.radar-ring.ring-2 {
    width: 42%;
    height: 42%;
    border-color: rgba(89, 225, 255, 0.12);
}

.radar-ring.ring-3 {
    width: 62%;
    height: 62%;
}

.radar-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    margin-top: -11px;
    border-radius: 50%;
    background: rgba(89, 225, 255, 0.92);
    box-shadow:
        0 0 0 10px rgba(89, 225, 255, 0.08),
        0 0 24px rgba(89, 225, 255, 0.34);
}

.radar-sweep {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44%;
    height: 2px;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(89, 225, 255, 0), rgba(89, 225, 255, 0.16), rgba(89, 225, 255, 0.58));
    filter: drop-shadow(0 0 12px rgba(89, 225, 255, 0.2));
}

.radar-node {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--tone, var(--cyan));
    box-shadow: 0 0 14px rgba(89, 225, 255, 0.35);
}

.radar-node span {
    position: absolute;
    top: 18px;
    left: 50%;
    min-width: 76px;
    transform: translateX(-50%);
    color: var(--text);
    font-size: 0.72rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.radar-node.active {
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    box-shadow: 0 0 18px rgba(89, 225, 255, 0.52);
}

.radar-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(5, 8, 13, 0.74);
    backdrop-filter: blur(16px);
}

.radar-label {
    margin: 0;
    color: var(--amber);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.radar-caption h3 {
    margin: 10px 0 8px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.radar-caption p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.module-list {
    display: grid;
    gap: 12px;
}

.module-card {
    padding: 18px;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    background: rgba(12, 18, 26, 0.9);
}

.module-card.active {
    border-color: rgba(89, 225, 255, 0.42);
    background: rgba(12, 22, 32, 0.96);
}

.module-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 0;
}

.module-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
    font-size: 0.95rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chip-row span {
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.74rem;
}

.contact-kernel {
    margin: 0;
    min-height: 260px;
    padding: 20px;
    background: var(--panel-strong);
    color: #dfeafa;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.94rem;
    line-height: 1.9;
    white-space: pre-wrap;
}

.protocol-list {
    display: grid;
    gap: 12px;
}

.protocol {
    padding: 18px;
    background: rgba(12, 18, 26, 0.76);
}

.protocol h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 0;
}

.protocol p {
    margin: 0;
    color: var(--muted);
    line-height: 1.76;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 22px 20px 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    flex-wrap: wrap;
}

.footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.footer img {
    width: 18px;
    height: 20px;
    object-fit: contain;
}

@media (max-width: 1180px) {
    .hero,
    .forge-grid,
    .signal-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .terminal-panel {
        min-height: 600px;
    }

    .forge-editor,
    .forge-runtime {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 128px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        gap: 14px;
    }

    .hero-copy h1 {
        font-size: 4.9rem;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 28px, 680px);
    }

    .hero-copy h1 {
        font-size: 3.6rem;
    }

    .hero-copy h1 span {
        font-size: 0.38em;
    }

    .hero-subtitle,
    .section-lead {
        font-size: 0.98rem;
    }

    .metric-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
    }

    .terminal-panel {
        min-height: 520px;
    }

    .forge-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .forge-tab {
        max-width: 100%;
    }

    .forge-stage {
        min-height: 430px;
    }

    .forge-line {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
        font-size: 0.8rem;
    }

    .forge-rail {
        width: 52px;
    }

    .forge-metrics {
        grid-template-columns: 1fr;
    }

    .forge-orbit {
        width: min(220px, 82%);
    }

    .section-head h2 {
        font-size: 2rem;
    }
}

@media (max-width: 420px) {
    .brand-text small,
    .terminal-clock {
        display: none;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-button,
    .ghost-link {
        width: 100%;
    }

    .forge-tabstrip {
        align-items: flex-start;
        flex-direction: column;
    }

    .forge-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .forge-caret,
    .forge-orbit-core {
        animation: none;
    }
}
