:root {
  --bg: #faf8f1;
  --ink: #0f3340;
  --teal: #1f6f6b;
  --gold: #f0b23a;
  --gold-deep: #8a5f0a;
  --card: #fff;
  --muted: #4b6670;
  --sans: "Poppins", system-ui, sans-serif;
  --script: "Kaushan Script", "Segoe Script", cursive;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 8px;
}
.logo {
  font-size: 1.9rem;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.logo b {
  color: var(--teal);
  font-weight: 700;
}
nav {
  display: flex;
  gap: 36px;
}
nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
}
nav a:hover {
  color: var(--teal);
}
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.btn:hover {
  background: #185a57;
}
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 400px) 1fr;
  grid-template-areas: "l p r";
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 100px);
  padding-top: 24px;
  padding-bottom: 32px;
}
.hero-l {
  grid-area: l;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-self: stretch;
  justify-content: center;
  position: relative;
}
.hi {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.3;
  text-transform: none;
}
.stat strong {
  font-size: 2.4rem;
  color: var(--teal);
  font-weight: 600;
}
.curve {
  width: 150px;
  height: auto;
  color: var(--teal);
  overflow: visible;
}
.curve path {
  stroke-dasharray: 6 7;
  animation: draw 2.2s ease-out both;
}
@keyframes draw {
  from {
    stroke-dashoffset: 400;
    stroke-dasharray: 400;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.photo {
  grid-area: p;
  justify-self: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 6px solid #f7e2ad;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.photo span {
  font-size: 6rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -0.04em;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1);
  transform-origin: 50% 40%;
}
.hero-r {
  grid-area: r;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  text-align: right;
  gap: 48px;
  padding: 40px 0 8px;
}
.hero-r p {
  max-width: 26ch;
  margin-left: auto;
  font-weight: 500;
}
.title {
  font-family: var(--script);
  font-size: 2.4rem;
  line-height: 1.1;
}
.title em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--teal);
}
.social {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
}
.social a {
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.social a:hover {
  color: var(--teal);
}
section {
  padding: 88px 0 0;
}
h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.lede {
  max-width: 56ch;
  color: var(--muted);
  margin-bottom: 36px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 51, 64, 0.07);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.card.proj {
  border-left: 6px solid var(--gold);
  border-radius: 6px 14px 14px 6px;
}
.tags {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
}
#contact {
  text-align: center;
  padding-bottom: 72px;
}
#contact .lede {
  margin-inline: auto;
}
#contact .btn {
  font-size: 1.05rem;
  padding: 14px 32px;
}
.companies {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.companies li {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 51, 64, 0.07);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  text-align: center;
}
.companies img {
  max-width: 140px;
  height: 48px;
  width: auto;
  object-fit: contain;
}
.companies span {
  font-weight: 600;
}

.proj-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 16px;
}

.mobile-text {
  display: none;
}

footer {
  border-top: 1px solid #e6e1d0;
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 860px) {
  nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "l" "p" "r";
    min-height: 0;
    text-align: left;
  }
  .photo {
    max-width: 320px;
  }
  .hero-r {
    text-align: left;
    padding: 0;
    gap: 24px;
  }
  .hero-r p {
    margin-left: 0;
  }
  .curve {
    display: none;
  }
  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .curve path {
    animation: none;
  }
}

