:root {
  --ink: #12201d;
  --ink-soft: #41514c;
  --paper: #f3f0e7;
  --paper-deep: #e9e3d5;
  --mint: #b9d9c7;
  --emerald: #0e4036;
  --lime: #d9f19f;
  --gold: #c69345;
  --line: rgba(18, 32, 29, 0.16);
  --light-line: rgba(243, 240, 231, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #d7d1c5;
  font-family: "Manrope", sans-serif;
}

button,
a {
  font: inherit;
}

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

.page-shell {
  width: min(1680px, 100%);
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

.topbar {
  min-height: 84px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "Newsreader", serif;
  font-size: 1rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.66rem;
}

.brand small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.58rem;
  font-weight: 700;
}

.status-pill {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-pill i {
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  display: inline-block;
  background: #2f8d67;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47, 141, 103, 0.12);
}

.hero {
  padding: clamp(4rem, 8vw, 8rem) 4vw 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(185, 217, 199, 0.42), transparent 28%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  font-weight: 800;
}

.hero-grid,
.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(2rem, 8vw, 9rem);
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(4.6rem, 9.5vw, 10rem);
}

h1 em,
h2 em {
  color: var(--gold);
  font-weight: 400;
}

.hero-copy {
  padding-top: 1rem;
  align-self: end;
}

.hero-copy > p,
.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-button {
  padding: 0.95rem 1.2rem;
  color: var(--paper);
  background: var(--emerald);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
}

.text-link {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  font-size: 0.68rem;
  font-weight: 700;
}

.signal-strip {
  margin-top: clamp(4rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.signal-strip span {
  min-height: 96px;
  padding: 1.4rem 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  border-right: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  font-weight: 700;
}

.signal-strip span:last-child {
  border-right: 0;
}

.signal-strip b {
  color: var(--gold);
  font-family: "DM Mono", monospace;
  font-weight: 400;
}

.workspace-section,
.delivery {
  padding: clamp(5rem, 9vw, 9rem) 4vw;
}

.section-heading {
  align-items: end;
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(3.4rem, 6.3vw, 7rem);
}

.role-tabs {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-tab {
  min-height: 78px;
  padding: 1rem 1.4rem;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  font-weight: 700;
  transition: 180ms ease;
}

.role-tab:last-child {
  border-right: 0;
}

.role-tab span {
  margin-right: 1rem;
  color: var(--gold);
  font-family: "DM Mono", monospace;
}

.role-tab.active,
.role-tab:hover {
  color: var(--paper);
  background: var(--emerald);
}

.app-frame {
  margin-top: 1.5rem;
  min-height: 710px;
  display: grid;
  grid-template-columns: 210px 1fr;
  color: #e9f0ec;
  background: #092c26;
  border: 1px solid #244c43;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(18, 32, 29, 0.2);
}

.app-sidebar {
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  background: #07231f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-logo {
  margin: 0.2rem 0.7rem 3rem;
  font-family: "Newsreader", serif;
  font-size: 1.6rem;
}

.app-logo span {
  color: var(--gold);
}

.app-sidebar nav {
  display: grid;
  gap: 0.45rem;
}

.app-sidebar nav button {
  padding: 0.8rem;
  color: #92aaa3;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-size: 0.72rem;
}

.app-sidebar nav button i {
  width: 28px;
  display: inline-block;
  color: #6e8a82;
  font-style: normal;
}

.app-sidebar nav button.active {
  color: #0d312a;
  background: var(--lime);
}

.sidebar-note {
  margin-top: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.sidebar-note span,
.app-header p,
.panel-heading p {
  color: #709088;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.5rem;
  font-weight: 800;
}

.sidebar-note strong {
  margin-top: 0.6rem;
  display: block;
  color: var(--mint);
  font-family: "Newsreader", serif;
  font-size: 1rem;
  font-weight: 400;
}

.sidebar-note p {
  margin: 0.45rem 0 0;
  color: #78928b;
  font-size: 0.56rem;
  line-height: 1.55;
}

.app-content {
  padding: 2rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 38px,
    #0a332c;
}

.app-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header p {
  margin: 0 0 0.45rem;
}

.app-header h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 2rem;
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-actions button {
  color: var(--mint);
  background: transparent;
  border: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #10352e;
  background: var(--mint);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
}

.metric-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.metric-card {
  min-height: 142px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(243, 240, 231, 0.055);
  border: 1px solid rgba(243, 240, 231, 0.1);
  border-radius: 5px;
}

.metric-card span {
  color: #78928b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.52rem;
  font-weight: 800;
}

.metric-card strong {
  font-family: "Newsreader", serif;
  font-size: 2.1rem;
  font-weight: 400;
}

.metric-card small {
  color: #86a29b;
  font-size: 0.54rem;
}

.metric-card small.positive {
  color: var(--lime);
}

.dashboard-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 0.8rem;
}

.panel {
  min-height: 360px;
  padding: 1rem;
  background: rgba(243, 240, 231, 0.055);
  border: 1px solid rgba(243, 240, 231, 0.1);
  border-radius: 5px;
}

.panel-heading p {
  margin: 0 0 0.35rem;
}

.panel-heading h4 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.panel-heading button {
  color: #94aca5;
  background: transparent;
  border: 0;
  font-size: 0.58rem;
}

.order-table {
  margin-top: 1.35rem;
}

.order-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr 0.9fr;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid rgba(243, 240, 231, 0.09);
  font-size: 0.6rem;
}

.order-row.header {
  min-height: 32px;
  color: #67837b;
  border-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.48rem;
  font-weight: 800;
}

.order-row strong {
  color: var(--mint);
  font-family: "DM Mono", monospace;
  font-weight: 400;
}

.status {
  width: fit-content;
  padding: 0.34rem 0.5rem;
  color: #112f29;
  background: #a9d6bd;
  border-radius: 999px;
  font-size: 0.48rem;
  font-weight: 800;
}

.status.pending {
  color: #382b14;
  background: #dfbd7e;
}

.status.muted {
  color: #1b3630;
  background: #8ca59f;
}

.date-chip {
  padding: 0.4rem 0.55rem;
  color: #7c9991;
  border: 1px solid rgba(243, 240, 231, 0.1);
  border-radius: 999px;
  font-size: 0.48rem;
}

.ring-wrap {
  padding: 1.4rem 0 1rem;
  display: grid;
  place-items: center;
}

.margin-ring {
  width: 160px;
  height: 160px;
  padding: 12px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--lime) 0 31.8%, #244c43 31.8% 100%);
  border-radius: 50%;
}

.margin-ring > div {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #123c34;
  border-radius: 50%;
}

.margin-ring strong,
.margin-ring span {
  display: block;
}

.margin-ring strong {
  font-family: "Newsreader", serif;
  font-size: 2rem;
  font-weight: 400;
}

.margin-ring span {
  margin-top: 0.2rem;
  color: #79968e;
  font-size: 0.52rem;
}

.mini-bars {
  display: grid;
  gap: 0.55rem;
}

.mini-bar {
  display: grid;
  grid-template-columns: 70px 1fr 32px;
  align-items: center;
  gap: 0.6rem;
  color: #82a098;
  font-size: 0.5rem;
}

.mini-bar i {
  height: 5px;
  display: block;
  background: #224b42;
  border-radius: 999px;
  overflow: hidden;
}

.mini-bar i::after {
  width: var(--width);
  height: 100%;
  content: "";
  display: block;
  background: var(--lime);
}

.synthetic-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.55rem;
}

.architecture {
  padding: clamp(5rem, 9vw, 9rem) 4vw;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 110%, rgba(198, 147, 69, 0.18), transparent 30%),
    #092b25;
}

