:root {
  --bg: #ffffff;
  --ink: #08090a;
  --text: #191d21;
  --muted: #606a73;
  --line: #dfe5eb;
  --line-strong: #c9d3dc;
  --surface: #f5f8fa;
  --blue: #0c8fe8;
  --blue-deep: #0967b3;
  --green: #139a43;
  --white: #ffffff;
  --content: 1080px;
  --radius: 8px;
  --shadow: 0 20px 55px rgba(22, 35, 48, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(8, 9, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 460px);
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: "Archivo", "Inter", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1;
}

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

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

::selection {
  color: var(--white);
  background: var(--blue);
}

:focus-visible {
  outline: 3px solid rgba(12, 143, 232, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
}

.skip:focus {
  left: 12px;
}

.wrap {
  width: min(100% - 32px, var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(170%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand img {
  width: 100px;
  height: auto;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.back svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.back:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  color: var(--white);
  background: var(--ink);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.case-hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pill {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
}

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 154, 67, 0.1);
}

.case-hero h1 {
  max-width: 18ch;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 0.98;
}

.case-hero .lede {
  max-width: 68ch;
  margin-top: 26px;
  color: var(--text);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.42;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metrics div {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--ink);
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

section {
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 30px;
}

.sec-no {
  color: var(--blue);
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 0.85;
}

.sec-head h2 {
  max-width: 22ch;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
}

.prose p {
  max-width: 72ch;
  color: var(--text);
  font-size: 17.5px;
  line-height: 1.55;
}

.prose p + p {
  margin-top: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: start;
}

.build-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 15.5px;
  line-height: 1.45;
}

.build-list b {
  color: var(--blue);
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

.panel ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
}

.panel li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.panel li span {
  color: var(--green);
  font-weight: 900;
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
  overflow: hidden;
}

.flow div {
  padding: 20px 18px;
  background: var(--white);
}

.flow h4 {
  color: var(--blue);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.flow strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.flow p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack span {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.note {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 18px;
  margin-top: 30px;
  padding: 18px 0;
}

.note::before {
  content: "";
  background: var(--blue);
  border-radius: 4px;
}

.note p {
  max-width: 70ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.case-cta {
  padding: 62px 0 72px;
  border-bottom: 0;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
}

.cta-panel h2 {
  color: var(--white);
  max-width: 20ch;
  font-size: clamp(28px, 3.2vw, 40px);
}

.cta-panel p {
  max-width: 56ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.5;
}

.cta-panel .btn {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.next-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.next-case small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.next-case svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--blue-deep);
  transition: transform 0.18s var(--ease);
}

.next-case:hover {
  border-color: var(--blue);
}

.next-case:hover svg {
  transform: translateX(4px);
}

.next-case strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.footer {
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav {
    min-height: 62px;
  }

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

  .nav {
    justify-content: space-between;
  }

  .case-hero {
    padding: 34px 0 34px;
  }

  .case-hero h1 {
    max-width: none;
    font-size: clamp(27px, 8.2vw, 38px);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .case-hero .lede {
    margin-top: 20px;
    font-size: 17px;
  }

  .meta-line {
    gap: 8px;
    margin-bottom: 20px;
  }

  .prose p {
    font-size: 16.5px;
  }

  section {
    padding: 44px 0;
  }

  .build-list li {
    font-size: 15px;
  }
}
