:root {
  color-scheme: dark;
  --bg: #050b12;
  --panel: rgba(12, 22, 34, 0.88);
  --panel-strong: rgba(15, 31, 48, 0.96);
  --line: rgba(121, 180, 205, 0.24);
  --text: #eef7fb;
  --muted: #9cb1bf;
  --cyan: #38d5ee;
  --green: #47d68d;
  --gold: #f2b94e;
  --violet: #9386ff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 24% 22%, rgba(56, 213, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 72% 18%, rgba(242, 185, 78, 0.12), transparent 30rem),
    linear-gradient(145deg, #050b12 0%, #081422 52%, #04070c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(121, 180, 205, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 180, 205, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 380px;
  min-height: 100vh;
  padding-bottom: 86px;
}

.sidebar,
.guide-panel {
  border-color: var(--line);
  background: rgba(6, 13, 22, 0.8);
  backdrop-filter: blur(18px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(56, 213, 238, 0.44);
  border-radius: 12px;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(56, 213, 238, 0.18), rgba(147, 134, 255, 0.16));
  font-weight: 900;
}

.brand-row strong,
.status-card strong,
.side-note strong {
  display: block;
}

.brand-row span,
.status-card span,
.side-note span {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(71, 214, 141, 0.3);
  border-radius: 14px;
  background: rgba(71, 214, 141, 0.09);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(71, 214, 141, 0.8);
}

nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #b8c7d2;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  border-color: rgba(56, 213, 238, 0.36);
  background: rgba(56, 213, 238, 0.1);
}

.side-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(242, 185, 78, 0.26);
  border-radius: 14px;
  background: rgba(242, 185, 78, 0.08);
}

.workspace {
  min-width: 0;
  padding: 28px;
  overflow: auto;
  scrollbar-color: rgba(56, 213, 238, 0.55) rgba(8, 18, 30, 0.3);
}

.hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(121, 180, 205, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 72% 0%, rgba(242, 185, 78, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(17, 32, 52, 0.96), rgba(10, 19, 31, 0.88));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.94;
}

.hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #bbcad6;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.primary-button,
.ghost-button,
.demo-bar button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  cursor: pointer;
}

.primary-button {
  border: 0;
  color: #06101a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
}

.ghost-button,
.demo-bar button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(16, 28, 44, 0.86);
}

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.outcome-strip article,
.stage-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.outcome-strip article {
  padding: 18px;
}

.outcome-strip span,
.stage-header span,
.metric span {
  color: var(--muted);
  font-size: 0.78rem;
}

.outcome-strip strong {
  display: block;
  margin-top: 7px;
  font-size: 1rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 16px;
}

.stage-card {
  min-height: 238px;
  padding: 22px;
}

.stage-card.primary {
  min-height: 310px;
  background:
    radial-gradient(circle at 82% 16%, rgba(56, 213, 238, 0.14), transparent 17rem),
    var(--panel-strong);
}

.stage-card.wide {
  grid-column: 1 / -1;
}

.stage-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stage-header.compact {
  margin-bottom: 14px;
}

.stage-header h2 {
  margin-bottom: 0;
  font-size: 2.1rem;
}

.stage-header h3 {
  margin-bottom: 0;
}

.pill,
.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(56, 213, 238, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(56, 213, 238, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill.locked {
  border-color: rgba(242, 185, 78, 0.35);
  color: var(--gold);
  background: rgba(242, 185, 78, 0.1);
}

.pill.muted {
  border-color: rgba(156, 177, 191, 0.25);
  color: var(--muted);
  background: rgba(156, 177, 191, 0.08);
}

#stage-copy {
  max-width: 720px;
  color: #c7d5df;
  font-size: 1.05rem;
  line-height: 1.7;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric {
  padding: 16px;
  border: 1px solid rgba(121, 180, 205, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
}

.context-list,
.action-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.context-item,
.action-item,
.activity-item {
  padding: 13px;
  border: 1px solid rgba(121, 180, 205, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.context-item strong,
.action-item strong,
.activity-item strong {
  display: block;
  margin-bottom: 4px;
}

.context-item span,
.action-item span,
.activity-item span,
.guide-card li,
.guide-card p {
  color: #aebfcb;
  line-height: 1.55;
}

.guide-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid var(--line);
  overflow: auto;
}

.guide-card {
  padding: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.guide-card ol,
.guide-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.demo-bar {
  position: fixed;
  right: 24px;
  bottom: 18px;
  left: 294px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(180px, 320px) minmax(160px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(242, 185, 78, 0.35);
  border-radius: 18px;
  background: rgba(5, 11, 18, 0.94);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.demo-bar strong,
.demo-bar span {
  display: block;
}

.demo-bar span {
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(121, 180, 205, 0.18);
}

#progress-fill {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 180ms ease;
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .sidebar,
  .guide-panel {
    border: 0;
  }

  .demo-grid,
  .outcome-strip {
    grid-template-columns: 1fr;
  }

  .demo-bar {
    position: sticky;
    right: auto;
    bottom: 0;
    left: auto;
    grid-template-columns: 1fr;
    margin: 18px;
  }
}