.section-heading.light > p {
  color: #8da59f;
}

.architecture-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

.architecture-grid article {
  min-height: 390px;
  padding: 1.4rem 0.8rem;
  display: flex;
  flex-direction: column;
}

.architecture-grid article > span {
  color: var(--gold);
  letter-spacing: 0.11em;
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
}

.architecture-grid h3,
.phase-grid h3 {
  margin: 4rem 0 1rem;
  font-family: "Newsreader", serif;
  font-size: clamp(1.8rem, 2.3vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.architecture-grid p,
.architecture-grid li {
  color: #8ba39c;
  font-size: 0.63rem;
  line-height: 1.6;
}

.architecture-grid ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.architecture-grid li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(243, 240, 231, 0.08);
}

.flow-arrow {
  width: 42px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.3rem;
}

.control-spine {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  align-items: center;
}

.control-spine > span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.58rem;
  font-weight: 800;
}

.control-spine > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.control-spine b {
  color: #9ab1ab;
  font-size: 0.56rem;
}

.control-spine i {
  flex: 1;
  height: 1px;
  background: var(--light-line);
}

.phase-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.phase-grid article {
  min-height: 450px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.phase-grid article:last-child {
  border-right: 0;
}

.phase-grid article > span {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.55rem;
  font-weight: 800;
}

.phase-grid p {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.7;
}

.phase-grid strong {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--gold);
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.52rem;
}

.phase-grid .featured {
  color: var(--paper);
  background: var(--emerald);
}

.phase-grid .featured p {
  color: #a8bdb7;
}

.phase-grid .featured strong {
  border-top-color: var(--light-line);
}

.close {
  padding: clamp(6rem, 11vw, 11rem) 4vw;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 120%, rgba(217, 241, 159, 0.14), transparent 30%),
    #061c18;
  text-align: center;
}

.close h2 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(3.4rem, 6vw, 7rem);
}

.close > p:not(.eyebrow) {
  max-width: 700px;
  margin: 2rem auto 0;
  color: #8ca39d;
  font-size: 0.84rem;
  line-height: 1.8;
}

.close-tags {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.close-tags span {
  padding: 0.7rem 0.9rem;
  color: var(--mint);
  border: 1px solid var(--light-line);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.55rem;
}

footer {
  min-height: 110px;
  padding: 1.5rem 4vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: #829b94;
  background: #041410;
}

footer .brand-mark {
  border-color: #6d8981;
}

footer p {
  text-align: center;
  font-size: 0.55rem;
}

footer > a {
  justify-self: end;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.55rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .metric-grid,
  .phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .architecture-grid article {
    min-height: 270px;
    border-bottom: 1px solid var(--light-line);
  }

  .flow-arrow {
    width: auto;
    height: 35px;
    transform: rotate(90deg);
  }

  .phase-grid article:nth-child(2) {
    border-right: 0;
  }

  .phase-grid article {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .topbar-meta .status-pill,
  .topbar-meta > a {
    display: none;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .signal-strip,
  .role-tabs,
  .metric-grid,
  .phase-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .signal-strip span,
  .role-tab,
  .phase-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-content {
    padding: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .order-row {
    grid-template-columns: 0.8fr 1.4fr 1fr;
  }

  .order-row > :last-child {
    display: none;
  }

  .control-spine {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .control-spine > div {
    flex-wrap: wrap;
  }

  .control-spine i {
    display: none;
  }

  footer {
    gap: 1.5rem;
  }

  footer p {
    text-align: left;
  }

  footer > a {
    justify-self: start;
  }
}
