:root {
  --bg: #0b0c0d;
  --surface: #111314;
  --surface-muted: #171a1b;
  --line: #24292b;
  --line-strong: #363c3e;
  --text: #f3f4f1;
  --text-soft: #98a09a;
  --accent: #285148;
  --accent-strong: #32665b;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: var(--bg);
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  padding: 16px 14px;
  border-right: 1px solid var(--line);
  background: #0f1112;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f3f4f1;
  color: #0f1112;
  font-size: 0.86rem;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.hero h1,
.section-heading h2,
.panel h2,
.panel h3,
.module-card h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.brand-copy strong {
  font-size: 0.94rem;
}

.brand-copy span:last-child,
.nav-copy span:last-child {
  color: var(--text-soft);
  font-size: 0.79rem;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-soft);
  text-decoration: none;
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.nav-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-copy strong {
  font-size: 0.91rem;
}

.sidebar-note,
.hero,
.panel,
.module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  background: var(--surface-muted);
}

.sidebar-note h2 {
  font-size: 0.94rem;
  line-height: 1.4;
}

.sidebar-note h2 + p,
.hero h1 + p,
.section-heading h2 + p,
.panel h2 + p,
.panel h3 + p,
.module-card h3 + p {
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.55;
}

.main-content {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 20px 20px 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.1;
}

.hero-text {
  max-width: 54ch;
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
}

.ghost-button,
.accent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.ghost-button {
  color: var(--text);
  background: transparent;
}

.accent-button {
  color: #f3f4f1;
  border-color: var(--accent);
  background: var(--accent);
}

.ghost-button:hover {
  background: var(--surface-muted);
}

.accent-button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.module {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.section-heading p {
  max-width: 58ch;
  font-size: 0.92rem;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-grid-single {
  grid-template-columns: 1fr;
}

.panel,
.module-card {
  padding: 14px 15px;
}

.plan-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pillar-panel {
  min-height: 100%;
}

.pillar-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pillar-item {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text);
  line-height: 1.45;
}

.pillar-item-muted {
  color: var(--text-soft);
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-stack + .field-stack {
  margin-top: 12px;
}

.view-stack {
  margin-top: 12px;
}

.field-label {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0f10;
  color: var(--text);
  font: inherit;
}

.text-input:focus {
  outline: none;
  border-color: var(--line-strong);
}

.value-box {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0f10;
  color: var(--text);
}

.pillar-editor {
  display: grid;
  gap: 8px;
}

.pillar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.icon-button,
.add-row-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.icon-button {
  min-width: 52px;
  padding: 0 12px;
}

.add-row-button {
  width: 100%;
  margin-top: 10px;
  padding: 0 12px;
}

.icon-button:hover,
.add-row-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.module-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.module-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.empty-state {
  min-height: 136px;
}

.empty-state p:not(.eyebrow) {
  max-width: 46ch;
}

.empty-note,
.panel-label {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 1240px) {
  .module-grid,
  .page-grid,
  .pillar-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .plan-toolbar {
    flex-direction: column;
  }

  .panel-inline-head {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .main-content {
    padding: 16px 12px 24px;
  }

  .sidebar {
    padding: 12px;
  }

  .panel,
  .module-card,
  .hero,
  .sidebar-note {
    padding: 13px;
    border-radius: var(--radius-md);
  }

  .hero-actions {
    width: 100%;
  }

  .ghost-button,
  .accent-button {
    width: 100%;
  }
}
