:root {
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-soft: #f1f6f4;
  --ink: #111821;
  --muted: #5f6a76;
  --line: #dde6e2;
  --line-strong: #c9d6d0;
  --teal: #008f82;
  --teal-dark: #006d65;
  --coral: #f15349;
  --coral-dark: #df4037;
  --code: #101922;
  --shadow: 0 24px 70px rgba(20, 33, 41, 0.13);
  --max: 1220px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 249, 0.98) 42%),
    var(--bg);
}

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

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: 18px 32px;
  background: rgba(248, 250, 249, 0.86);
  border-bottom: 1px solid rgba(221, 230, 226, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 27px;
  font-weight: 760;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, #00a08d 54%, var(--coral) 100%);
  font-size: 17px;
  font-weight: 800;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #202a34;
  font-size: 14px;
  font-weight: 520;
}

.nav-links a,
.header-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--teal-dark);
}

.header-cta {
  justify-self: end;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(241, 83, 73, 0.2);
}

.header-cta:hover,
.button-primary:hover {
  background: var(--coral-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(560px, 1.16fr);
  gap: 40px;
  align-items: center;
  max-width: var(--max);
  min-height: 620px;
  margin: 0 auto;
  padding: 64px 28px 40px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 86px;
  font-weight: 820;
  line-height: 0.94;
}

.hero-line {
  max-width: 520px;
  margin: 22px 0 0;
  color: #293342;
  font-size: 30px;
  font-weight: 720;
  line-height: 1.18;
}

.hero-body {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 18px 32px rgba(0, 143, 130, 0.22);
}

.contact .button-primary,
.header-cta {
  background: var(--coral);
}

.button-secondary {
  color: var(--teal-dark);
  border-color: var(--teal);
  background: #fff;
}

.button-secondary:hover {
  background: #eef9f6;
}

.workbench {
  display: grid;
  grid-template-columns: 108px minmax(270px, 1fr) 226px;
  min-height: 438px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workbench-rail {
  padding: 18px 14px;
  color: #dce8e5;
  background: linear-gradient(180deg, #0e1921 0%, #111d27 100%);
}

.rail-title {
  display: block;
  margin-bottom: 18px;
  color: #25c7b5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.rail-item {
  display: flex;
  align-items: center;
  min-height: 31px;
  margin: 4px 0;
  padding: 0 9px;
  border-radius: 6px;
  color: #c2ced0;
  font-size: 12px;
  line-height: 1.2;
}

.rail-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.workbench-main,
.workbench-side {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.workbench-main {
  grid-template-rows: 1fr auto auto;
}

.workbench-side {
  border-left: 1px solid var(--line);
  background: #fbfcfc;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 8px;
  color: #17202a;
  font-size: 13px;
  font-weight: 780;
}

.panel-head a {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}

.status,
.live {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  color: var(--teal-dark);
  background: #e3f7ef;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.live::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 99px;
  background: #1ac49f;
}

.panel-code pre,
.panel-logs {
  background: var(--code);
}

.panel-code pre {
  margin: 0 10px 10px;
  min-height: 150px;
  padding: 16px 18px;
  overflow: hidden;
  border-radius: 5px;
  color: #d7e6e7;
  font: 12px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.panel-code code {
  white-space: pre-wrap;
}

.panel-flow {
  padding-bottom: 12px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 10px;
  padding: 4px 16px 2px;
}

.flow span {
  position: relative;
  display: grid;
  min-height: 38px;
  place-items: end center;
  color: #26313c;
  font-size: 11px;
  font-weight: 680;
}

.flow span::before {
  content: "";
  position: absolute;
  top: 0;
  width: 17px;
  height: 17px;
  border: 2px solid #0e1a22;
  border-radius: 5px;
}

.flow i {
  display: none;
}

.flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -16px;
  width: 20px;
  border-top: 2px solid var(--teal);
}

.panel-logs {
  padding-bottom: 8px;
  color: #dae5e4;
}

.panel-logs .panel-head {
  color: #fff;
}

.log-row {
  display: grid;
  grid-template-columns: 58px 42px minmax(90px, 1fr) 42px 48px;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  font: 11px/1.2 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.log-row span,
.log-row em,
.log-row small {
  color: #aebec1;
  font-style: normal;
}

.log-row strong {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 4px;
  color: #a7f4cb;
  background: rgba(28, 145, 83, 0.48);
  font-size: 10px;
}

.metric-label {
  margin: 8px 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-value {
  margin: 4px 12px 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.metric-value span {
  color: var(--teal);
  font-size: 13px;
}

.sparkline {
  width: calc(100% - 22px);
  height: 82px;
  margin: 7px 11px;
}

.sparkline path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.metric-grid span {
  min-height: 56px;
  padding: 9px 7px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.metric-grid span:last-child {
  border-right: 0;
}

.metric-grid b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.panel-timeline ol {
  position: relative;
  margin: 2px 12px 14px;
  padding: 0 0 0 20px;
  list-style: none;
}

.panel-timeline ol::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  bottom: 9px;
  border-left: 1px solid #b7d7d0;
}

.panel-timeline li {
  position: relative;
  margin: 12px 0;
}

.panel-timeline li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -19px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--teal);
  border-radius: 99px;
  background: #fff;
}

.panel-timeline li:last-child::before {
  background: var(--teal);
}

.panel-timeline b,
.panel-timeline span {
  display: block;
  font-size: 12px;
}

.panel-timeline span {
  color: var(--muted);
}

.capabilities,
.process,
.proof,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: 28px;
  padding-left: 28px;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 34px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capabilities article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  min-width: 0;
  padding: 4px 34px;
  border-right: 1px solid var(--line);
}

.capabilities article:first-child {
  padding-left: 0;
}

.capabilities article:last-child {
  padding-right: 0;
  border-right: 0;
}

.icon-box {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), #00a995);
}

.icon-box.accent {
  background: linear-gradient(135deg, var(--coral), #ff7b5b);
}

.icon-box svg,
.proof svg,
.email-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box svg {
  width: 25px;
  height: 25px;
}

.capabilities h2,
.process h2,
.proof h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
}

.capabilities p,
.process p,
.proof p,
.contact p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.capabilities ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  color: #42505c;
  font-size: 13px;
  list-style: none;
}

.capabilities li {
  position: relative;
  padding-left: 18px;
}

.capabilities li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 1px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.process {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 54px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  min-width: 0;
}

.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -26px;
  width: 18px;
  border-top: 2px solid var(--line-strong);
}

.process-steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.process-steps h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.process-steps p {
  margin-top: 8px;
  font-size: 13px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.proof article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  padding: 0 42px;
  border-right: 1px solid var(--line);
}

.proof article:first-child {
  padding-left: 150px;
}

.proof article:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof svg {
  width: 38px;
  height: 38px;
  color: var(--teal);
}

.proof article:nth-child(2) svg {
  color: var(--coral);
}

.proof h2 {
  font-size: 17px;
}

.proof p {
  font-size: 13px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 32px;
}

.contact h2 {
  font-size: 24px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #46525f;
  font-size: 15px;
  white-space: nowrap;
}

.email-link svg {
  width: 21px;
  height: 21px;
}

.legal-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.legal-links a:hover,
.simple-page a:hover {
  color: var(--teal-dark);
}

.simple-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 76px 28px 96px;
}

