:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #5d6c65;
  --paper: #f5f3ed;
  --surface: #fffef9;
  --line: #d8ddd7;
  --forest: #173c32;
  --forest-2: #235947;
  --mint: #d6eee3;
  --lime: #cce775;
  --amber: #e9a23b;
  --amber-soft: #fff0d5;
  --red: #b84f45;
  --red-soft: #f8e3df;
  --blue: #315a83;
  --blue-soft: #e5eef8;
  --shadow: 0 22px 60px rgba(24, 49, 40, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

code,
.mono,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
  background: rgba(23, 60, 50, 0.09);
  font-size: 0.88em;
}

.shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  background: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 28%, rgba(204, 231, 117, 0.2), transparent 29rem),
    linear-gradient(135deg, #112b25 0%, #173c32 48%, #235947 100%);
}

.hero::after {
  position: absolute;
  right: -5rem;
  bottom: -18rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(255, 255, 255, 0.025),
    0 0 0 10rem rgba(255, 255, 255, 0.02);
  content: "";
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.7rem;
  color: var(--forest);
  background: var(--lime);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: white;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 5rem;
  align-items: center;
  padding-block: 6.5rem 7.5rem;
}

.hero-grid > *,
.section-heading > *,
.demo-panel > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--forest-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.eyebrow-light {
  color: var(--lime);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.55rem, 5.5vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 750px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 760;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.button-primary {
  color: #13271f;
  background: var(--lime);
}

.button-primary:hover {
  background: #d9ef91;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.button-large {
  min-width: 235px;
  padding: 1rem 1.3rem;
}

.readiness-panel {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.15rem;
  background: rgba(10, 31, 25, 0.43);
  box-shadow: 0 30px 70px rgba(3, 15, 11, 0.2);
  backdrop-filter: blur(16px);
}

.pulse-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pulse {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem rgba(233, 162, 59, 0.14);
}

.pulse-amber {
  background: var(--amber);
}

.readiness-panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
}

.readiness-panel dl div {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
}

.readiness-panel dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.readiness-panel dd {
  margin: 0.15rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
}

.fine-print {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.77rem;
}

.section {
  padding-block: 6.5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.section-copy {
  margin: 0;
  color: var(--muted);
}

.section-copy code {
  color: #354a41;
  background: #e0e4de;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 9px 30px rgba(20, 48, 38, 0.035);
}

.project-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--forest-2);
  content: "";
}

.card-blocked::before {
  background: var(--red);
}

.card-wip::before {
  background: var(--amber);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-accepted {
  color: #184a38;
  background: var(--mint);
}

.status-blocked {
  color: #863930;
  background: var(--red-soft);
}

.status-wip {
  color: #7a4b10;
  background: var(--amber-soft);
}

.mono {
  color: var(--muted);
  font-size: 0.76rem;
}

.project-card > p {
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0;
  color: #42524b;
  font-size: 0.9rem;
  list-style: none;
}

.facts li {
  position: relative;
  padding-left: 1.15rem;
}

.facts li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--forest-2);
  content: "";
}

.text-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--forest-2);
  text-underline-offset: 0.2rem;
  font-weight: 780;
}

.text-link-muted {
  color: var(--muted);
  text-decoration: none;
}

.section-dark {
  color: white;
  background: #172d27;
}

.section-copy-light {
  color: rgba(255, 255, 255, 0.62);
}

.gate-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gate {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 1.35rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.gate::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 0;
  height: 5px;
  border-radius: 5px;
  background: var(--lime);
  content: "";
}

.gate-done::before,
.gate-active::before {
  width: 100%;
}

.gate-blocked::before {
  width: 100%;
  background: var(--red);
}

.gate > span {
  color: var(--lime);
  font: 700 0.72rem "SFMono-Regular", Consolas, monospace;
}

.gate-blocked > span {
  color: #f09a90;
}

.gate small {
  color: rgba(255, 255, 255, 0.53);
  line-height: 1.4;
}

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

.evidence-card {
  overflow: hidden;
  border: 1px solid #263b34;
  border-radius: 0.85rem;
  background: #12251f;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.8);
  background: #19332b;
  font-size: 0.8rem;
}

.terminal-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-state {
  flex: 0 0 auto;
  color: var(--lime);
  font: 700 0.68rem "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.evidence-state.placeholder {
  color: #f3b45b;
}

.evidence-card pre {
  min-height: 230px;
  max-height: 410px;
  margin: 0;
  padding: 1.1rem;
  overflow: auto;
  color: #cfddd6;
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.loading,
.notice {
  color: var(--muted);
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  border: 1px solid #cdd7cf;
  border-radius: 1.25rem;
  background:
    linear-gradient(120deg, rgba(214, 238, 227, 0.8), rgba(255, 254, 249, 0.95)),
    var(--surface);
  box-shadow: var(--shadow);
}

.demo-panel p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.access-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

footer {
  padding-block: 2rem;
  color: rgba(255, 255, 255, 0.58);
  background: #10231d;
  font-size: 0.78rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
}

@media (max-width: 850px) {
  .hero-grid,
  .section-heading,
  .demo-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-grid {
    padding-block: 4.5rem 5rem;
  }

  .card-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .gate-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 1.4rem, 1180px);
  }

  .nav {
    min-height: 68px;
  }

  .brand > span:last-child,
  .nav-links a:nth-child(2) {
    display: none;
  }

  .nav-links {
    gap: 1rem;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.5rem);
    hyphens: auto;
  }

  .section {
    padding-block: 4.5rem;
  }

  .readiness-panel dl,
  .gate-flow {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
