@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --paper-2: #eeeee7;
  --paper-3: #ffffff;
  --ink: #090b0b;
  --muted: #666b68;
  --soft: #8c918d;
  --line: #d8dad2;
  --line-dark: rgba(255, 255, 255, 0.13);
  --kernel: #080c0d;
  --kernel-2: #101516;
  --kernel-text: #f4f7f2;
  --kernel-muted: #9ca59f;
  --green: #36c84b;
  --green-soft: rgba(54, 200, 75, 0.12);
  --accent: #111;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 24px 70px rgba(12, 17, 16, 0.12);
  font-family: Mulish, Muli, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

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

/*
  No global tech grid: the page shell is a soft industrial surface, while the
  technical texture stays inside dark kernel blocks.
*/
body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.9), transparent 34rem),
    radial-gradient(ellipse at 82% 16%, rgba(205, 210, 201, 0.58), transparent 38rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(238, 239, 232, 0.5) 42%, rgba(220, 223, 216, 0.54) 100%),
    linear-gradient(180deg, var(--paper) 0%, #edede7 52%, #f8f8f4 100%);
  background-attachment: fixed;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(115deg, transparent 0%, rgba(9, 11, 11, 0.04) 44%, transparent 45%, transparent 100%),
    radial-gradient(circle at 20% 30%, rgba(9, 11, 11, 0.035) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.58) 0 0.8px, transparent 0.9px);
  background-size: auto, 4px 4px, 5px 5px;
  mix-blend-mode: multiply;
  content: "";
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(185, 189, 180, 0.72);
  background: rgba(247, 247, 242, 0.78);
  backdrop-filter: blur(18px) saturate(1.08);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

body.menu-open .nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 240, 233, 0.98)),
    var(--paper);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.mono,
.eyebrow,
.status-strip,
.kernel,
.tech-tags,
.case-number,
.module-code,
.form-status {
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  min-height: 72px;
  align-items: center;
  gap: 24px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding-right: 13px;
  padding-bottom: 3px;
  font-family: Mulish, Muli, ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.brand::before {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 1px;
  height: 2px;
  border-radius: 99px;
  background: var(--green);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  content: "";
}

.brand::after {
  position: absolute;
  top: 50%;
  right: 1px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(54, 200, 75, 0);
  transform: translateY(-45%);
  transform-origin: center;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    border-radius 220ms ease;
  content: "";
}

.brand:hover,
.brand:focus-visible {
  transform: translateX(1px);
}

.brand:hover::before,
.brand:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.brand:hover::after,
.brand:focus-visible::after {
  border-radius: 3px;
  box-shadow: 0 0 0 6px rgba(54, 200, 75, 0.1);
  transform: translate(3px, -45%) scale(1.25);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  color: #161918;
  font-size: 14px;
  font-weight: 600;
}

.nav-label {
  display: none;
}

.nav a {
  position: relative;
  padding: 27px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (min-width: 821px) {
  .site-header {
    position: fixed;
    right: auto;
    bottom: 0;
    left: 0;
    width: 264px;
    border-right: 1px solid rgba(185, 189, 180, 0.76);
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(236, 237, 230, 0.7)),
      rgba(247, 247, 242, 0.82);
  }

  main,
  .footer {
    margin-left: 264px;
  }

  .header-inner {
    display: flex;
    width: auto;
    height: 100vh;
    min-height: 640px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px 20px;
  }

  .brand {
    flex: 0 0 auto;
    margin-bottom: 34px;
  }

  .nav {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    justify-content: stretch;
    gap: 4px;
    overflow-y: auto;
    padding-right: 2px;
    color: #2f3632;
    font-size: 14px;
  }

  .nav-label {
    display: block;
    margin: 22px 0 8px;
    color: #778079;
    font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .nav-label:first-child {
    margin-top: 0;
  }

  .nav a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0 11px;
    font-weight: 700;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .nav a::after {
    position: static;
    width: auto;
    height: auto;
    margin-left: 12px;
    background: transparent;
    color: #9aa29b;
    content: "↗";
    transform: none;
    transition: color 180ms ease, transform 180ms ease;
  }

  .nav a[href^="#"]::after,
  .nav a[href^="/#"]::after {
    content: "↓";
  }

  .nav a:hover,
  .nav a.is-active {
    border-color: rgba(9, 11, 11, 0.1);
    background: rgba(255, 255, 255, 0.52);
  }

  .nav a:hover::after,
  .nav a.is-active::after {
    color: var(--green);
    transform: translate(2px, -2px);
  }

  .nav a[href^="#"]:hover::after,
  .nav a[href^="/#"]:hover::after {
    transform: translateY(2px);
  }

  .header-actions {
    display: grid;
    flex: 0 0 auto;
    justify-content: stretch;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }

  .header-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
  }
}

.btn,
.icon-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 22px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover,
.icon-link:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: var(--kernel);
  background: var(--kernel);
  color: var(--kernel-text);
  box-shadow: 0 14px 34px rgba(8, 12, 13, 0.16);
}