/* Header: tighter nav once there are more links */
@media (max-width: 1100px) {
  nav {
    gap: 22px;
  }
}
@media (max-width: 1000px) {
  nav {
    display: none;
  }
}
nav a[aria-current="page"] {
  color: var(--teal);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn-alt {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.btn-alt:hover {
  background: var(--teal);
  color: #fff;
}

/* Featured product card (homepage) */
.card.feature {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  border-left: 6px solid var(--teal);
  border-radius: 6px 14px 14px 6px;
}
.feature-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #f7e2ad;
  background: #fff;
  object-fit: cover;
}
.kicker {
  font-family: var(--script);
  font-size: 1.15rem;
  color: var(--gold-deep);
  line-height: 1.2;
}
.card.feature h3 {
  font-size: 1.4rem;
}

/* References */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.card.ref {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 40px;
}
.card.ref::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 22px;
  font-family: var(--script);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
}
.card.ref blockquote p {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}
.ref-by {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #efe9d6;
}
.ref-by img {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  border: 3px solid #f7e2ad;
  object-fit: cover;
}
.ref-by strong {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}
.ref-by span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.ref details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  list-style: none;
}
.ref details summary::-webkit-details-marker {
  display: none;
}
.ref details summary::after {
  content: " +";
}
.ref details[open] summary::after {
  content: " \2212";
}
.ref-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.card.ref .ref-body p {
  font-size: 0.92rem;
}
.ref-src {
  background: none;
  border: 0;
  padding: 0;
  font: 500 0.85rem var(--sans);
  color: var(--gold-deep);
  border-bottom: 2px solid var(--gold);
  cursor: pointer;
  justify-self: start;
}
.ref-src:hover {
  color: var(--teal);
}
.shot {
  margin: auto;
  border: 0;
  padding: 0;
  border-radius: 14px;
  background: #1d1f22;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  box-shadow: 0 20px 60px rgba(15, 51, 64, 0.35);
}
.shot::backdrop {
  background: rgba(15, 51, 64, 0.6);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -46px 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font: 600 1.2rem/1 var(--sans);
  cursor: pointer;
  z-index: 1;
}

/* Diagno page */
.hero.sub {
  min-height: 0;
  padding: 48px 0 24px;
}
.hero.sub .photo {
  max-width: 340px;
  border-color: #f7e2ad;
}
.hero.sub .photo img {
  object-position: 50% 50%;
}
.hero-r .stat {
  justify-content: flex-end;
}
.hero-l .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.term {
  position: relative;
  background: var(--ink);
  color: #e6efe9;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 51, 64, 0.12);
  font: 400 0.85rem/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-x: auto;
}
.term pre {
  margin: 0;
  padding: 22px 24px;
  font: inherit;
  white-space: pre;
}
.copy + pre {
  padding-right: 76px;
}
.term .pr {
  color: var(--gold);
  user-select: none;
}
.term .c {
  color: #8fa9b1;
}
.term .h {
  color: var(--gold);
  font-weight: 700;
}
.term .ok {
  color: #7fd1a8;
}
.term .no {
  color: #f29a7a;
}
.term .add {
  color: #7fd1a8;
}
.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  border-radius: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #e6efe9;
  font: 500 0.75rem var(--sans);
  cursor: pointer;
}
.copy:hover {
  background: var(--gold);
  color: var(--ink);
}
.window {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(15, 51, 64, 0.18);
}
.window img {
  display: block;
  width: 100%;
  height: auto;
}
.grid.four,
.grid.steps {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps .card h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--script);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 4px;
}
.flow {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
  margin-bottom: 36px;
}
.flow li {
  position: relative;
  white-space: nowrap;
  background: var(--card);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(15, 51, 64, 0.07);
}
.flow li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -22px;
  color: var(--gold-deep);
}
.flow li.ai {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--gold);
  border: 0;
}
.flow small {
  color: var(--gold-deep);
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card.alt {
  background: transparent;
  box-shadow: inset 0 0 0 2px #f7e2ad;
}
.card ul {
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}
.card li + li {
  margin-top: 6px;
}
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}
.cols h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
code {
  font: 500 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #f1ecdb;
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
}
.table {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 51, 64, 0.07);
  overflow-x: auto;
}
.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th,
.table td {
  text-align: left;
  padding: 14px 22px;
  vertical-align: top;
}
.table th {
  font-weight: 600;
  background: #f7f2e3;
}
.table tr + tr td {
  border-top: 1px solid #efe9d6;
}
.table td:first-child {
  white-space: nowrap;
}
.table td:last-child {
  color: var(--muted);
}
.roadmap {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.roadmap li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.roadmap li::before {
  content: "\2713";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.roadmap li.todo::before {
  content: "";
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.roadmap li.todo {
  color: var(--muted);
}
#try {
  text-align: center;
  padding-bottom: 72px;
}
#try .lede {
  margin-inline: auto;
}
#try .term {
  max-width: 420px;
  margin: 0 auto 28px;
  text-align: left;
}

@media (max-width: 860px) {
  .card.feature {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-logo {
    width: 88px;
    height: 88px;
  }
  .hero.sub {
    padding-top: 24px;
  }
  .hero.sub .photo {
    max-width: 240px;
  }
  .hero-r .stat {
    justify-content: flex-start;
  }
  .term pre {
    padding: 18px;
  }
}
