:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --band: #eef1e9;
  --ink: #17221d;
  --muted: #49574e;
  --green: #185f46;
  --line: #cbd4ca;
  --dark: #12251d;
  --mint: #b5eea5;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

:focus-visible {
  outline: 3px solid #247956;
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1, h2, h3, p, figure, dl, dd, pre {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.06;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.15rem, 4.5vw, 3.5rem);
}

.shell {
  width: min(100% - 3rem, 74rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  transform: translateY(-200%);
  background: var(--paper);
  color: var(--green);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  min-height: 5rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.3rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.24em;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.055em;
  text-decoration: none;
  white-space: nowrap;
}

.brand > span:last-child {
  color: var(--green);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  margin-right: 0.36rem;
  border-radius: 0.25rem;
  background: var(--green);
}

.brand-mark::before, .brand-mark::after {
  position: absolute;
  top: 30%;
  width: 25%;
  height: 40%;
  border: 2px solid var(--mint);
  content: "";
}

.brand-mark::before {
  left: 19%;
  border-right: 0;
}

.brand-mark::after {
  right: 19%;
  border-left: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem clamp(0.95rem, 3vw, 2.25rem);
  color: var(--muted);
}

.site-nav a, .language {
  padding-block: 0.5rem;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .language:hover {
  color: var(--green);
  text-decoration: underline;
}

.language {
  justify-self: end;
  padding-inline: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.28rem;
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(3.2rem, 8vw, 7rem);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--green);
  font: 650 0.86rem/1.4 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.55rem);
}

h1 span {
  display: inline-block;
  color: var(--green);
}

:lang(es) h1 {
  font-size: clamp(2.65rem, 5.2vw, 4.8rem);
}