.btn-primary .arrow,
.kernel .arrow {
  color: var(--green);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.24);
}

.arrow {
  font-size: 19px;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);
  gap: clamp(38px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 84px) 0 34px;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: #555c57;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  content: "";
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5.45vw, 84px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.proof-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 58px;
}

.proof-points p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  color: #4d5550;
  font-size: 14px;
  line-height: 1.45;
}

.proof-points p::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: var(--green);
  content: "";
}

.kernel {
  position: relative;
  overflow: hidden;
  border: 1px solid #202829;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, rgba(54, 200, 75, 0.1), transparent 34%),
    var(--kernel);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--kernel-text);
  box-shadow: var(--shadow);
  animation: kernel-assemble 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center;
}

.kernel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(54, 200, 75, 0.08), transparent);
  opacity: 0;
  transform: translateX(-55%);
  animation: kernel-scan 1250ms cubic-bezier(0.2, 0.8, 0.2, 1) 620ms both;
  content: "";
}

.kernel-head,
.kernel-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--kernel-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: kernel-item-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) 260ms both;
}

.kernel-head span:last-child,
.ok {
  color: var(--green);
}

.kernel-head span:last-child::before,
.status-dot::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 99px;
  background: var(--green);
  content: "";
}

.kernel-head span:last-child::before {
  animation: kernel-status-pulse 2.4s ease-in-out 1.6s infinite;
}

.kernel-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 330px;
  padding: 26px 26px 18px;
  gap: 22px;
  align-items: center;
}

.kernel-grid::before,
.kernel-grid::after {
  display: none;
}

.kernel-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.hero > .kernel:not(.product-kernel) .kernel-col::before {
  position: absolute;
  top: 43px;
  bottom: 43px;
  width: 1px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  animation: kernel-bus-in 520ms ease-out 1320ms both, kernel-trace-idle 5.4s ease-in-out 3.2s infinite;
  content: "";
}

.hero > .kernel:not(.product-kernel) .kernel-col:first-child::before {
  right: -12px;
}

.hero > .kernel:not(.product-kernel) .kernel-col:last-child::before {
  left: -12px;
}

