:root {
  --orange: #ff7a1a;
  --orange-dark: #cc5d0d;
  --green: #1fa463;
  --green-dark: #157244;
  --ink: #17211b;
  --muted: #5e6b63;
  --surface: #ffffff;
  --page: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --warm: #fff7ef;
  --mint: #eefaf3;
  --line: #dbe7df;
  --shadow: 0 10px 24px rgba(23, 33, 27, 0.06);
  --hero-overlay-a: rgba(255, 255, 255, 0.94);
  --hero-overlay-b: rgba(255, 255, 255, 0.78);
  --hero-overlay-c: rgba(255, 255, 255, 0.42);
  --hero-overlay-d: rgba(255, 250, 246, 0.92);
  --hero-overlay-e: rgba(255, 255, 255, 0.72);
  --hero-image: url("assets/hero-ai-ecosystem.png");
}

[data-theme="dark"] {
  --orange: #ff8a2a;
  --orange-dark: #ffb16f;
  --green: #36c77c;
  --green-dark: #8ce4b3;
  --ink: #f4fbf6;
  --muted: #b6c5bc;
  --surface: #111a15;
  --page: #0c120f;
  --header-bg: rgba(12, 18, 15, 0.92);
  --warm: rgba(255, 138, 42, 0.12);
  --mint: rgba(54, 199, 124, 0.12);
  --line: rgba(214, 235, 222, 0.16);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --hero-overlay-a: rgba(12, 18, 15, 0.92);
  --hero-overlay-b: rgba(12, 18, 15, 0.72);
  --hero-overlay-c: rgba(12, 18, 15, 0.38);
  --hero-overlay-d: rgba(12, 18, 15, 0.84);
  --hero-overlay-e: rgba(12, 18, 15, 0.66);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

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

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

p {
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: #17211b;
  border-radius: 8px;
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--green-dark);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.header-cta {
  color: var(--page);
  background: var(--ink);
  font-size: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: inset -5px -4px 0 rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .theme-toggle-icon {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(54, 199, 124, 0.14);
}

.button.primary {
  color: white;
  background: var(--orange);
}

.button.primary:hover {
  background: var(--orange-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: var(--mint);
  border-color: #bfe8cf;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding: clamp(72px, 8vw, 112px) clamp(28px, 5vw, 96px) clamp(28px, 4vw, 48px);
  background:
    linear-gradient(90deg, var(--hero-overlay-a) 0%, var(--hero-overlay-b) 28%, var(--hero-overlay-c) 52%, var(--hero-overlay-b) 78%, var(--hero-overlay-a) 100%),
    linear-gradient(180deg, var(--hero-overlay-d), var(--hero-overlay-e)),
    var(--hero-image) center center / min(92vw, 1760px) auto no-repeat,
    var(--page);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--page) 82%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow {
  color: var(--green-dark);
  justify-content: center;
}

.hero .eyebrow::before {
  width: 28px;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  border-radius: 999px;
}

h1 {
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: 20px;
  font-size: clamp(44px, 5.2vw, 82px);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.1vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 760px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid rgba(219, 231, 223, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1360px, 100%);
  margin-inline: auto;
  margin-top: clamp(48px, 7vw, 88px);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(23, 33, 27, 0.08);
}

.hero-proof div {
  padding: 22px 28px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

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

.hero-proof strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
}

.hero-proof span {
  color: var(--muted);
  font-size: 14px;
}

.signal-card,
.pillar,
.content-card,
.tool-card,
.path-card,
.process-card,
.quote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.content-card:hover,
.tool-card:hover,
.pillar:hover,
.path-card:hover {
  border-color: rgba(31, 164, 99, 0.34);
  box-shadow: var(--shadow);
}

.signal-card {
  min-height: auto;
  padding: 18px;
  background: var(--surface);
}

.signal-card span,
.path-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.signal-card.orange {
  border-color: rgba(255, 122, 26, 0.32);
  background: var(--warm);
}

.signal-card.green {
  border-color: rgba(31, 164, 99, 0.28);
  background: var(--mint);
}

.signal-card p,
.pillar p,
.content-card p,
.tool-card p,
.path-card p,
.solution-list p,
.about-copy p,
.contact p,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(56px, 7vw, 92px) clamp(22px, 5vw, 72px);
}

.band {
  background: color-mix(in srgb, var(--surface) 74%, var(--page));
  border-block: 1px solid var(--line);
}

.section-heading {
  width: min(1440px, 100%);
  max-width: none;
  margin: 0 auto 38px;
}

.section-heading.split {
  display: flex;
  width: min(1440px, 100%);
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 1.05fr);
  align-items: end;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 18px;
  margin-bottom: 34px;
}

.section-toolbar > div:first-child {
  max-width: 760px;
}

.section-toolbar .filter-row {
  justify-content: flex-end;
  margin-bottom: 4px;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
  white-space: nowrap;
}

.pillar-grid,
.card-grid,
.tool-grid,
.path-grid,
.solution-layout {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.pillar-grid,
.card-grid,
.tool-grid,
.path-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.pillar,
.content-card,
.tool-card,
.path-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: var(--surface);
}

.pillar,
.content-card,
.tool-card,
.path-card,
.solution-list article {
  min-height: 240px;
}

.content-card p,
.tool-card p,
.path-card p,
.pillar p,
.solution-list p {
  margin-bottom: 18px;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: white;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag.orange {
  color: var(--orange-dark);
  background: var(--warm);
}

.card-link {
  margin-top: auto;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 800;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.tool-card {
  min-height: 250px;
}

.tool-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: white;
  background: var(--orange);
  border-radius: 8px;
  font-weight: 800;
}

.tool-card .meta-row {
  margin-bottom: 16px;
}

.tool-card h3 {
  margin-bottom: 12px;
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

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

.solution-list article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-card {
  border-color: var(--ink);
  padding: 22px;
  background: #17211b;
  color: white;
}

.process-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.about,
.contact-inner {
  width: min(1440px, calc(100% - clamp(44px, 10vw, 144px)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.quote-card {
  padding: 26px;
  color: white;
  background: var(--green-dark);
}

.quote-card p {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
  text-wrap: balance;
}

.contact {
  background: #17211b;
  color: white;
}

section.contact {
  width: auto;
  margin-inline: 0;
}

.contact p,
.contact .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted) !important;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

@media (max-width: 1060px) {
  .header-cta {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .brand {
    order: 1;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
    order: 3;
    margin-left: 0;
  }

  .site-header.open {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-header.open .site-nav {
    display: grid;
    order: 4;
    width: 100%;
    gap: 12px;
    padding: 12px 0 4px;
  }

  .hero,
  .about,
  .contact-inner,
  .solution-layout {
    grid-template-columns: 1fr;
  }

  .about,
  .contact-inner {
    width: min(1440px, calc(100% - 44px));
  }

  .hero {
    padding-bottom: 34px;
    background:
      linear-gradient(180deg, var(--hero-overlay-a) 0%, var(--hero-overlay-b) 46%, var(--hero-overlay-e) 100%),
      var(--hero-image) center bottom / 760px auto no-repeat,
      var(--page);
  }

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

  .section-toolbar {
    grid-template-columns: 1fr;
  }

  .section-toolbar .filter-row {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .hero {
    padding-top: 42px;
    padding-bottom: 26px;
    background:
      linear-gradient(180deg, var(--hero-overlay-a) 0%, var(--hero-overlay-b) 52%, var(--hero-overlay-e) 100%),
      var(--hero-image) center bottom / 620px auto no-repeat,
      var(--page);
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .eyebrow {
    font-size: 12px;
  }

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

  .hero-proof {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-proof div {
    padding: 14px 16px;
  }

  .section-heading.split,
  .site-footer {
    display: grid;
  }

  .section-heading,
  .section-heading.split,
  .pillar-grid,
  .card-grid,
  .tool-grid,
  .path-grid,
  .solution-layout {
    width: 100%;
  }

  .pillar-grid,
  .card-grid,
  .tool-grid,
  .path-grid,
  .solution-list {
    grid-template-columns: 1fr;
  }

  .quote-card p {
    font-size: 22px;
  }
}
