:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eff7ff;
  background: #050b16;
  font-synthesis: none;
  --blue: #4ca7ff;
  --cyan: #59e4ff;
  --ink: #071225;
  --panel: rgba(13, 29, 53, 0.72);
  --line: rgba(156, 206, 255, 0.15);
  --muted: #99abc3;
  --good: #67e3a6;
  --warn: #ffc968;
  --bad: #ff7f8e;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% -10%, #113c6b 0, transparent 38%), #050b16; }
button, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.aurora { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(18, 85, 151, .11), transparent 40%, rgba(0, 209, 255, .06)); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 4vw, 64px); backdrop-filter: blur(18px); background: rgba(5, 11, 22, .78); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(89, 228, 255, .55); border-radius: 11px; color: var(--cyan); background: linear-gradient(145deg, rgba(76,167,255,.2), transparent); box-shadow: inset 0 0 18px rgba(89,228,255,.08); }
.brand strong, .brand small { display: block; }
.brand small { font-size: 8px; color: var(--muted); margin-top: 2px; }
.topbar-actions { display: flex; gap: 14px; align-items: center; }
.environment { color: var(--muted); font-size: 13px; }
.shell { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: clamp(36px, 7vw, 86px) 0 72px; position: relative; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 26px 80px rgba(0,0,0,.26); backdrop-filter: blur(18px); }
.hero { min-height: 580px; display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 50px; padding: clamp(34px, 7vw, 88px); overflow: hidden; }
.eyebrow { color: var(--cyan); letter-spacing: .16em; font-size: 11px; font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 7vw, 78px); letter-spacing: -.055em; line-height: .98; margin: 0; max-width: 850px; }
h2 { font-size: 24px; letter-spacing: -.025em; margin: 0; }
.lede { max-width: 700px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; margin: 24px 0 0; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.button { border: 1px solid var(--line); border-radius: 12px; color: #eef8ff; padding: 12px 18px; cursor: pointer; background: rgba(255,255,255,.04); }
.button.primary { border-color: transparent; background: linear-gradient(135deg, #197bd8, #35bdf0); color: white; font-weight: 700; box-shadow: 0 12px 35px rgba(28, 145, 223, .28); }
.button.ghost:hover { background: rgba(255,255,255,.08); }
.hint, .muted { color: var(--muted); font-size: 13px; }
.signal-orbit { width: min(320px, 60vw); aspect-ratio: 1; margin: auto; border: 1px solid rgba(89,228,255,.17); border-radius: 50%; position: relative; display: grid; place-items: center; box-shadow: inset 0 0 80px rgba(42,145,255,.09); }
.signal-orbit::before, .signal-orbit::after { content:""; position:absolute; inset: 14%; border-radius:50%; border: 1px solid rgba(89,228,255,.25); transform: rotate(34deg); }
.signal-orbit::after { inset: 30%; transform: rotate(-22deg); }
.signal-orbit div { font-weight: 800; letter-spacing: .28em; color: #bcecff; }
.signal-orbit span { position:absolute; width:8px; height:8px; border-radius:50%; background: var(--cyan); box-shadow:0 0 18px var(--cyan); }
.signal-orbit span:nth-child(1){top:11%;left:26%}.signal-orbit span:nth-child(2){right:7%;top:55%}.signal-orbit span:nth-child(3){bottom:7%;left:36%}
.welcome-row { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:38px; }
.welcome-row h1 { font-size: clamp(38px, 6vw, 66px); }
.overall-state { color:var(--good); border:1px solid rgba(103,227,166,.25); background:rgba(103,227,166,.08); border-radius:999px; padding:10px 14px; white-space:nowrap; }
.section-tabs { display:flex; gap:8px; border-bottom:1px solid var(--line); margin-bottom:32px; }
.section-tabs button { color:var(--muted); background:none; border:0; border-bottom:2px solid transparent; padding:13px 16px; cursor:pointer; }
.section-tabs button.active { color:white; border-color:var(--cyan); }
.section-heading, .panel-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.app-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.app-card { padding:24px; min-height:190px; display:flex; flex-direction:column; justify-content:space-between; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,rgba(18,47,82,.8),rgba(8,21,41,.82)); transition:.2s ease; }
.app-card:hover { transform:translateY(-3px); border-color:rgba(89,228,255,.42); }
.app-card h3 { margin:10px 0 6px; font-size:22px; }
.app-card p { color:var(--muted); margin:0; line-height:1.5; }
.app-card footer { display:flex; justify-content:space-between; align-items:center; margin-top:24px; }
.status-dot { display:inline-flex; gap:7px; align-items:center; font-size:12px; color:var(--muted); }
.status-dot::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--good); box-shadow:0 0 10px rgba(103,227,166,.55); }
.status-dot.planned::before { background:#6f829d; box-shadow:none; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.metric { padding:21px; border:1px solid var(--line); border-radius:17px; background:rgba(13,29,53,.66); }
.metric strong { display:block; font-size:28px; margin:8px 0; }
.metric span { color:var(--muted); font-size:12px; }
.dashboard-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.dashboard-grid > .panel { padding:24px; min-height:250px; }
.span-2 { grid-column:span 2; }
.health-table { margin-top:18px; }
.health-row { display:grid; grid-template-columns:1.4fr .75fr .75fr .6fr; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--line); font-size:14px; }
.health-row small { color:var(--muted); }
.pill { display:inline-block; width:max-content; border-radius:999px; padding:5px 9px; color:var(--good); background:rgba(103,227,166,.08); font-size:11px; }
.pill.warn { color:var(--warn); background:rgba(255,201,104,.08); }
.control-list { list-style:none; padding:0; margin:22px 0 0; }
.control-list li { border-top:1px solid var(--line); padding:15px 0; }
.control-list strong, .control-list span { display:block; }
.control-list span { color:var(--muted); line-height:1.45; margin-top:5px; font-size:13px; }
.backup-item, .attention-item, .release-item { border-top:1px solid var(--line); padding:15px 0; }
.backup-item strong, .attention-item strong, .release-item strong { display:block; }
.backup-item span, .attention-item span, .release-item span { display:block; color:var(--muted); margin-top:5px; font-size:13px; line-height:1.45; }
.intelligence-layout { display:grid; grid-template-columns:1.8fr .8fr; gap:18px; }
.intelligence-layout > .panel { padding:26px; }
.conversation { min-height:620px; display:flex; flex-direction:column; }
.conversation-log { flex:1; overflow:auto; margin:24px 0; padding:16px 0; border-top:1px solid var(--line); }
.message { width:min(84%,720px); border-radius:15px; padding:13px 15px; margin:12px 0; line-height:1.55; background:rgba(255,255,255,.055); }
.message.user { margin-left:auto; background:rgba(39,133,216,.2); }
.message.system { color:var(--muted); }
.composer { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; }
.composer textarea { resize:vertical; color:white; border:1px solid var(--line); border-radius:13px; background:rgba(2,8,17,.52); padding:13px; outline:none; }
.composer textarea:focus { border-color:var(--blue); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

@media (max-width: 900px) {
  .hero { grid-template-columns:1fr; min-height:auto; }
  .signal-orbit { width:220px; }
  .app-grid, .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns:1fr; }
  .span-2 { grid-column:auto; }
  .intelligence-layout { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .shell { width:min(100% - 24px,1280px); padding-top:28px; }
  .topbar { padding:14px 16px; }
  .environment { display:none; }
  .hero { padding:30px 24px; }
  .signal-orbit { display:none; }
  .welcome-row { align-items:start; flex-direction:column; }
  .app-grid, .metric-grid { grid-template-columns:1fr; }
  .health-row { grid-template-columns:1.3fr .8fr; }
  .health-row > :nth-child(3), .health-row > :nth-child(4) { display:none; }
  .composer { grid-template-columns:1fr; }
}
