:root {
  --paper: #050507;
  --panel: rgba(11, 12, 15, 0.78);
  --ink: #fffaf0;
  --soft: rgba(255, 250, 240, 0.66);
  --faint: rgba(255, 250, 240, 0.38);
  --line: rgba(255, 250, 240, 0.12);
  --line-strong: rgba(255, 250, 240, 0.22);
  --cyan: #8bd7f4;
  --green: #8fd9b4;
  --gold: #efc58f;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --copy: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--copy);
  -webkit-font-smoothing: antialiased;
}

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

.kall-word {
  display: inline-flex;
  align-items: baseline;
  line-height: inherit;
  white-space: nowrap;
}

.kall-word-k {
  display: inline-block;
  margin-right: -0.015em;
  transform: scaleX(-1);
  transform-origin: 50% 56%;
}

button {
  color: inherit;
  font: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 780px;
  height: 780px;
  top: -390px;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 191, 229, 0.13), rgba(95, 191, 229, 0) 67%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.site-header,
main,
footer {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 5px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  color: var(--soft);
  font: 500 10px/1 var(--mono);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.site-header .nav-cta {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.hero {
  min-height: min(790px, calc(100svh - 84px));
  padding: clamp(70px, 9vw, 138px) clamp(0px, 2vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(58px, 9vw, 150px);
}

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

.eyebrow {
  margin: 0;
  color: var(--faint);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span,
.section-intro .eyebrow,
.next-copy .eyebrow {
  color: var(--cyan);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 0;
  margin-top: 24px;
  font-size: clamp(56px, 6.8vw, 108px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
}

.lede {
  max-width: 660px;
  margin: 29px 0 0;
  color: var(--soft);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.58;
  text-wrap: balance;
}

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

.button {
  min-height: 57px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line-strong);
  font: 600 10px/1.3 var(--mono);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-primary {
  min-width: 245px;
  border-color: var(--ink);
  color: #09090b;
  background: var(--ink);
}

.button-secondary {
  min-width: 174px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.02);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 250, 240, 0.55);
  color: var(--ink);
}

.hero-note {
  margin: 19px 0 0;
  color: var(--faint);
  font: 400 9px/1.6 var(--mono);
}

.system-card {
  width: 100%;
  min-height: 470px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(17, 20, 25, 0.86), rgba(4, 4, 6, 0.75));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.33);
}

.system-head,
.system-foot {
  min-height: 48px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--faint);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
}

.system-head {
  border-bottom: 1px solid var(--line);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(143, 217, 180, 0.7);
}

.system-body {
  min-height: 372px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.system-label {
  margin-bottom: 13px;
  color: var(--faint);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
}

.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.workflow-tabs button {
  min-height: 39px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--faint);
  background: transparent;
  font: 500 9px/1 var(--mono);
  cursor: pointer;
}

.workflow-tabs button:hover,
.workflow-tabs button:focus-visible,
.workflow-tabs button.is-active {
  border-color: rgba(139, 215, 244, 0.48);
  color: var(--cyan);
  background: rgba(139, 215, 244, 0.06);
  outline: none;
}

.system-flow {
  padding: 46px 0;
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) 60px minmax(28px, 1fr) auto;
  align-items: center;
}

.flow-node {
  min-width: 54px;
  color: var(--faint);
  font: 500 8px/1 var(--mono);
  text-align: center;
  text-transform: uppercase;
}

.flow-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.flow-line i {
  position: absolute;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: signal 2.2s linear infinite;
}

.flow-line:nth-of-type(4) i {
  animation-delay: 1.1s;
}

.flow-core {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 215, 244, 0.38);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(139, 215, 244, 0.06);
  font: 600 12px/1 var(--mono);
  box-shadow: 0 0 45px rgba(139, 215, 244, 0.08);
}

@keyframes signal {
  from { transform: translateX(-28px); }
  to { transform: translateX(240px); }
}

