:root {
  --ink: #f5f2ec;
  --ink-soft: #b8b4ac;
  --ink-muted: #85817a;
  --night: #0a0a0b;
  --night-raised: #111113;
  --night-soft: #171719;
  --line: #2a2928;
  --line-strong: #3d3933;
  --ember: #ff6b35;
  --ember-bright: #ff8257;
  --ember-pale: #ffc1aa;
  --cream: #f0e8dd;
  --green: #72d6a2;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 4px;
}

::selection {
  background: var(--ember);
  color: var(--night);
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ember);
  color: var(--night);
  font-weight: 800;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-orbit {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.brand-orbit::before {
  position: absolute;
  width: 7px;
  height: 7px;
  translate: 8px -7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 16px var(--ember);
  content: "";
}

.brand-orbit span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink-muted);
  border-radius: 50%;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: 54px;
  color: var(--ink-soft);
  font-size: 13px;
}

.desktop-nav a,
.text-link,
.site-footer nav a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.text-link:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.text-link {
  color: var(--ink-soft);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--ember);
  border-radius: 6px;
  background: var(--ember);
  color: #160c08;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: -0.01em;
  transition: translate 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  translate: 0 -2px;
  border-color: var(--ember-bright);
  background: var(--ember-bright);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.button-quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: #615b52;
  background: var(--night-soft);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: clamp(48px, 7vw, 94px);
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 112px 0 92px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -340px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 107 53 / 0.11), transparent 68%);
  content: "";
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--ember-pale);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(114 214 162 / 0.1);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 5.7vw, 5.55rem);
  font-weight: 690;
  letter-spacing: -0.062em;
  line-height: 0.96;
}

.hero h1 span {
  display: block;
  color: var(--ink-muted);
}

.hero-lede {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}

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

.managed-note {
  margin: 19px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.6;
}

.managed-note a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.managed-note a:hover {
  border-bottom-color: var(--ember);
  color: var(--ink);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.fact-row div {
  min-width: 0;
  padding-right: 14px;
}

.fact-row dt,
.fact-row dd {
  overflow-wrap: anywhere;
}

.fact-row dt {
  margin-bottom: 7px;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.fact-row dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.control-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.035), transparent 35%),
    var(--night-raised);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}

.control-card::before {
  position: absolute;
  z-index: -1;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgb(255 107 53 / 0.15);
  border-radius: 12px;
  content: "";
}

.control-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.control-card-top > div {
  display: grid;
  gap: 6px;
}

.micro-label {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.control-card-top strong {
  font-family: var(--font-mono);
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgb(114 214 162 / 0.25);
  border-radius: 999px;
  color: #a9edc9;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill .live-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.deploy-line {
  padding: 26px 8px 18px;
}

.deploy-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 18px;
  background: linear-gradient(var(--line), var(--line)) center / calc(100% - 32px) 1px no-repeat;
}

