:root {
  color-scheme: light;
  --ink: #172129;
  --ink-strong: #0c141b;
  --muted: #65727a;
  --soft: #f4f6f4;
  --surface: #ffffff;
  --surface-alt: #edf2ef;
  --line: #d9e0dc;
  --teal: #0c6b73;
  --teal-strong: #084d55;
  --teal-soft: #dcefed;
  --sage: #e4ece5;
  --blue-soft: #e8eef5;
  --amber: #c9892b;
  --amber-soft: #fff0d2;
  --graphite: #101820;
  --shadow: 0 18px 45px rgba(15, 26, 33, 0.09);
  --max: 1320px;
  --page-pad: clamp(16px, 3vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px var(--page-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: rgba(20, 32, 41, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: currentColor;
  font-size: 0.75rem;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 650;
  opacity: 0.82;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(12, 107, 115, 0.1);
  outline: none;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 20, 27, 0.96) 0%, rgba(12, 20, 27, 0.86) 44%, rgba(12, 20, 27, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 20, 27, 0.06), rgba(12, 20, 27, 0.42)),
    url("./assets/hero-agentic-platform.png");
  background-position: center right;
  background-size: cover;
  color: #fff;
  padding: 118px var(--page-pad);
}

.hero-inner {
  width: min(1120px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.contact-section h2 {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(2.25rem, 3.975vw, 4.8rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.12rem, 1.25vw, 1.42rem);
  line-height: 1.58;
}

.hero-support {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 0.95vw, 1.16rem);
  line-height: 1.72;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background: var(--amber);
  color: #101820;
}

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

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.contact-section .button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-bottom span {
  min-height: 56px;
  padding: 18px var(--page-pad);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  min-height: 154px;
  background: var(--surface);
  padding: 28px;
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  color: var(--ink-strong);
  font-size: 1rem;
}

.proof-item span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.section {
  padding: 112px var(--page-pad);
}

.section:nth-of-type(odd) {
  background: var(--surface);
}

.split,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 64px;
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.2rem, 3.3vw, 4.4rem);
  line-height: 1.04;
}

h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.18rem;
  line-height: 1.28;
}

p {
  margin: 0;
}

.copy-block p,
.section-heading > p,
.aios-copy p,
.vertical-panel p,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

.copy-block p + p,
.aios-copy p + p {
  margin-top: 18px;
}

.problem-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.problem-grid article,
.service-card,
.contrast-card,
.vertical-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.problem-grid span,
.service-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.problem-grid p,
.service-card p,
.contrast-card li,
.vertical-panel li,
.method-note {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.problem-grid h3,
.service-card h3 {
  margin-bottom: 12px;
}

.formula-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: 36px;
  margin-top: 56px;
}

.formula-card {
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  padding: 34px;
  box-shadow: var(--shadow);
}

.formula-card p {
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.formula-card ul,
.contrast-card ul,
.vertical-panel ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.formula-card li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.formula-card li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.aios-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

.aios-copy h3 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 2.2vw, 3rem);
  line-height: 1.08;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.contrast-card h3 {
  font-size: 1.48rem;
}

.contrast-card li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--line);
}

.contrast-card li::before {
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.contrast-card.strong {
  border-color: rgba(12, 107, 115, 0.22);
  background: var(--teal-soft);
}

.contrast-card.muted {
  background: #f7f7f3;
}

.services-section,
.verticals-section {
  background: var(--surface-alt);
}

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

.service-card.featured {
  background: var(--graphite);
  color: #fff;
}

.service-card.featured h3,
.service-card.featured p {
  color: #fff;
}

.service-card.featured span {
  color: var(--amber);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline article {
  min-height: 272px;
  background: var(--surface);
  padding: 30px;
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.timeline p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.method-note {
  margin-top: 20px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  padding: 20px 24px;
}

.method-note strong {
  color: var(--ink-strong);
}

.vertical-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 54px;
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 750;
  cursor: pointer;
}

.tab-button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.vertical-panel {
  margin-top: 18px;
  min-height: 268px;
}

.vertical-panel h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.8rem);
}

.vertical-panel p {
  max-width: 920px;
  margin-top: 16px;
}

.vertical-panel ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.vertical-panel li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.legacy-section {
  background: var(--surface);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(12, 20, 27, 0.98) 0%, rgba(12, 20, 27, 0.92) 48%, rgba(12, 20, 27, 0.78) 100%),
    url("./assets/hero-agentic-platform.png");
  background-position: center right;
  background-size: cover;
  color: #fff;
  padding: 74px var(--page-pad);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 64px;
  align-items: center;
  max-width: 1180px;
}

.contact-section h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.05rem, 3vw, 4rem);
  line-height: 1.04;
}

.contact-section p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-detail {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 34px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  position: relative;
  min-height: 28px;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  line-height: 1.5;
}

.contact-list li::before {
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.74);
  padding: 28px var(--page-pad);
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .proof-strip,
  .problem-grid,
  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 840px) {
  .site-header {
    min-height: 68px;
    padding-block: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    padding: 14px 22px 22px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 240px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.25vw, 3.15rem);
  }

  .hero-bottom,
  .proof-strip,
  .problem-grid,
  .service-grid,
  .timeline,
  .contrast-grid,
  .vertical-panel ul,
  .formula-layout,
  .split,
  .section-heading,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-bottom span {
    min-height: 46px;
    padding: 14px;
  }

  .section,
  .contact-section {
    padding-block: 74px;
  }

  .contact-detail {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 26px;
    padding-left: 0;
  }

  .split,
  .section-heading {
    gap: 24px;
  }

  .problem-grid,
  .service-grid,
  .timeline,
  .contrast-grid {
    margin-top: 36px;
  }

  .timeline article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .button,
  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    padding-inline: 14px;
  }

  .proof-item,
  .problem-grid article,
  .service-card,
  .contrast-card,
  .vertical-panel,
  .formula-card,
  .timeline article {
    padding: 22px;
  }
}
