:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #121417;
  --muted: #5e6872;
  --line: #dfe5de;
  --hero-shade-a: rgba(10, 14, 18, 0.92);
  --hero-shade-b: rgba(10, 14, 18, 0.58);
  --hero-shade-c: rgba(10, 14, 18, 0.1);
  --green: #0d7559;
  --coral: #db6048;
  --blue: #236fb6;
  --gold: #a77c27;
  --violet: #6452d9;
  --dark-panel: #141b24;
  --shadow: 0 22px 58px rgba(17, 24, 33, 0.12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --surface: #141a22;
  --surface-soft: #192231;
  --ink: #f3f6f2;
  --muted: #a8b4bf;
  --line: #2a3442;
  --hero-shade-a: rgba(5, 8, 12, 0.94);
  --hero-shade-b: rgba(5, 8, 12, 0.72);
  --hero-shade-c: rgba(5, 8, 12, 0.24);
  --green: #19a678;
  --coral: #ef735c;
  --blue: #5fa8f2;
  --gold: #d0a64a;
  --violet: #9387ff;
  --dark-panel: #10151d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8dffd6;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 68px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 12px 38px rgba(17, 24, 33, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--coral));
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 750;
}

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

.theme-toggle,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.theme-toggle {
  width: 52px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header.is-scrolled .theme-toggle,
.site-header.is-open .theme-toggle {
  border-color: var(--line);
}

.theme-toggle-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 180ms ease;
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(14px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111821;
}

.hero picture,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture {
  display: block;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, var(--hero-shade-a) 0%, var(--hero-shade-b) 46%, var(--hero-shade-c) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 92px);
  padding-top: 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow,
.ai-band .eyebrow,
.cta .eyebrow {
  color: #8dffd6;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 18px 38px rgba(12, 122, 90, 0.24);
}

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

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.signal-strip div {
  padding: 24px clamp(20px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

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

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: clamp(72px, 10vw, 126px) clamp(20px, 6vw, 76px);
  scroll-margin-top: 76px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow),
.feature-panel p,
.cta p {
  color: var(--muted);
  font-size: 1.04rem;
}

.compact {
  margin-bottom: 26px;
}

.service-grid,
.client-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}

.service-card,
.client-grid article,
.process-grid article {
  content-visibility: auto;
  contain-intrinsic-size: 260px;
  min-height: 248px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(17, 24, 33, 0.06);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .client-grid article,
[data-theme="dark"] .process-grid article {
  box-shadow: none;
}

.card-icon,
.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  margin-bottom: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.service-card:nth-child(2) .card-icon,
.process-grid article:nth-child(2) span {
  background: var(--green);
}

.service-card:nth-child(3) .card-icon,
.process-grid article:nth-child(3) span {
  background: var(--coral);
}

.service-card:nth-child(4) .card-icon,
.process-grid article:nth-child(4) span {
  background: var(--gold);
}

.service-card:nth-child(5) .card-icon {
  background: var(--violet);
}

.service-card:nth-child(6) .card-icon {
  background: var(--green);
}

.service-card p,
.client-grid p,
.process-grid p,
.trust-list {
  color: var(--muted);
}

.ai-band {
  color: #fff;
  background: var(--dark-panel);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.ai-band p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-list span {
  color: #8dffd6;
  font-weight: 850;
}

.feature-list strong {
  text-align: right;
}

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

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

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

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

.trust-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(54px, 8vw, 90px) clamp(20px, 6vw, 76px);
  color: #fff;
  background: linear-gradient(110deg, #0f5d4d, #172029 58%, #713c31);
}

.cta div {
  max-width: 760px;
}

.cta p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 76px);
  color: var(--muted);
  background: var(--surface);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .signal-strip,
  .feature-panel,
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

  .cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px 12px;
    color: var(--ink);
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

  .hero-shade {
    background: linear-gradient(90deg, var(--hero-shade-a), var(--hero-shade-b));
  }

  .button {
    width: 100%;
  }

  .feature-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .feature-list strong {
    text-align: left;
  }
}

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