:root {
  --page: #fbfcfb;
  --ink: #06111f;
  --muted: #4e5b66;
  --line: #cfd8d8;
  --line-strong: #9fb3b1;
  --teal: #067d7d;
  --teal-dark: #045f62;
  --amber: #f2a51a;
  --amber-soft: #fff4d8;
  --panel: #ffffff;
  --code: #101418;
  --shadow: 0 18px 50px rgba(6, 17, 31, 0.08);
  --radius: 8px;
  --max: 1360px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(6, 125, 125, 0.035) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(180deg, #ffffff 0%, var(--page) 42%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 32px;
  height: 86px;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  text-decoration: none;
}

.brand-text {
  color: var(--ink);
  display: inline-flex;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.brand-text span {
  color: var(--teal);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 52px);
  font-size: 17px;
  font-weight: 650;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding: 4px 0 6px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--teal);
}

.hero,
.workflow-section,
.capabilities-section,
.developer-section,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
  padding-inline: clamp(24px, 4vw, 64px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(620px, 1.35fr);
  min-height: min(820px, calc(100svh - 180px));
  padding-bottom: clamp(44px, 6vw, 82px);
  padding-top: clamp(42px, 7vw, 104px);
}

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

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

h1 {
  font-size: clamp(52px, 6vw, 94px);
  font-weight: 860;
  line-height: 1.08;
  max-width: 780px;
}

.hero-copy p,
.section-heading p,
.large-statement p {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.65;
}

.hero-copy p {
  margin-top: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
}

.button {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 18px;
  font-weight: 740;
  justify-content: center;
  min-height: 68px;
  min-width: 170px;
  padding: 0 30px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 18px 28px rgba(6, 125, 125, 0.18);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  box-shadow: 0 14px 24px rgba(6, 17, 31, 0.1);
}

.hero-demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 56px 0.82fr;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.demo-panel {
  min-width: 0;
}

.render-panel {
  border-left: 1px solid var(--line);
}

.panel-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 18px;
  font-weight: 720;
  height: 58px;
  padding: 0 28px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.code-panel pre {
  color: #0d5960;
  font-size: 15px;
  line-height: 1.75;
  padding: 26px 28px 34px;
}

.flow-button {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.flow-button::before {
  background: var(--line);
  content: "";
  height: 1px;
  left: -14px;
  position: absolute;
  right: -14px;
  top: 50%;
}

.flow-button svg {
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(6, 125, 125, 0.24);
  color: #fff;
  height: 52px;
  padding: 13px;
  position: relative;
  width: 52px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.render-panel {
  display: flex;
  flex-direction: column;
}

.render-card {
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(6, 17, 31, 0.09);
  margin: auto 28px;
  max-width: 290px;
  padding: 38px 36px;
}

.render-card h2 {
  font-size: 32px;
  line-height: 1.1;
}

.render-card p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  margin-top: 18px;
}

.render-card button {
  background: var(--amber);
  border: 1px solid #c78105;
  border-radius: 6px;
  color: #111;
  font: inherit;
  font-size: 17px;
  font-weight: 740;
  margin-top: 28px;
  min-height: 54px;
  padding: 0 30px;
}

.workflow-section {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(74px, 8vw, 126px);
  padding-top: clamp(74px, 8vw, 126px);
}

.section-heading {
  margin: 0 auto;
  max-width: 850px;
  text-align: center;
}

.section-heading h2,
.large-statement h2 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 850;
  line-height: 1.08;
}

.section-heading p {
  margin-top: 18px;
}

.workflow-rail {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(54px, 7vw, 90px);
  position: relative;
}

.workflow-rail::before {
  background: var(--line-strong);
  content: "";
  height: 1px;
  left: 7%;
  position: absolute;
  right: 7%;
  top: 50%;
  z-index: 0;
}

.workflow-node {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 310px;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.workflow-node::after {
  background: var(--amber);
  content: "";
  height: 3px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 0;
}

.node-icon {
  color: var(--teal);
  height: 42px;
  width: 42px;
}

.workflow-node h3 {
  font-size: 22px;
  margin-top: 18px;
}

.workflow-node pre {
  color: #0d5960;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 22px;
}

.output-node pre {
  color: var(--ink);
}

.output-tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  margin-top: 42px;
  overflow: hidden;
}

.tab-list {
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.tab-button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 720;
  min-height: 70px;
  padding: 0 24px;
  text-align: left;
}

.tab-button.is-active {
  background: var(--amber-soft);
  box-shadow: inset 4px 0 0 var(--amber);
}

.tab-button:focus-visible {
  outline: 3px solid rgba(6, 125, 125, 0.35);
  outline-offset: -3px;
}

.tab-panel {
  background: var(--code);
  color: #e9f4f2;
  font-size: 16px;
  line-height: 1.65;
  min-height: 210px;
  overflow: auto;
  padding: 30px;
}

.capabilities-section {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1fr);
  padding-bottom: clamp(80px, 8vw, 132px);
  padding-top: clamp(80px, 8vw, 132px);
}

.large-statement h2 {
  max-width: 620px;
}

.large-statement p {
  margin-top: 28px;
  max-width: 470px;
}

.capability-list {
  border-left: 1px solid var(--line-strong);
}