.system-result {
  min-height: 73px;
  padding: 14px 15px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.system-result span {
  color: var(--faint);
  font: 500 8px/1 var(--mono);
  text-transform: uppercase;
}

.system-result strong {
  color: var(--ink);
  font: 500 11px/1.4 var(--mono);
}

.system-foot {
  min-height: 50px;
  border-top: 1px solid var(--line);
  text-transform: lowercase;
}

.system-foot span:first-child {
  color: var(--gold);
}

.process {
  padding: clamp(86px, 10vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.section-intro,
.next-copy {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.section-intro h2,
.next-copy h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.process-grid {
  margin: clamp(56px, 7vw, 92px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.process-grid li {
  min-height: 205px;
  padding: 21px 22px 24px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.process-grid li:not(:first-child) {
  padding-left: 22px;
}

.process-grid li:last-child {
  border-right: 0;
}

.process-grid span {
  color: var(--cyan);
  font: 500 9px/1 var(--mono);
}

.process-grid strong {
  margin-top: auto;
  font-size: 19px;
  font-weight: 600;
}

.process-grid p {
  max-width: 225px;
  margin: 9px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.next-step {
  margin-bottom: clamp(74px, 8vw, 120px);
  padding: clamp(70px, 8vw, 115px) clamp(26px, 5vw, 76px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(130deg, rgba(139, 215, 244, 0.055), rgba(255, 255, 255, 0.015) 55%, rgba(239, 197, 143, 0.035));
}

.next-options {
  margin-top: clamp(48px, 6vw, 74px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.next-options a {
  position: relative;
  min-height: 170px;
  padding: 24px 50px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-strong);
  transition: background 180ms ease, padding 180ms ease;
}

.next-options a:first-child {
  padding-right: 30px;
  border-right: 1px solid var(--line-strong);
}

.next-options a:last-child {
  padding-left: 30px;
}

.next-options a:hover,
.next-options a:focus-visible {
  background: rgba(255, 255, 255, 0.025);
  outline: none;
}

.option-meta {
  color: var(--faint);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
}

.next-options strong {
  max-width: 420px;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.option-arrow {
  position: absolute;
  right: 18px;
  bottom: 25px;
  color: var(--cyan);
  font: 500 18px/1 var(--mono);
}

footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 400 9px/1.5 var(--mono);
  text-transform: lowercase;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-card {
    max-width: 680px;
  }

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

  .process-grid li:nth-child(2) {
    border-right: 0;
  }

  .process-grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 34px, 1440px);
  }

  .site-header {
    min-height: 70px;
  }

  .brand span {
    display: none;
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 66px 0 82px;
    gap: 58px;
  }

  h1 {
    margin-top: 18px;
    font-size: clamp(49px, 15vw, 70px);
  }

  .lede {
    margin-top: 23px;
    font-size: 15px;
  }

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

  .button {
    min-width: 0;
  }

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

  .system-body {
    min-height: 330px;
    padding: 22px 16px;
  }

  .workflow-tabs button {
    font-size: 8px;
  }

  .system-foot span:last-child {
    display: none;
  }

  .section-intro,
  .next-copy {
    grid-template-columns: 1fr;
  }

  .section-intro h2,
  .next-copy h2 {
    font-size: clamp(40px, 12vw, 56px);
  }

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

  .process-grid li,
  .process-grid li:not(:first-child) {
    min-height: 145px;
    padding: 18px 0 22px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .process-grid li:first-child {
    border-top: 0;
  }

  .next-step {
    padding: 58px 20px;
  }

  .next-options {
    grid-template-columns: 1fr;
  }

  .next-options a,
  .next-options a:first-child,
  .next-options a:last-child {
    min-height: 145px;
    padding: 22px 46px 22px 0;
    border-right: 0;
  }

  .next-options a:last-child {
    border-top: 0;
  }

  footer {
    min-height: 76px;
  }

  footer span:last-child {
    display: none;
  }
}

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

  .flow-line i {
    animation: none;
  }

  .button,
  .next-options a {
    transition: none;
  }
}
