:root {
  --paper: #f6f1e8;
  --paper-deep: #ebe2d4;
  --ink: #14212a;
  --muted: #5f6b72;
  --line: rgba(20, 33, 42, 0.14);
  --teal: #17766c;
  --blue: #275f93;
  --red: #b64235;
  --gold: #b77b1b;
  --green: #4d7d3a;
  --violet: #6a5a86;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 33, 42, 0.12);
  color-scheme: light;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 33, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 33, 42, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 800;
}

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

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topnav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 6vw, 76px) 42px;
  border-bottom: 1px solid var(--line);
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: #34434b;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.48);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 33, 42, 0.16);
  outline: none;
}

.cycle-visual {
  display: grid;
  min-height: 560px;
  place-items: center;
}

.orbit {
  position: relative;
  width: min(70vw, 520px);
  min-width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 33, 42, 0.18);
  border-radius: 50%;
  background:
    conic-gradient(
      from -30deg,
      rgba(77, 125, 58, 0.22),
      rgba(23, 118, 108, 0.2),
      rgba(183, 123, 27, 0.22),
      rgba(182, 66, 53, 0.2),
      rgba(39, 95, 147, 0.22),
      rgba(106, 90, 134, 0.2),
      rgba(77, 125, 58, 0.22)
    );
  box-shadow: inset 0 0 0 36px rgba(246, 241, 232, 0.82);
}

.orbit::before,
.orbit::after {
  position: absolute;
  inset: 18%;
  content: "";
  border: 1px dashed rgba(20, 33, 42, 0.22);
  border-radius: 50%;
}

.orbit::after {
  inset: 33%;
  border-style: solid;
  opacity: 0.55;
}

.phase-node {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(20, 33, 42, 0.2);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(-1 * min(35vw, 250px)))
    rotate(calc(-1 * var(--angle)));
  transition: 180ms ease;
}

.phase-node span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
}

.phase-node.active,
.phase-node:hover,
.phase-node:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(-1 * min(35vw, 250px)))
    rotate(calc(-1 * var(--angle)))
    scale(1.08);
}

.cycle-core {
  position: absolute;
  inset: 34%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(20, 33, 42, 0.16);
  border-radius: 50%;
  background: rgba(246, 241, 232, 0.96);
  text-align: center;
  box-shadow: var(--shadow);
}

.cycle-core span {
  color: var(--red);
  font-weight: 900;
}

.cycle-core strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.cycle-core small {
  max-width: 18ch;
  color: var(--muted);
  line-height: 1.5;
}

.phase-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 6vw, 76px);
  background: #17232c;
  color: var(--paper);
}

.phase-summary {
  align-self: center;
}

.phase-summary p:not(.section-kicker) {
  color: rgba(246, 241, 232, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.phase-item {
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.phase-item b {
  display: block;
  margin-bottom: 10px;
  color: #f2c272;
}

.phase-item p {
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.82);
  line-height: 1.65;
}

.section {
  padding: clamp(56px, 7vw, 94px) clamp(18px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 32px;
}

.section-heading p:not(.section-kicker),
.split > div > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.signal-block,
.meter-card,
.library-grid article,
.ranking-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 34px rgba(20, 33, 42, 0.08);
}

.signal-block {
  overflow: hidden;
  padding: 22px;
}

.signal-block::before {
  display: block;
  width: 76px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  content: "";
}

.signal-block.danger::before {
  background: var(--red);
}

.signal-block.caution::before {
  background: var(--gold);
}

.signal-block.constructive::before {
  background: var(--teal);
}

ul {
  margin: 0;
  padding-left: 19px;
}

li {
  margin: 10px 0;
  color: #34434b;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

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

.flow-step {
  min-height: 168px;
  padding: 18px;
  border-left: 6px solid var(--blue);
  background: rgba(255, 255, 255, 0.54);
}

.flow-step:nth-child(2) {
  border-color: var(--red);
}

.flow-step:nth-child(3) {
  border-color: var(--violet);
}

.flow-step:nth-child(4) {
  border-color: var(--teal);
}

.flow-step:nth-child(5) {
  border-color: var(--green);
}

.flow-step:nth-child(6) {
  border-color: var(--gold);
}

.flow-step span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 900;
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.tab.active,
.tab:hover,
.tab:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.asset-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 16px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 20px;
}

.ranking-panel h3 {
  margin-bottom: 14px;
}

.ranking-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.ranking-panel li {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(20, 33, 42, 0.06);
  color: var(--ink);
  font-weight: 800;
}

.asset-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 34px rgba(20, 33, 42, 0.08);
}

.asset-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.asset-table th,
.asset-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.asset-table th {
  background: rgba(20, 33, 42, 0.08);
  font-size: 14px;
}

.asset-table td {
  color: #34434b;
  line-height: 1.6;
}

.asset-table tbody tr:hover {
  background: rgba(23, 118, 108, 0.08);
}

.heatmap-section {
  background: var(--paper-deep);
}

.heatmap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.heat-row {
  display: grid;
  grid-template-columns: 180px repeat(6, minmax(120px, 1fr));
  min-width: 900px;
}

.heat-cell {
  min-height: 58px;
  padding: 12px;
  border-right: 1px solid rgba(20, 33, 42, 0.1);
  border-bottom: 1px solid rgba(20, 33, 42, 0.1);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.heat-head {
  background: var(--ink);
  color: var(--paper);
}

.heat-label {
  background: rgba(255, 255, 255, 0.54);
}

.heat-1 {
  background: rgba(182, 66, 53, 0.12);
}

.heat-2 {
  background: rgba(183, 123, 27, 0.17);
}

.heat-3 {
  background: rgba(39, 95, 147, 0.18);
}

.heat-4 {
  background: rgba(23, 118, 108, 0.24);
}

.heat-5 {
  background: rgba(77, 125, 58, 0.34);
}

.dashboard-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.meter-card {
  padding: 22px;
}

.meter {
  position: relative;
  display: grid;
  width: 144px;
  height: 144px;
  margin: 8px 0 18px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--teal) calc(var(--value) * 1%), rgba(20, 33, 42, 0.1) 0),
    var(--paper);
}

.meter::before {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.meter span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.meter span::after {
  content: attr(data-value);
}

.meter-card p,
.library-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-grid article {
  padding: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 76px);
  background: var(--ink);
  color: rgba(246, 241, 232, 0.82);
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--paper);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .hero,
  .phase-panel,
  .split,
  .asset-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .cycle-visual {
    min-height: 500px;
  }

  .ranking-panel {
    position: static;
  }

  .signal-board,
  .dashboard-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero {
    padding-top: 34px;
  }

  .cycle-visual {
    min-height: 410px;
  }

  .orbit {
    width: min(88vw, 390px);
    min-width: 300px;
    box-shadow: inset 0 0 0 24px rgba(246, 241, 232, 0.82);
  }

  .phase-node {
    width: 72px;
    height: 72px;
    font-size: 14px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(calc(-1 * min(42vw, 178px)))
      rotate(calc(-1 * var(--angle)));
  }

  .phase-node span {
    width: 54px;
    height: 54px;
  }

  .phase-node.active,
  .phase-node:hover,
  .phase-node:focus-visible {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(calc(-1 * min(42vw, 178px)))
      rotate(calc(-1 * var(--angle)))
      scale(1.06);
  }

  .cycle-core {
    inset: 31%;
    padding: 10px;
  }

  .cycle-core small {
    display: none;
  }

  .phase-grid,
  .flow-map,
  .signal-board,
  .dashboard-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .tab {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