.simple-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  line-height: 1;
}

.simple-page .updated {
  margin: 18px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.simple-page section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.simple-page h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.simple-page p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.simple-page a {
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
  }

  .workbench {
    grid-template-columns: 108px minmax(270px, 1fr) 226px;
  }

  .proof article:first-child {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
  }

  .hero-copy h1 {
    font-size: 68px;
  }

  .hero-line {
    font-size: 26px;
  }

  .workbench {
    grid-template-columns: 96px 1fr;
  }

  .workbench-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .capabilities,
  .process,
  .proof,
  .contact {
    grid-template-columns: 1fr;
  }

  .capabilities article,
  .proof article {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capabilities article:last-child,
  .proof article:last-child {
    border-bottom: 0;
  }

  .process {
    gap: 24px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .process-steps li:not(:last-child)::after {
    display: none;
  }

  .contact {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .capabilities,
  .process,
  .proof,
  .contact,
  .simple-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .header-cta {
    justify-self: start;
  }

  .brand {
    font-size: 24px;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-line {
    font-size: 23px;
  }

  .hero-body {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .workbench {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workbench-rail {
    display: none;
  }

  .workbench-main,
  .workbench-side {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .flow {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 4px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .flow span {
    font-size: 10px;
  }

  .flow span:not(:last-child)::after {
    right: -9px;
    width: 12px;
  }

  .log-row {
    grid-template-columns: 48px 36px minmax(72px, 1fr) 36px;
  }

  .log-row small {
    display: none;
  }

  .capabilities article {
    grid-template-columns: 50px 1fr;
    gap: 16px;
  }

  .proof article {
    grid-template-columns: 42px 1fr;
  }

  .simple-page h1 {
    font-size: 42px;
  }
}

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