.capability-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: 152px;
  padding: 28px 0 28px 46px;
}

.capability-row:first-child {
  border-top: 1px solid var(--line);
}

.capability-icon {
  align-items: center;
  border-right: 3px solid var(--amber);
  color: var(--teal);
  display: flex;
  height: 78px;
  padding-right: 24px;
}

.capability-icon svg {
  height: 56px;
  width: 56px;
}

.capability-row h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
}

.capability-row p {
  color: var(--muted);
  font-size: 22px;
  margin-top: 12px;
}

.developer-section {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(70px, 8vw, 126px);
  padding-top: clamp(74px, 8vw, 118px);
}

.developer-grid {
  display: grid;
  gap: clamp(32px, 4vw, 54px);
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  margin-top: 64px;
}

.terminal-card {
  background: #0e1216;
  border: 1px solid #252b31;
  border-radius: var(--radius);
  box-shadow: 0 24px 44px rgba(6, 17, 31, 0.18);
  color: #f4fbfa;
  min-height: 330px;
  overflow: hidden;
}

.terminal-header {
  align-items: center;
  border-bottom: 1px solid #262d34;
  display: flex;
  gap: 10px;
  height: 66px;
  padding: 0 28px;
}

.terminal-header span {
  border-radius: 999px;
  height: 16px;
  width: 16px;
}

.terminal-header span:nth-child(1) {
  background: #ff5f56;
}

.terminal-header span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-header span:nth-child(3) {
  background: #27c93f;
}

.copy-button {
  background: transparent;
  border: 1px solid #59616a;
  border-radius: 6px;
  color: #f4fbfa;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  margin-left: auto;
  min-height: 36px;
  padding: 0 16px;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

.terminal-card pre {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 740;
  line-height: 1.4;
  padding: 58px 52px;
}

.prompt {
  color: #19b5b2;
}

.doc-actions {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.doc-actions a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 0 28px;
  text-decoration: none;
}

.doc-actions a:last-child {
  border-bottom: 0;
}

.doc-actions a:hover,
.doc-actions a:focus-visible {
  background: #fff;
}

.doc-icon {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.doc-icon svg {
  height: 34px;
  width: 34px;
}

.doc-actions a span:nth-child(2) {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 790;
}

.chevron {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 42px;
  grid-template-columns: 280px minmax(0, 1fr);
  padding-bottom: 52px;
  padding-top: 44px;
}

.footer-brand {
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
}

.footer-brand span {
  color: var(--amber);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 28px;
  font-weight: 900;
  grid-row: span 2;
}

.footer-brand strong {
  font-size: 28px;
  letter-spacing: 0.04em;
}

.footer-brand small {
  color: var(--muted);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 4vw, 58px);
  justify-content: flex-end;
}

.site-footer nav a {
  border-bottom: 2px solid var(--line-strong);
  font-size: 16px;
  font-weight: 680;
  padding-bottom: 6px;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  border-color: var(--teal);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-demo {
    grid-template-columns: 1fr 54px 0.9fr;
  }

  .workflow-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-rail::before {
    display: none;
  }

  .capabilities-section {
    grid-template-columns: 1fr;
  }

  .capability-list {
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    height: auto;
    padding-block: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    font-size: 15px;
    gap: 12px 20px;
    justify-content: flex-end;
  }

  .hero {
    gap: 30px;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(42px, 11vw, 54px);
    line-height: 1.05;
  }

  .hero-copy p,
  .section-heading p,
  .large-statement p {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .button {
    font-size: 16px;
    min-width: 0;
    min-height: 58px;
    padding: 0 12px;
    width: 100%;
  }

  .hero-demo {
    grid-template-columns: 1fr;
    max-height: 180px;
    min-height: auto;
    width: 100%;
  }

  .render-panel {
    display: none;
  }

  .flow-button {
    display: none;
  }

  .code-panel pre {
    max-height: 122px;
    overflow: auto;
  }

  .render-card {
    margin: 28px;
  }

  .workflow-rail,
  .developer-grid {
    grid-template-columns: 1fr;
  }

  .output-tabs {
    grid-template-columns: 1fr;
  }

  .tab-list {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    overflow-x: auto;
  }

  .tab-button {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    flex: 0 0 auto;
    min-height: 60px;
    white-space: nowrap;
  }

  .tab-button.is-active {
    box-shadow: inset 0 -4px 0 var(--amber);
  }

  .capability-row {
    gap: 20px;
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 126px;
    padding-left: 0;
  }

  .capability-icon {
    height: 64px;
    padding-right: 16px;
  }

  .capability-icon svg {
    height: 44px;
    width: 44px;
  }

  .doc-actions a {
    gap: 16px;
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 96px;
  }

  .chevron {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: block;
  }

  .nav-links {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .hero,
  .workflow-section,
  .capabilities-section,
  .developer-section,
  .site-footer {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(38px, 10vw, 42px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .panel-title,
  .code-panel pre {
    padding-inline: 18px;
  }

  .render-card {
    max-width: none;
    padding: 28px 24px;
  }

  .workflow-node {
    min-height: auto;
  }

  .terminal-card {
    min-height: 220px;
  }

  .terminal-card pre {
    font-size: 25px;
    padding: 42px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