.hero-copy, .section-copy {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.hero-copy {
  max-width: 29rem;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.button {
  display: inline-block;
  width: fit-content;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  font-weight: 680;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

.hero .button, .band .button {
  margin-top: 1.6rem;
}

.button-primary {
  background: var(--green);
  color: white;
}

.button-primary:hover {
  background: #104b35;
}

.button-outline {
  border-color: #83a293;
  color: var(--green);
}

.button-outline:hover {
  background: #e0ebdf;
}

.terminal {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #355146;
  border-radius: 0.6rem;
  background: var(--dark);
  color: #e4eee7;
  box-shadow: 0 1rem 2.5rem -1.65rem #143c2d88;
  font-family: var(--mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.87rem 1.25rem;
  border-bottom: 1px solid #355146;
  background: #1c3529;
  font-size: 0.85rem;
}

.terminal-icon {
  color: var(--mint);
  font-weight: 750;
}

.terminal pre {
  padding: 1.25rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 0.82rem/1.55 var(--mono);
}

.terminal code {
  font: inherit;
}

.prompt, .code-value {
  color: var(--mint);
}

.terminal figcaption {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #355146;
  color: #b5c9bb;
  font-size: 0.8rem;
}

.band {
  border-block: 1px solid var(--line);
  background: var(--band);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(1.8rem, 6vw, 5rem);
  padding-block: clamp(3rem, 6.5vw, 5.5rem);
}

.project-details {
  align-self: center;
  border-top: 1px solid var(--line);
}

.project-details > div {
  display: grid;
  grid-template-columns: minmax(6.7rem, 0.75fr) 1.25fr;
  align-items: baseline;
  gap: 0.65rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.project-details dt {
  color: var(--muted);
  font: 0.87rem/1.5 var(--mono);
}

.project-details dd {
  font-weight: 660;
  line-height: 1.4;
}

.status::before {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 0.12em;
  content: "";
}

.updates {
  row-gap: 1.4rem;
}

.milestones {
  margin: 0;
  padding-left: 1.55rem;
  border-left: 1px solid #8dad9b;
  list-style: none;
}

.milestones li {
  position: relative;
}

.milestones li + li {
  margin-top: 1.55rem;
}

.milestones li::before {
  position: absolute;
  top: 0.3rem;
  left: -1.8rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.milestones h3 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.milestones p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.updates-source {
  grid-column: 2;
}

.text-link {
  color: var(--green);
  font-weight: 660;
}

.collaboration {
  background: var(--dark);
  color: var(--paper);
}

.collaboration-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  padding-block: clamp(3rem, 6.5vw, 5.5rem);
}

.collaboration .eyebrow {
  color: var(--mint);
}

.collaboration p:not(.eyebrow) {
  max-width: 39rem;
  margin-top: 1rem;
  color: #d0dfd4;
}

.collaboration .button {
  flex: 0 0 auto;
  background: var(--mint);
  color: var(--dark);
}

.collaboration .button:hover {
  background: #d0f5c5;
}

.collaboration a:focus-visible {
  outline-color: var(--mint);
}

.footer-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.25rem;
}

.footer-inner small {
  color: var(--muted);
  font-size: 0.85rem;
}

.error-page {
  padding-block: clamp(3rem, 10vw, 7rem);
}

.error-page p {
  margin-top: 1.25rem;
}

.error-page .button {
  margin: 1.5rem 0.5rem 0 0;
}

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

  .terminal {
    max-width: 34rem;
  }

  .updates-source {
    grid-column: auto;
  }

  .collaboration-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 36rem) {
  .shell {
    width: calc(100% - 2rem);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 0.25rem;
    padding-block: 0.75rem 0.45rem;
  }

  .site-nav {
    grid-area: 2 / 1 / 3 / -1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

.hero-link { display: inline-block; margin: 0.75rem 1rem; }
.milestones code { overflow-wrap: anywhere; }
#cases { border-top: 1px solid #8dad9b; }

/* Selectable, script-free workflow illustration */
.sr-only, .console input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.console { min-width: 0; margin: 0; padding: clamp(1rem,3vw,2rem); border: 1px solid #244454; border-radius: 12px; color: #e8f7fa; background: repeating-linear-gradient(0deg,transparent 0 23px,#162837 24px),repeating-linear-gradient(90deg,transparent 0 23px,#162837 24px),#081521; box-shadow: 0 14px 35px #15344625; }
.console-caption, .console label, .readout small, .map-art span { font: 600 .78rem/1.5 var(--mono); }
.console-caption { color: #71e1e1; margin-bottom: 1rem; letter-spacing: .09em; }
.console-caption span { color: #becbdb; }
.console label { display: inline-block; cursor: pointer; padding: .45rem .6rem; margin: .16rem .12rem .16rem 0; border: 1px solid #526575; border-radius: 4px; background: #101f2d; }
.console input:checked + label { color: #071722; background: #84e9df; border-color: #84e9df; }
.console input:focus-visible + label { outline: 2px solid white; outline-offset: 3px; }
.map-art { position: relative; isolation: isolate; }
.map-art img { display: block; width: 100%; height: auto; animation: emerge 2s ease-out both; }
.map-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg,transparent 44%,#6be9df29 50%,transparent 56%); background-size: 250% 100%; animation: scan 3s ease-out both; }
.map-art span { position: absolute; padding: .1rem .4rem; border-bottom: 1px solid currentColor; color: #81eae9; left: 3%; top: 32%; }
.map-art span:last-child { left: auto; right: 4%; top: 64%; color: #ef9cdb; }
.readout { display: none; padding: .85rem 1rem; background: #112335; border-left: 2px solid #76e1db; }
.readout strong, .readout small { display: block; }
.readout p { color: #bacadd; }.readout small { margin-top: .35rem; color: #81eae9; }
#s0:checked ~ .readout-0, #s1:checked ~ .readout-1, #s2:checked ~ .readout-2, #s3:checked ~ .readout-3 { display: block; animation: emerge .4s ease-out both; }
@keyframes emerge { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .console *, .map-art::after { animation: none !important; } }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 1.6rem; }
.cases-grid article { padding-top: 1rem; border-top: 2px solid var(--green); }
.cases-grid h3 { font-size: 1.2rem; }
.cases-grid p, #install p { margin-top: .7rem; }
.routes { min-width: 0; }
.routes details { border-bottom: 1px solid var(--line); }
.routes summary { cursor: pointer; padding: 1rem .25rem; font-weight: 700; color: var(--green); }
.routes details > div { padding: 0 .25rem 1rem; }
.routes pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--dark); color: white; padding: .9rem; border-radius: .3rem; font-size: .88rem; }
