:root {
  color-scheme: dark;
  --bg: #090b10;
  --sidebar: #0c0f15;
  --surface: #10141c;
  --surface-2: #151a23;
  --border: #222936;
  --text: #edf1f7;
  --muted: #8c97a8;
  --soft: #bac3cf;
  --accent: #d8e5ff;
  --success: #93d5a7;
  --warning: #e0bd7b;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 24px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #394254;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 750;
  background: #141924;
}
.brand strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}
.nav-item:hover { color: var(--text); background: #121722; }
.nav-item.active { color: var(--text); background: #171c27; }
.nav-dot { width: 6px; height: 6px; border-radius: 999px; background: #404a5d; }
.nav-item.active .nav-dot { background: var(--accent); }
.nav-pill {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 9px;
  color: var(--muted);
}

.sidebar-status {
  margin-top: auto;
  padding: 14px 10px 2px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}
.sidebar-status p { margin: 0 0 9px; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.sidebar-status div { display: flex; align-items: center; gap: 8px; margin: 6px 0; }

.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; margin-right: 8px; background: #647086; }
.status-foundation { background: var(--success); }
.status-pending { background: var(--warning); }

.main { min-width: 0; }
.topbar {
  height: 58px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  background: rgba(9, 11, 16, .92);
  backdrop-filter: blur(14px);
  z-index: 10;
}
.topbar-label { font-size: 12px; color: var(--muted); }
.topbar-actions { margin-left: auto; }
.environment {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 19px;
  margin-right: 12px;
}

.content { max-width: 1160px; margin: 0 auto; padding: 66px 38px 80px; }

.hero { max-width: 780px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 650;
}
h1 { margin: 0; font-size: clamp(38px, 6vw, 66px); letter-spacing: -.05em; line-height: .98; font-weight: 690; }
h2 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.025em; }
h3 { margin: 5px 0 5px; font-size: 18px; letter-spacing: -.02em; }
.hero-copy { max-width: 650px; color: var(--soft); font-size: 16px; margin: 22px 0 26px; }

.prompt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 17px 20px;
  border: 1px solid #2b3443;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #131823 0%, #10141c 100%);
}
.prompt-card:hover { border-color: #3a465a; }
.prompt-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.prompt-card strong { font-size: 15px; font-weight: 580; }
.prompt-arrow { color: var(--muted); font-size: 22px; }

.section { margin-top: 58px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading a, .inline-link { color: var(--muted); font-size: 11px; }
.section-heading a:hover, .inline-link:hover { color: var(--text); }

.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.workspace-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, border 120ms ease;
}
.workspace-card:hover { transform: translateY(-1px); border-color: #364052; }
.workspace-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #303a4b;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--soft);
  font-size: 10px;
  margin-bottom: 30px;
}
.workspace-card p { margin: 0; color: var(--muted); max-width: 470px; }
.card-tag { font-size: 9px; text-transform: uppercase; letter-spacing: .09em; color: var(--success); }
.card-tag.muted { color: var(--warning); }
.card-arrow { margin-top: auto; color: var(--muted); font-size: 11px; }

.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.panel {
  min-height: 240px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state {
  border-top: 1px solid var(--border);
  padding-top: 21px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.empty-state span, .panel-note { color: var(--muted); font-size: 12px; }
.status-list { border-top: 1px solid var(--border); }
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--border);
  color: var(--soft);
  font-size: 11px;
}
.status-row > div { display: flex; align-items: center; }
.status-row > span { color: var(--muted); }
.panel-note { margin: 17px 0 0; }

.roadmap-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.roadmap-step {
  min-height: 92px;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.roadmap-step:last-child { border-right: 0; }
.roadmap-step span { display: block; font-size: 9px; margin-bottom: 20px; }
.roadmap-step strong { font-size: 11px; font-weight: 550; }
.roadmap-step.current { color: var(--text); background: var(--surface-2); }

.placeholder { max-width: 760px; padding-top: 40px; }
.placeholder h1 { font-size: clamp(40px, 6vw, 62px); }
.placeholder > p:not(.eyebrow) { color: var(--soft); font-size: 16px; max-width: 650px; }
.placeholder-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge { border: 1px solid var(--border); border-radius: 999px; color: var(--muted); padding: 5px 9px; font-size: 10px; }
.placeholder-box {
  margin-top: 38px;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.placeholder-box span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.placeholder-box strong { display: block; font-size: 16px; }
.placeholder-box p { color: var(--muted); margin: 7px 0 0; }

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    width: 232px;
    transform: translateX(-100%);
    transition: transform 150ms ease;
    box-shadow: 24px 0 50px rgba(0,0,0,.35);
  }
  .sidebar.is-open { transform: translateX(0); }
  .menu-button { display: inline-block; }
  .topbar { padding: 0 18px; }
  .content { padding: 44px 18px 60px; }
  .workspace-grid, .split-grid { grid-template-columns: 1fr; }
  .roadmap-line { grid-template-columns: 1fr; }
  .roadmap-step { min-height: 64px; border-right: 0; border-bottom: 1px solid var(--border); }
  .roadmap-step:last-child { border-bottom: 0; }
  .roadmap-step span { margin-bottom: 8px; }
}