.kernel-node {
  position: relative;
  z-index: 1;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  animation: kernel-node-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero > .kernel:not(.product-kernel) .kernel-node::before {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
  animation: kernel-branch-in 420ms ease-out 1420ms both, kernel-trace-idle 5.4s ease-in-out 3.2s infinite;
  content: "";
}

.hero > .kernel:not(.product-kernel) .kernel-col:first-child .kernel-node::before {
  right: -13px;
  transform-origin: left;
}

.hero > .kernel:not(.product-kernel) .kernel-col:last-child .kernel-node::before {
  left: -13px;
  transform-origin: right;
}

.kernel-col:first-child .kernel-node:nth-child(1) {
  animation-delay: 620ms;
}

.kernel-col:first-child .kernel-node:nth-child(2) {
  animation-delay: 760ms;
}

.kernel-col:first-child .kernel-node:nth-child(3) {
  animation-delay: 900ms;
}

.kernel-col:last-child .kernel-node:nth-child(1) {
  animation-delay: 1260ms;
}

.kernel-col:last-child .kernel-node:nth-child(2) {
  animation-delay: 1400ms;
}

.kernel-col:last-child .kernel-node:nth-child(3) {
  animation-delay: 1540ms;
}

.kernel-node strong,
.api-core strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kernel-node small,
.api-core small {
  color: var(--kernel-muted);
  font-size: 13px;
}

.kernel-node::after {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  animation: kernel-dot-on 420ms ease-out 1.7s both, kernel-status-pulse 2.8s ease-in-out 3s infinite;
  content: "";
}

.api-core {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 142px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
  animation: kernel-core-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 980ms both, kernel-core-idle 4.8s ease-in-out 3.1s infinite;
}

.hero > .kernel:not(.product-kernel) .api-core::before,
.hero > .kernel:not(.product-kernel) .api-core::after {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
  animation: kernel-branch-in 520ms ease-out 1260ms both, kernel-trace-idle 5.4s ease-in-out 3.2s infinite;
  content: "";
}

.hero > .kernel:not(.product-kernel) .api-core::before {
  right: 100%;
  transform-origin: right;
}

.hero > .kernel:not(.product-kernel) .api-core::after {
  left: 100%;
  transform-origin: left;
}

.api-core .ok {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

.messengers {
  margin: 0 26px 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  animation: kernel-item-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 1780ms both;
}

.messengers strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.messenger-list,
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.messenger-list span,
.tech-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  padding: 0 9px;
  color: var(--kernel-muted);
  font-size: 12px;
}

.messengers .messenger-list span {
  animation: kernel-chip-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.messengers .messenger-list span:nth-child(1) {
  animation-delay: 2020ms;
}

.messengers .messenger-list span:nth-child(2) {
  animation-delay: 2080ms;
}

.messengers .messenger-list span:nth-child(3) {
  animation-delay: 2140ms;
}

.messengers .messenger-list span:nth-child(4) {
  animation-delay: 2200ms;
}

.messengers .messenger-list span:nth-child(5) {
  animation-delay: 2260ms;
}

.logs {
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line-dark);
  animation: kernel-item-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 2260ms both;
}

.logs-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--kernel-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logs code {
  display: grid;
  gap: 7px;
  color: #b9c3bd;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

.logs code span {
  animation: kernel-log-in 360ms steps(1, end) both;
}

.logs code span:nth-child(1) {
  animation-delay: 2480ms;
}

.logs code span:nth-child(2) {
  animation-delay: 2600ms;
}

.logs code span:nth-child(3) {
  animation-delay: 2720ms;
}

.logs code span:nth-child(4) {
  animation-delay: 2840ms;
}

.logs code span:nth-child(5) {
  animation-delay: 2960ms;
}

.logs code span:nth-child(6) {
  animation-delay: 3080ms;
}

.logs b {
  color: var(--green);
  font-weight: 700;
}

@keyframes kernel-assemble {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kernel-scan {
  0% {
    opacity: 0;
    transform: translateX(-65%);
  }

  26%,
  58% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(65%);
  }
}

@keyframes kernel-item-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kernel-node-in {
  from {
    opacity: 0;
    transform: translateY(8px);
    border-color: rgba(255, 255, 255, 0.04);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.17);
  }
}

@keyframes kernel-core-in {
  from {
    opacity: 0;
    transform: scale(0.96);
    border-color: rgba(54, 200, 75, 0.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

@keyframes kernel-core-idle {
  0%,
  100% {
    background-color: rgba(255, 255, 255, 0.045);
  }

  50% {
    background-color: rgba(54, 200, 75, 0.065);
  }
}

@keyframes kernel-traces-left {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes kernel-traces-right {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes kernel-bus-in {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 0.5;
    transform: scaleY(1);
  }
}

@keyframes kernel-branch-in {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }

  to {
    opacity: 0.5;
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes kernel-trace-idle {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.48;
  }
}

@keyframes kernel-dot-on {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

  60% {
    opacity: 1;
    transform: scale(1.35);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes kernel-status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(54, 200, 75, 0);
    opacity: 1;
  }

  45% {
    box-shadow: 0 0 0 5px rgba(54, 200, 75, 0.1);
    opacity: 0.82;
  }
}

@keyframes kernel-chip-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kernel-log-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.status-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
  color: #666d68;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-strip .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  min-height: 54px;
  align-items: center;
}

.section {
  padding: clamp(72px, 8vw, 116px) 0 0;
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 34px;
}

.section-top p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-label {
  margin-bottom: 18px;
  color: #303735;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directions {
  display: grid;
  border-top: 1px solid var(--line);
}

.direction-row {
  display: grid;
  grid-template-columns: 72px minmax(170px, 0.65fr) minmax(220px, 1fr) minmax(220px, 0.9fr) 36px;
  gap: 24px;
  align-items: center;
  min-height: 136px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.direction-row:hover .row-arrow,
.case-link:hover .row-arrow {
  transform: translate(3px, -3px);
}

.row-number {
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
}

.direction-row h3 {
  margin-bottom: 0;
}

.direction-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.row-arrow {
  justify-self: end;
  color: var(--ink);
  font-size: 26px;
  transition: transform 180ms ease;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.case-card {
  display: grid;
  gap: 15px;
  color: inherit;
}

.case-shot {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 234, 226, 0.72)),
    var(--paper-2);
}

.case-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 240ms ease;
}

.case-card:hover img {
  transform: scale(1.02);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.case-number {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.case-card h3 {
  margin-bottom: 7px;
}

.case-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.case-description {
  max-width: 640px;
}

.case-tags,
.stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.case-tags span,
.stack-line span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 8px;
  color: #5b635f;
  background: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.archive {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.archive-row {
  display: grid;
  grid-template-columns: 54px minmax(160px, 0.6fr) minmax(160px, 1fr) minmax(120px, 0.35fr) 36px;
  gap: 22px;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.archive-row p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.process-step {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.process-step span {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 800;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 58px);
  background: var(--paper-3);
  box-shadow: var(--shadow);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: var(--ink);
  font-weight: 700;
}

.contact-links span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #3d4440;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  background: #fbfbf7;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-status {
  color: var(--muted);
  font-size: 12px;
}

.footer {
  margin-top: 92px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.product-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 0.9fr);
  min-height: auto;
}

.product-kernel .kernel-grid {
  grid-template-columns: 1fr 1fr;
  min-height: auto;
}

.product-kernel .kernel-grid::before,
.product-kernel .kernel-grid::after {
  display: none;
}

.product-kernel .api-core {
  min-height: 112px;
}

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

.feature {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.28);
}

.feature p {
  color: var(--muted);
  line-height: 1.58;
}

@media (max-width: 1100px) {
  .hero,
  .product-hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .kernel {
    max-width: 760px;
  }

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

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    background: var(--paper);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav a::after {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .proof-points,
  .works-grid,
  .process-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .kernel-grid,
  .product-kernel .kernel-grid {
    grid-template-columns: 1fr;
  }

  .hero > .kernel:not(.product-kernel) .kernel-col::before,
  .hero > .kernel:not(.product-kernel) .kernel-node::before,
  .hero > .kernel:not(.product-kernel) .api-core::before,
  .hero > .kernel:not(.product-kernel) .api-core::after {
    display: none;
  }

  .status-strip .container {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .direction-row,
  .archive-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .row-arrow {
    justify-self: start;
  }

  .archive-row {
    padding: 22px 0;
  }

  .section-top,
  .footer .container {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 38px;
  }

  .btn {
    width: 100%;
  }

  .actions {
    width: 100%;
  }

  .kernel-head,
  .kernel-footer,
  .logs-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kernel-grid,
  .logs {
    padding-right: 18px;
    padding-left: 18px;
  }

  .messengers {
    margin-right: 18px;
    margin-left: 18px;
  }

  .contact-panel {
    padding: 22px;
  }
}

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

  .kernel::after,
  .kernel-grid::before,
  .kernel-grid::after {
    display: none;
  }
}
