:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #eef4f6;
  --text: #0d1521;
  --muted: #5e6876;
  --line: rgba(13, 21, 33, 0.14);
  --line-strong: rgba(13, 21, 33, 0.22);
  --brand: #0891b2;
  --brand-strong: #066a84;
  --accent: #19b978;
  --accent-strong: #0d8b5d;
  --warm: #d88922;
  --ink: #07111f;
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.14);
  --radius: 8px;
  --header-height: 76px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1119;
  --surface: #101923;
  --surface-strong: #162232;
  --text: #edf6f7;
  --muted: #aeb9c5;
  --line: rgba(237, 246, 247, 0.16);
  --line-strong: rgba(237, 246, 247, 0.26);
  --brand: #34c6df;
  --brand-strong: #78dff0;
  --accent: #4ee6b8;
  --accent-strong: #92f0d2;
  --warm: #f4b454;
  --ink: #060a10;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 62%, white);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.22);
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small {
  color: var(--muted);
  font-weight: 700;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.main-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-strong);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.nav-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.icon-button:hover,
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  place-items: center;
  gap: 4px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("../img/hero-xds.png");
  background-position: 58% center;
  background-size: cover;
  filter: saturate(1.04) contrast(1.03);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 11, 20, 0.93) 0%, rgba(4, 11, 20, 0.75) 40%, rgba(4, 11, 20, 0.24) 100%),
    linear-gradient(180deg, rgba(4, 11, 20, 0.24) 0%, rgba(4, 11, 20, 0.72) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0 80px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

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

.hero h1,
.section-heading h2,
.focus-copy h2,
.brief-intro h2 {
  margin: 0;
  line-height: 1.05;
  font-weight: 900;
}

.hero h1 {
  max-width: 720px;
  font-size: 4rem;
}

.hero-lede {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #041018;
  box-shadow: 0 16px 34px rgba(25, 185, 120, 0.28);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span,
.add-ons span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 0.86rem;
}

.pipeline-panel {
  justify-self: end;
  width: min(100%, 390px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(8, 18, 31, 0.72);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.panel-topline,
.pipeline-step {
  display: flex;
  align-items: center;
}

.panel-topline {
  justify-content: space-between;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.panel-topline strong {
  color: var(--accent);
  font-size: 1.25rem;
}

.pipeline-step {
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.pipeline-step + .pipeline-step {
  margin-top: 10px;
}

.pipeline-step strong,
.pipeline-step small {
  display: block;
}

.pipeline-step small {
  color: rgba(255, 255, 255, 0.68);
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  flex: 0 0 auto;
}

.pipeline-step.is-active .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(78, 230, 184, 0.12);
}

.metrics {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.metric {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.section,
.brief-section {
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.focus-copy h2,
.brief-intro h2 {
  font-size: 2.45rem;
}

.section-heading p:not(.eyebrow),
.focus-copy p:not(.eyebrow),
.brief-intro p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid,
.pricing-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

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

.service-card,
.pricing-card,
.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
}

.service-card {
  min-height: 240px;
  padding: 22px;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand);
  font-weight: 900;
}

.service-card h3,
.pricing-card h3,
.process-step h3,
.form-section h3 {
  margin: 0;
  line-height: 1.2;
}

.service-card p,
.process-step p {
  margin: 12px 0 0;
  color: var(--muted);
}

.industry-focus {
  padding: 82px 0;
  background: var(--ink);
  color: #ffffff;
}

.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 44px;
  align-items: center;
}

.focus-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

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

.focus-list div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.focus-list strong,
.focus-list span {
  display: block;
}

.focus-list strong {
  color: var(--accent);
}

.focus-list span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

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

.pricing-card {
  position: relative;
  padding: 24px;
}

.pricing-card.featured {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: var(--shadow);
}

.featured-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warm) 18%, var(--surface));
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 900;
}

.pricing-head p {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 900;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.add-ons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.add-ons span {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.process {
  background: var(--surface-strong);
}

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

.process-step {
  padding: 20px;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand);
  font-weight: 900;
}

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

.brief-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.brief-intro {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.brief-note {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: var(--surface-strong);
  border-radius: var(--radius);
}

.brief-note span {
  color: var(--muted);
}

.brief-form {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.form-section {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-section h3 {
  font-size: 1.16rem;
}

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

label,
fieldset {
  min-width: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
}

label span,
legend {
  font-size: 0.9rem;
}

.field-wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 9px;
  font-weight: 900;
}

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

.choice-grid label {
  min-height: 48px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.choice-grid label:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.choice-grid input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.file-field small {
  color: var(--muted);
  font-weight: 700;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--brand);
}

.form-submit {
  width: 100%;
}

.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-alert-error {
  border: 1px solid rgba(220, 38, 38, 0.32);
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

html[data-theme="dark"] .form-alert-error {
  color: #fecaca;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

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

.site-footer a {
  color: var(--accent);
  font-weight: 900;
}

.thank-you {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 78px 0;
  background: var(--surface);
}

.thank-you-box {
  max-width: 720px;
}

.thank-you-box h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
}

.thank-you-box p {
  color: var(--muted);
  font-size: 1.08rem;
}

.lead-code {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  font-weight: 900;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero-grid,
  .focus-grid,
  .brief-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .pipeline-panel {
    justify-self: start;
  }

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

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

  .brief-intro {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: auto auto 1fr;
    padding: 10px 14px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 12px auto 12px;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    justify-content: center;
  }

  .nav-actions {
    justify-self: end;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-grid {
    padding: 54px 0 44px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    border: 0;
  }

  .metric {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .brief-section,
  .industry-focus {
    padding: 62px 0;
  }

  .section-heading h2,
  .focus-copy h2,
  .brief-intro h2 {
    font-size: 2rem;
  }

  .service-grid,
  .pricing-grid,
  .process-grid,
  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .brief-form {
    padding: 18px;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-media {
    background-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 11, 20, 0.94) 0%, rgba(4, 11, 20, 0.88) 58%, rgba(4, 11, 20, 0.52) 100%),
      linear-gradient(180deg, rgba(4, 11, 20, 0.18) 0%, rgba(4, 11, 20, 0.78) 100%);
  }

  .hero h1 {
    font-size: 2.28rem;
  }

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

  .pipeline-panel {
    padding: 14px;
  }

  .thank-you-box h1 {
    font-size: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
