:root {
  --bg: #09111b;
  --bg-soft: #0e1825;
  --panel: rgba(11, 20, 31, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6efdf;
  --muted: #a7a79f;
  --muted-strong: #cec7bb;
  --gold: #f1c66d;
  --gold-soft: rgba(241, 198, 109, 0.12);
  --teal: #9dd0ca;
  --slate-soft: rgba(255, 255, 255, 0.04);
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(241, 198, 109, 0.06), transparent 24%),
    radial-gradient(circle at 15% 12%, rgba(142, 216, 201, 0.06), transparent 18%),
    linear-gradient(180deg, #071019 0%, #09111b 46%, #0e1723 100%);
  color: var(--text);
}

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.45;
}

.grid-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 92%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(7, 14, 23, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-home {
  display: grid;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
}

.brand-home:hover .brand-block h1,
.brand-home:hover .brand-subhead {
  color: var(--text);
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.12rem;
  height: 1.12rem;
  margin-top: 0.02rem;
  border-radius: 50%;
  background: #f7931a;
  color: #fff7eb;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.3);
}

.brand-block h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-subhead {
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(0.62rem, 2.65vw, 0.78rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--muted-strong);
  font-size: 0.84rem;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-current {
  color: var(--gold);
}

.nav-menu {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-menu[open] .nav-menu__button {
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu__button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  list-style: none;
  cursor: pointer;
}

.nav-menu__button::-webkit-details-marker {
  display: none;
}

.nav-menu__button span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-menu__panel {
  position: absolute;
  right: 1rem;
  top: calc(100% - 0.2rem);
  display: grid;
  gap: 0.1rem;
  min-width: 9rem;
  padding: 0.45rem;
  background: rgba(9, 18, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.nav-menu__link {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  text-decoration: none;
}

.nav-menu__link:hover,
.nav-menu__link.is-current {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.workspace {
  width: min(100vw - 1rem, 480px);
  margin: 0 auto;
  padding: 0.8rem 0 3rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-shell,
.error-shell {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.loading-shell__meter {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.section-card {
  padding: 1rem;
}

.track-shell {
  display: grid;
  gap: 0.45rem;
}

.track-title {
  margin: 0;
  padding: 0 0.15rem;
  color: var(--muted-strong);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.08;
}

.track-shell__head {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.track-shell__title-block {
  display: grid;
  gap: 0.32rem;
}

.track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.track-meta span + span::before,
.track-meta span + a::before,
.track-meta a + span::before {
  content: "•";
  margin-right: 0.45rem;
  color: rgba(255, 255, 255, 0.22);
}

.track-meta a {
  color: var(--teal);
  text-decoration: none;
}

.track-meta a:hover {
  color: var(--text);
}

.track-meta--under {
  justify-content: flex-end;
  padding-right: 0.15rem;
  font-size: 0.66rem;
  text-align: right;
}

.track-meta--under a::before {
  content: none;
  margin-right: 0;
}

.section-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-card h3 {
  margin: 0.2rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.03em;
}

.section-card h3 {
  font-size: 1.1rem;
  line-height: 1.08;
}

.section-card p {
  margin: 0;
  color: var(--muted-strong);
}

.stepper {
  display: grid;
  gap: 0.4rem;
}

.step {
  display: grid;
  grid-template-columns: 1.08rem minmax(0, 1fr);
  gap: 0.9rem;
}

.step__rail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.06rem;
}

.step__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.06rem;
  height: 1.06rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #081019;
  font-size: 0.6rem;
  font-weight: 700;
  border: none;
}

.step__body {
  padding: 0 0 0.85rem;
}

.step__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
}

.step__headline {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.step__label {
  display: block;
  font-size: 0.93rem;
  line-height: 1.16;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.step__subline {
  min-height: 0.9rem;
}

.step__start-link,
.step__status {
  display: inline-flex;
  align-items: center;
  min-height: 0.9rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.step__start-link:hover {
  color: var(--text);
}

.step__status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step__date {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.step__date-block {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.24rem;
  flex-shrink: 0;
  flex-direction: column;
  min-width: 4.6rem;
  text-align: right;
}

.step__meter {
  position: relative;
  height: 0.34rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.step__meter-fill {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 198, 109, 0.88), rgba(241, 198, 109, 0.52));
}

.step__marker {
  position: absolute;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.step__marker {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(241, 198, 109, 0.12);
}

.step__delta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
  padding: 0.04rem 0.3rem;
  border-radius: 999px;
  background: rgba(157, 208, 202, 0.06);
  border: 1px solid rgba(157, 208, 202, 0.18);
  color: var(--teal);
  font-size: 0.58rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.is-complete .step__date,
.is-complete .step__label {
  color: #d7def8;
}

.signals-card {
  margin-top: 0;
  padding-top: 0.78rem;
}

.signals-shell {
  display: grid;
  gap: 0.22rem;
  margin-top: 1.45rem;
}

.signals-shell__head {
  display: flex;
  align-items: baseline;
  padding: 0 0.15rem;
}

.email-capture-card {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(143, 210, 200, 0.05), rgba(241, 198, 109, 0.04) 70%, rgba(255, 255, 255, 0) 100%);
}

.email-capture-copy {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--muted-strong);
}

.email-capture-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.email-capture-input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
}

.email-capture-input::placeholder {
  color: var(--muted);
}

.email-capture-input:focus {
  outline: none;
  border-color: rgba(157, 208, 202, 0.45);
  box-shadow: 0 0 0 3px rgba(157, 208, 202, 0.12);
}

.email-capture-button {
  min-height: 2.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(241, 198, 109, 0.28);
  border-radius: 12px;
  background: rgba(241, 198, 109, 0.1);
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.email-capture-button:hover {
  background: rgba(241, 198, 109, 0.16);
}

.signal-list {
  display: grid;
  gap: 0.78rem;
}

.signal-list--flat {
  gap: 0.84rem;
}

.signal-row {
  display: grid;
  gap: 0.16rem;
}

.signal-row + .signal-row {
  padding-top: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-row--flat {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.82rem;
  align-items: start;
}

.signal-row__content {
  display: grid;
  gap: 0.18rem;
}

.signal-row__marker-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.08rem;
}

.signal-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 50%;
  color: #081019;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--lane-accent, var(--gold));
}

.signal-row strong {
  font-size: 0.87rem;
  line-height: 1.24;
  font-weight: 600;
}

.signal-row strong a {
  color: inherit;
  text-decoration: none;
}

.signal-row strong a:hover {
  color: var(--text);
  text-decoration: underline;
}

.signal-row p {
  font-size: 0.79rem;
  color: var(--muted-strong);
  line-height: 1.34;
}

.step.is-product-lane,
.signal-marker.is-product-lane {
  --lane-accent: #f1c66d;
}

.step.is-ecosystem-lane,
.signal-marker.is-ecosystem-lane {
  --lane-accent: #8fd2c8;
}

.step.is-buyer-lane,
.signal-marker.is-buyer-lane {
  --lane-accent: #8cb3ff;
}

.step.is-big-capital-lane,
.signal-marker.is-big-capital-lane {
  --lane-accent: #d49a73;
}

.step.is-reset-lane,
.signal-marker.is-reset-lane {
  --lane-accent: #d7def8;
}

.step__dot {
  background: var(--lane-accent, rgba(255, 255, 255, 0.2));
}

.step__meter-fill {
  background: linear-gradient(90deg, color-mix(in srgb, var(--lane-accent, #f1c66d) 92%, white 8%), color-mix(in srgb, var(--lane-accent, #f1c66d) 58%, transparent 42%));
}

.step__marker {
  background: var(--lane-accent, var(--gold));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lane-accent, #f1c66d) 18%, transparent 82%);
}

.story-page {
  width: min(100vw - 1rem, 760px);
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.story-article {
  padding: 1.2rem;
}

.story-article h2,
.story-article h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.03em;
}

.story-article h2 {
  margin-top: 0.25rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.96;
}

.story-article h3 {
  margin-top: 1.35rem;
  font-size: 1.15rem;
}

.story-article p {
  margin: 0.6rem 0 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 64ch;
}

.story-article--manifesto {
  padding: 1.3rem 1.2rem 1.45rem;
}

.story-article--manifesto h2 {
  margin-bottom: 0.35rem;
}

.story-article__lead {
  margin-top: 0.9rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
}

.story-article__closing {
  margin-top: 1.25rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.42;
}

.story-article a {
  color: var(--teal);
  text-decoration: none;
}

.story-article a:hover {
  color: var(--text);
}

.story-article--model h3 + .model-table-wrap,
.story-article--model h3 + .milestone-card {
  margin-top: 0.7rem;
}

.model-table-wrap {
  margin-top: 0.7rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.model-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.model-table th,
.model-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.model-table th {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.025);
}

.model-table td {
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.55;
}

.model-table tbody tr:last-child td {
  border-bottom: none;
}

.milestone-card {
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.milestone-card h3 {
  margin-top: 0;
}

.milestone-facts {
  display: grid;
  gap: 0.72rem;
  margin: 0.65rem 0 0;
}

.milestone-facts div {
  display: grid;
  gap: 0.16rem;
}

.milestone-facts dt {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.milestone-facts dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.56;
}

@media (max-width: 560px) {
  .story-article {
    padding: 1.05rem;
  }

  .story-article p {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .story-article__lead,
  .story-article__closing {
    font-size: 1rem;
  }

  .model-table th,
  .model-table td {
    padding: 0.72rem 0.78rem;
  }

  .milestone-card {
    padding: 0.88rem 0.9rem;
  }
}

@media (min-width: 860px) {
  .workspace {
    width: min(100vw - 2rem, 760px);
  }

  .topbar {
    padding: 1.05rem 1.5rem 0.95rem;
  }

  .nav-menu {
    display: none;
  }

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

}

@media (max-width: 859px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 420px) {
  .email-capture-form {
    grid-template-columns: 1fr;
  }
}
