/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: calc(var(--nav-h) + var(--progress-h)); overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(244,104,0,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244,104,0,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 75% at 50% 35%, black 20%, transparent 100%);
}
.bg-gradient-radial {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 55% at 55% 15%, rgba(244,104,0,0.05) 0%, transparent 55%);
}

/* Topology diagram — lines stay atmospheric; node labels stay readable */
.topology {
    position: absolute; inset: 0;
    opacity: 1;
}
.topology svg { width: 100%; height: 100%; }
.topo-node {
    fill: rgba(28, 38, 50, 0.78);
    stroke: rgba(180, 198, 216, 0.28);
    stroke-width: 1.1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}
.topo-node-accent {
    fill: rgba(244, 104, 0, 0.1);
    stroke: rgba(244, 160, 96, 0.45);
}
.topo-label {
    fill: #a8b8ca;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .03em;
}
.topo-line {
    fill: none;
    stroke: rgba(244,140,70,0.2);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: .45;
    animation: topo-dash 20s linear infinite;
}
@keyframes topo-dash {
    to { stroke-dashoffset: -100; }
}

/* Sparkline metric cards */
.float-card {
    position: absolute;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: .6rem .85rem;
    display: flex; flex-direction: column; gap: .35rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    min-width: 130px;
}
.fc1 { right: 5%; top: 20%; }
.fc2 { right: 2%; bottom: 30%; }
.fc3 { right: 12%; bottom: 16%; }
.fc-header {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.fc-label {
    font-family: var(--font-mono);
    font-size: .6rem; font-weight: 500;
    color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase;
}
.fc-status {
    font-family: var(--font-mono);
    font-size: .55rem; font-weight: 600;
    padding: 1px 5px; border-radius: 3px;
}
.fc-status.ok { color: var(--green); background: var(--green-dim); }
.fc-value {
    font-family: var(--font-mono);
    font-size: .95rem; font-weight: 600; color: var(--green);
}
.fc-value.amber { color: var(--amber); }
.sparkline {
    width: 100%; height: 28px;
}
.sparkline polyline {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sparkline .line-green { stroke: var(--green); }
.sparkline .line-orange { stroke: var(--accent); }
.sparkline .area { opacity: .15; }

.hero-inner {
    position: relative; z-index: 1;
    max-width: 900px; width: 100%;
    padding: 3.5rem 2rem;
}

/* Status strip */
.status-strip {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
    font-family: var(--font-mono);
    font-size: .68rem; color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    padding: .4rem .85rem;
    margin-bottom: 1.5rem;
}
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(115,191,105,.6);
    animation: badge-pulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}
.status-ok { color: var(--green); }
.status-sep { color: var(--text-dim); opacity: .5; }

@keyframes badge-pulse {
    0%,100% { box-shadow: 0 0 6px rgba(115,191,105,.6); }
    50%      { box-shadow: 0 0 12px rgba(115,191,105,.9); }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.name-accent { color: var(--accent); }

/* Terminal block */
.hero-terminal {
    background: #0d1117;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    max-width: 520px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.terminal-bar {
    display: flex; align-items: center; gap: .45rem;
    padding: .5rem .75rem;
    background: var(--surface-hi);
    border-bottom: 1px solid var(--border);
}
.terminal-dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
    flex: 1; text-align: center;
    font-family: var(--font-mono);
    font-size: .65rem; color: var(--text-dim);
    letter-spacing: .04em;
}
.terminal-body {
    padding: .85rem 1rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.7;
    min-height: 4.5em;
}
.terminal-line { color: var(--text-muted); }
.terminal-prompt { color: var(--terminal-fg); }
.terminal-cmd { color: var(--text); }
.terminal-out { color: var(--green); font-size: .72rem; }
.terminal-cursor {
    display: inline-block;
    width: 8px; height: 1em;
    background: var(--terminal-fg);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-philosophy {
    font-family: var(--font-mono);
    font-size: .78rem; color: var(--accent);
    letter-spacing: .01em;
    margin-bottom: 1.75rem;
    padding-left: .75rem;
    border-left: 2px solid var(--accent);
    max-width: 520px;
}

.hero-roles {
    display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .65rem;
    margin-bottom: 2.35rem;
}
.role-tag {
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border-card);
    border-radius: 4px;
    padding: 3px 8px;
    letter-spacing: .02em;
}
.role-sep { display: none; }

.hero-statement {
    font-size: clamp(.92rem, 1.5vw, 1.05rem);
    font-weight: 300; color: var(--text-muted);
    line-height: 1.8; max-width: 620px;
    margin-bottom: 3.5rem;
    display: flex; flex-direction: column; gap: 1.2rem;
}
.hero-hook {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500; color: var(--text);
    line-height: 1.45; letter-spacing: -.01em;
}
.hero-arc {
    font-size: clamp(.85rem, 1.4vw, .95rem);
    color: var(--text-muted); line-height: 1.7;
}
.about-hook {
    font-size: 1.02rem; font-weight: 400; color: var(--text);
    line-height: 1.65;
}

.hero-metrics {
    display: flex; align-items: stretch; flex-wrap: wrap;
    gap: 0; margin-bottom: 2.25rem;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: 8px; overflow: hidden;
}
.hm {
    flex: 1; min-width: 110px;
    padding: 1rem 1.25rem;
    display: flex; flex-direction: column; gap: .2rem;
    border-right: 1px solid var(--border);
    transition: background .2s;
}
.hm:last-child { border-right: none; }
.hm:hover { background: var(--surface-hi); }
.hm-num {
    font-family: var(--font-mono);
    font-size: 1.6rem; font-weight: 600;
    color: var(--text); letter-spacing: -.02em; line-height: 1;
}
.hm-num small {
    font-size: .7rem; font-weight: 500;
    color: var(--accent); margin-left: 1px;
}
.hm-label {
    font-family: var(--font-mono);
    font-size: .62rem; font-weight: 500;
    color: var(--text-dim); letter-spacing: .05em; text-transform: uppercase;
}

.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
