:root {
  --navy: #200a0c;
  --navy-2: #4d1114;
  --blue: #d80d18;
  --cyan: #ef2833;
  --ink: #200a0c;
  --muted: #74676a;
  --line: #eadfe0;
  --paper: #ffffff;
  --bg: #f8f5f4;
  --gold: #8c1814;
  --danger: #b50812;
  --shadow: 0 18px 50px rgba(58, 8, 12, 0.13);
}

body,
button,
input,
select,
textarea {
  font-family: "Source Sans 3", sans-serif;
}

h1,
h2,
h3,
.login-copy h1,
.login-card h2,
.hero-row h1,
.project-card h3,
.topbar h2,
.report-toolbar h3,
.demo-head h2,
.kpi strong,
.stat strong,
.panel-head h3,
.modal-head h3 {
  font-family: "Montserrat", sans-serif;
}

.brand-mark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14);
}

.brand-logo {
  display: block;
  width: 178px;
  height: auto;
  object-fit: contain;
}

.brand-logo-login {
  width: min(280px, 42vw);
}

.login-visual {
  background:
    radial-gradient(circle at 72% 28%, rgba(216, 13, 24, 0.28), transparent 32%),
    linear-gradient(145deg, #170709 0%, #320b0f 52%, #6f0d14 100%);
}

.login-visual::after {
  border-color: rgba(239, 40, 51, 0.22);
  box-shadow:
    0 0 0 90px rgba(216, 13, 24, 0.045),
    0 0 0 180px rgba(255, 255, 255, 0.02);
}

.login-copy h1 {
  max-width: 760px;
  letter-spacing: -0.045em;
}

.login-copy p {
  color: #ead9da;
}

.eyebrow,
.login-kicker {
  color: #ef2833;
}

.login-visual .eyebrow {
  color: #ff7e86;
}

.login-kicker {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-panel {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(135deg, #f8eeee 0 1px, transparent 1px 18px);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #d80d18;
  box-shadow: 0 0 0 3px rgba(216, 13, 24, 0.11);
}

.btn-primary {
  background: #d80d18;
  box-shadow: 0 8px 22px rgba(216, 13, 24, 0.2);
}

.btn-primary:hover {
  background: #a90a13;
}

.btn-secondary {
  background: #f2e7e8;
  color: #4d1114;
}

.demo-accounts {
  border-left: 3px solid #d80d18;
  background: #faf5f5;
}

.sidebar {
  background:
    radial-gradient(circle at 20% 90%, rgba(216, 13, 24, 0.22), transparent 38%),
    #200a0c;
}

.brand-mark-sidebar {
  display: flex;
  width: 100%;
  margin-bottom: 28px;
  padding: 12px 14px;
  justify-content: center;
  border-radius: 10px;
}

.brand-mark-sidebar .brand-logo {
  width: 174px;
}

.nav button {
  color: #d8c5c7;
}

.nav button:hover,
.nav button.active {
  color: #ffffff;
  background: rgba(216, 13, 24, 0.3);
  box-shadow: inset 3px 0 #ef2833;
}

.account span {
  color: #bfa9ab;
}

.topbar {
  height: 82px;
  border-bottom: 2px solid #f1e7e8;
}

.topbar-label {
  display: block;
  margin-bottom: 4px;
  color: #9a7f82;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 0;
}

.badge {
  color: #7e161c;
  background: #f9e4e6;
}

.project-card,
.panel,
.report-shell,
.stat,
.kpi,
.chart-card {
  border-color: #eadfe0;
}

.project-card:hover {
  border-color: rgba(216, 13, 24, 0.38);
}

.project-band,
.project-card.gold .project-band {
  background: linear-gradient(90deg, #8c1814, #d80d18, #ef2833);
}

.project-card h3 {
  letter-spacing: -0.02em;
}

.bar {
  background: linear-gradient(#ef2833, #8c1814);
}

.donut {
  background: conic-gradient(#d80d18 0 68%, #eee1e2 68%);
}

.status {
  color: #741218;
  background: #fae7e8;
}

.icon-btn:hover {
  color: #b50812;
  border-color: #d80d18;
}

@media (max-width: 900px) {
  .brand-mark-sidebar {
    width: fit-content;
    margin-bottom: 14px;
  }

  .brand-mark-sidebar .brand-logo {
    width: 150px;
  }
}