.deploy-node {
  width: 12px;
  height: 12px;
  justify-self: center;
  border: 2px solid var(--night-raised);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.deploy-node.complete {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.deploy-node.active {
  background: var(--ember);
  box-shadow: 0 0 0 1px var(--ember), 0 0 16px rgb(255 107 53 / 0.5);
}

.deploy-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric-grid div {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: #0e0e10;
}

.metric-grid span {
  color: var(--ink-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.metric-grid strong {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.log-window {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #09090a;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}

.window-bar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar small {
  margin-left: auto;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.log-window pre,
.terminal-card pre {
  margin: 0;
  overflow: auto;
  font-family: var(--font-mono);
}

.log-window pre {
  padding: 16px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.log-window code span {
  margin-right: 12px;
  color: var(--ink-muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-block: 1px solid var(--line);
  background: #0d0d0e;
}

.trust-strip span {
  padding: 19px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-align: center;
}

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

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-block: 118px;
  scroll-margin-top: 24px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  column-gap: 80px;
  align-items: end;
}

.section-intro .section-kicker {
  grid-column: 1 / -1;
}

.section h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.2vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.section-intro > p:last-child,
.workflow-copy > p,
.host-copy > p,
.final-cta > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 70px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.capability-card {
  min-height: 270px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--night-raised);
}

.capability-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-meta span:first-child {
  color: var(--ember);
}

.capability-card h3 {
  max-width: 430px;
  margin: 70px 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 620;
  letter-spacing: -0.035em;
}

.capability-card p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

.workflow-section,
.host-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.workflow-copy h2,
.host-copy h2 {
  margin-bottom: 24px;
}

.check-list,
.edition-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  list-style: none;
}

.check-list li,
.edition-card li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before,
.edition-card li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--ember);
  content: "";
}

.terminal-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #070708;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}

.terminal-card figcaption {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.terminal-dots {
  display: flex;
  gap: 5px;
  margin-right: 14px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.terminal-card pre {
  min-height: 370px;
  padding: clamp(26px, 4vw, 42px);
  color: var(--ink);
  font-size: clamp(11px, 1.5vw, 13px);
  line-height: 1.75;
}

.terminal-card .prompt {
  color: var(--ember);
}

.terminal-card .output {
  color: var(--ink-muted);
}

.host-section {
  grid-template-columns: 1.12fr 0.88fr;
}

.host-diagram {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--night-raised);
}

.host-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.host-grid span {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c0c0d;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

.host-grid span:last-child {
  border-color: rgb(255 107 53 / 0.35);
  color: var(--ember-pale);
}

.resource-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: center;
  margin-top: 16px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.resource-bar i {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.resource-bar i::after {
  position: absolute;
  inset: 0 34% 0 0;
  border-radius: inherit;
  background: var(--ember);
  content: "";
}

.resource-bar small {
  grid-column: 1 / -1;
  color: var(--ink-muted);
}

.fine-print {
  padding: 18px;
  border-left: 1px solid var(--ember);
  background: rgb(255 107 53 / 0.055);
  font-size: 12px !important;
}

.editions-section {
  width: 100%;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
  background: var(--cream);
  color: #171513;
}

.editions-intro > p:last-child {
  color: #5e574f;
}

.editions-section .section-kicker {
  color: #ad3f19;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 64px;
}

.edition-card {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #cfc3b5;
  border-radius: 10px;
  background: #e8ded2;
}

.edition-primary {
  border-color: #211c18;
  background: #171513;
  color: var(--ink);
}

.edition-label {
  color: #8b6757;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.edition-primary .edition-label {
  color: var(--ember-pale);
}

.edition-card h3 {
  margin: 70px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.045em;
}

.edition-card p {
  max-width: 480px;
  margin: 0;
  color: #5e574f;
  font-size: 14px;
  line-height: 1.75;
}

.edition-primary p,
.edition-primary ul {
  color: var(--ink-soft);
}

.edition-card ul {
  margin-bottom: 36px;
  color: #5e574f;
}

.edition-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.edition-card:not(.edition-primary) .button-quiet {
  border-color: #938576;
  color: #171513;
}

.edition-card:not(.edition-primary) .button-quiet:hover {
  background: #ded2c4;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(48px, 9vw, 130px);
}

.faq-heading h2 {
  position: sticky;
  top: 30px;
  font-size: clamp(2rem, 3.7vw, 3.5rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 620;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--ember);
  font-family: var(--font-mono);
  font-size: 18px;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 680px;
  margin: -4px 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.final-cta {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 26px;
  padding: clamp(48px, 8vw, 92px);
  border-radius: 12px;
  background: var(--ember);
  color: #140b07;
}

.final-cta .section-kicker {
  color: #5c1c08;
}

.final-cta h2 {
  max-width: 900px;
}

.final-cta > p {
  max-width: 620px;
  margin-top: 24px;
  color: #64230e;
}

.button-light {
  border-color: #140b07;
  background: #140b07;
  color: var(--ink);
}

.button-light:hover {
  border-color: #29201b;
  background: #29201b;
}

.button-outline-light {
  border-color: rgb(20 11 7 / 0.45);
  background: transparent;
  color: #140b07;
}

.button-outline-light:hover {
  border-color: #140b07;
  background: rgb(20 11 7 / 0.08);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: 116px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 10px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

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

  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .control-card {
    width: min(100%, 650px);
  }

  .section-intro,
  .workflow-section,
  .host-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .section-intro > p:last-child {
    max-width: 660px;
    margin-top: 24px;
  }

  .workflow-section,
  .host-section {
    gap: 54px;
  }

  .host-diagram {
    order: 2;
  }

  .faq-heading h2 {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-source {
    display: none;
  }

  .hero,
  .section,
  .final-cta,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    gap: 52px;
    padding: 68px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13.5vw, 4.5rem);
  }

  .fact-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
  }

  .control-card {
    padding: 16px;
  }

  .control-card::before {
    display: none;
  }

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

  .trust-strip span:nth-child(2) {
    border-right: 0;
  }

  .trust-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-block: 86px;
  }

  .capability-grid,
  .edition-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 240px;
  }

  .capability-card h3 {
    margin-top: 48px;
  }

  .terminal-card pre {
    min-height: 320px;
    white-space: pre-wrap;
  }

  .host-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editions-section {
    width: 100%;
    padding-inline: 14px;
  }

  .edition-card {
    min-height: 430px;
  }

  .final-cta {
    margin-bottom: 12px;
    padding: 42px 24px;
  }

  .final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
    text-align: center;
  }

  .site-footer .wordmark,
  .site-footer nav {
    justify-self: center;
  }
}

@media (max-width: 430px) {
  .wordmark {
    font-size: 14px;
  }

  .header-actions .button-small {
    min-height: 34px;
    padding-inline: 11px;
  }

  .eyebrow {
    align-items: flex-start;
    line-height: 1.5;
  }

  .hero-actions:not(.final-actions) {
    align-items: stretch;
    flex-direction: column;
  }

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

  .deploy-labels {
    font-size: 7px;
  }

  .trust-strip span {
    padding-inline: 10px;
    font-size: 8px;
    line-height: 1.5;
  }

  .host-grid span {
    min-height: 70px;
    font-size: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
