:root {
    --bg: #020611;
    --panel: #081122;
    --panel-2: #0d1830;
    --text: #edf6ff;
    --muted: #8ea4bd;
    --line: #22334b;
    --green: #00f5c8;
    --blue: #38bdf8;
    --violet: #7c3cff;
    --yellow: #f59e0b;
    --red: #ef4444;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 72% 12%, rgba(124,60,255,.28), transparent 28rem),
        radial-gradient(circle at 20% 0, rgba(56,189,248,.18), transparent 24rem),
        var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, .button {
    border: 1px solid var(--line);
    background: #14243a;
    color: var(--text);
    border-radius: 8px;
    min-height: 38px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
textarea {
    width: 100%;
    min-height: 160px;
    background: #0b1728;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    padding: 12px;
}
.primary { background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; border: 0; box-shadow: 0 0 24px rgba(56,189,248,.22); }
.warning { border-color: var(--yellow); color: #fee6a9; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    padding: 22px;
    background: rgba(6, 14, 27, .9);
    border-right: 1px solid var(--line);
}
.brand { display: grid; gap: 4px; font-weight: 900; margin-bottom: 26px; letter-spacing: 4px; }
.brand-word { font-size: 20px; }
.brand-sub { color: var(--muted); font-size: 10px; letter-spacing: 0; text-transform: uppercase; }
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green);
    color: #04111d;
    display: grid;
    place-items: center;
}
nav { display: grid; gap: 5px; }
nav a { color: var(--muted); padding: 10px 12px; border-radius: 8px; }
nav a.active, nav a:hover { color: var(--text); background: #12243b; }
.shell { margin-left: 248px; padding: 26px; }
.public-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.website-shell { min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.topbar h1, h1, h2 { margin: 0; letter-spacing: 0; }
.topbar h1 { font-size: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.lead { color: #c7d7e8; font-size: 18px; max-width: 760px; line-height: 1.55; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { color: var(--muted); border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; }
.hero { width: min(1120px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1; max-width: 820px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-panel, .auth-card, .panel, .card {
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.hero-panel { min-height: 480px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.metric { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.metric span, .card span, small { color: var(--muted); }
.metric strong, .card strong { display: block; font-size: 30px; margin-top: 8px; }
.signal-map {
    grid-column: 1 / -1;
    min-height: 270px;
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(56,189,248,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,.08) 1px, transparent 1px),
        #0b1728;
    background-size: 32px 32px;
}
.signal-map span, .map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(34,197,94,.12);
}
.signal-map span:nth-child(1) { left: 22%; top: 30%; }
.signal-map span:nth-child(2) { left: 54%; top: 42%; background: var(--blue); }
.signal-map span:nth-child(3) { left: 68%; top: 66%; }
.signal-map span:nth-child(4) { left: 36%; top: 72%; background: var(--yellow); }
.auth-card { width: min(440px, 100%); padding: 28px; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select { width: 100%; background: #0b1728; border: 1px solid var(--line); color: var(--text); min-height: 42px; border-radius: 8px; padding: 0 12px; }
.alert { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.35); padding: 12px; border-radius: 8px; margin: 14px 0; }
.grid { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.two-col, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.panel, .card { padding: 18px; }
.panel h2, .card h2 { font-size: 17px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.pill { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; padding: 0 9px; background: #1b2b43; color: #cfe0f2; font-size: 12px; font-weight: 800; }
.active, .completed { background: rgba(34,197,94,.16); color: #9ef0b9; }
.suspended, .failed { background: rgba(239,68,68,.16); color: #fecaca; }
.ready, .queued, .pending_activation { background: rgba(56,189,248,.16); color: #bae6fd; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.timeline { border-left: 2px solid var(--line); padding: 0 0 14px 14px; margin-left: 4px; }
.timeline span { display: block; color: var(--muted); font-size: 12px; margin: 3px 0; }
.timeline p { margin: 0; color: #c9d8e7; }
.bar { height: 10px; border-radius: 999px; background: #0b1728; overflow: hidden; margin: 14px 0; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); }
.muted { color: var(--muted); }
.command-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.command-strip article { border: 1px solid rgba(56,189,248,.22); border-radius: 8px; padding: 16px; background: linear-gradient(135deg, rgba(124,60,255,.14), rgba(56,189,248,.06)); }
.command-strip span { display: block; color: var(--blue); text-transform: uppercase; font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.map-grid { position: relative; min-height: 350px; background: #0b1728; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.map-dot span { position: absolute; left: 15px; top: -5px; color: var(--text); font-weight: 800; font-size: 12px; }
.tracking-map { position: relative; overflow: hidden; min-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #020815; touch-action: none; cursor: grab; }
.tracking-map:active { cursor: grabbing; }
.map-viewport {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    transition: transform .18s ease;
    background:
        radial-gradient(ellipse at 24% 42%, rgba(56,189,248,.28) 0 10%, transparent 10.5%),
        radial-gradient(ellipse at 52% 34%, rgba(124,60,255,.28) 0 16%, transparent 16.5%),
        radial-gradient(ellipse at 69% 52%, rgba(0,245,200,.18) 0 20%, transparent 20.5%),
        linear-gradient(rgba(56,189,248,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,.08) 1px, transparent 1px);
    background-size: auto, auto, auto, 48px 48px, 48px 48px;
}
.world-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(56,189,248,.05); stroke: rgba(56,189,248,.38); stroke-width: 2; }
.device-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 8px rgba(56,189,248,.16), 0 0 26px rgba(56,189,248,.9);
}
.map-controls { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; }
.subnet-grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; }
.subnet-grid span { aspect-ratio: 1; border-radius: 4px; background: #0b1728; border: 1px solid var(--line); }
.subnet-grid span.used { background: linear-gradient(135deg, var(--violet), var(--blue)); box-shadow: 0 0 16px rgba(56,189,248,.28); }
.status-orbit { min-height: 220px; position: relative; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(circle, rgba(56,189,248,.14), transparent 45%); }
.status-orbit span { position: absolute; inset: 24px; border: 1px solid rgba(56,189,248,.34); border-radius: 50%; }
.status-orbit span:nth-child(2) { inset: 52px; border-color: rgba(124,60,255,.42); }
.status-orbit span:nth-child(3) { inset: 92px; background: var(--green); box-shadow: 0 0 30px rgba(0,245,200,.6); }
.site-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 48px; background: rgba(2,6,17,.78); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(56,189,248,.12); }
.site-logo { display: flex; align-items: center; gap: 12px; letter-spacing: 7px; font-weight: 900; }
.logo-mark { width: 28px; height: 18px; border-top: 2px solid #fff; border-bottom: 2px solid var(--blue); transform: skewX(-22deg); box-shadow: 0 0 18px rgba(56,189,248,.45); }
.site-nav nav { display: flex; flex-direction: row; gap: 28px; }
.site-actions { display: flex; align-items: center; gap: 18px; }
.site-hero { min-height: 640px; display: grid; grid-template-columns: minmax(320px, 520px) 1fr; gap: 36px; align-items: center; padding: 56px 48px 36px; border-bottom: 1px solid rgba(56,189,248,.16); overflow: hidden; }
.site-hero h1 { font-size: clamp(48px, 7vw, 92px); line-height: .95; max-width: 780px; text-transform: uppercase; }
.globe-stage { position: relative; min-height: 560px; }
.globe-core { position: absolute; inset: 20px 40px 20px 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(56,189,248,.9), rgba(124,60,255,.32) 34%, rgba(2,6,17,.2) 58%, transparent 60%), linear-gradient(rgba(56,189,248,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.16) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; box-shadow: inset -40px -28px 90px rgba(0,0,0,.7), 0 0 90px rgba(56,189,248,.35); }
.globe-core span { position: absolute; border: 1px solid rgba(124,60,255,.58); border-radius: 50%; inset: 14%; transform: rotate(-18deg); }
.globe-core span:nth-child(2) { inset: 22%; transform: rotate(28deg); border-color: rgba(56,189,248,.5); }
.globe-core span:nth-child(3) { inset: 32%; transform: rotate(68deg); }
.globe-core span:nth-child(4) { width: 10px; height: 10px; inset: auto; left: 58%; top: 34%; background: var(--blue); box-shadow: 0 0 30px var(--blue); border: 0; }
.live-status { position: absolute; right: 0; top: 120px; width: 210px; padding: 18px; border: 1px solid rgba(124,60,255,.45); border-radius: 8px; background: rgba(8,17,34,.86); box-shadow: 0 0 50px rgba(124,60,255,.22); display: grid; gap: 7px; }
.live-status small { text-transform: uppercase; color: #d7e4ff; font-weight: 800; }
.live-status strong { color: #fff; font-size: 20px; }
.site-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(56,189,248,.16); border-top: 1px solid rgba(56,189,248,.1); }
.site-metrics article { padding: 26px 48px; border-right: 1px solid rgba(56,189,248,.16); }
.site-metrics span { display: block; color: var(--muted); }
.site-metrics strong { display: block; font-size: 34px; margin-top: 8px; }
.site-section, .site-command { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0; }
.public-article { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.public-article h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; }
.article-body { margin-top: 28px; color: #d8e6f6; line-height: 1.75; font-size: 18px; }
.site-section h2, .site-command h2 { font-size: clamp(28px, 4vw, 44px); }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.site-cards article, .site-command, .ai-terminal, .code-window { border: 1px solid rgba(56,189,248,.18); border-radius: 8px; background: rgba(8,17,34,.78); box-shadow: 0 0 50px rgba(0,0,0,.18); }
.site-cards article { padding: 22px; }
.site-command { display: grid; grid-template-columns: .7fr 1fr; gap: 28px; padding: 28px; }
.ai-terminal { padding: 20px; }
.code-window { padding: 20px; overflow-x: auto; color: #b7ffc9; }
@media (max-width: 920px) {
    .sidebar { position: static; width: auto; }
    .shell { margin: 0; padding: 16px; }
    .hero, .two-col, .split, .metrics, .command-strip, .form-grid, .site-hero, .site-metrics, .site-cards, .site-command { grid-template-columns: 1fr; }
    .site-nav { padding: 16px; align-items: flex-start; flex-direction: column; }
    .site-nav nav, .site-actions { flex-wrap: wrap; }
    .site-hero { padding: 32px 16px; }
    .site-metrics article { padding: 18px; }
    .topbar { align-items: flex-start; flex-direction: column; }
    table { display: block; overflow-x: auto; }
}
