:root {
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAFAF7;
  --color-bg-tint: #E8F0ED;
  --color-text: #0A0A0A;
  --color-text-muted: #6B7280;
  --color-accent: #0F4C3A;
  --color-accent-soft: #7BA098;
  --color-border: rgba(10, 10, 10, 0.08);
  --color-header-bg: rgba(255, 255, 255, 0.85);
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--color-accent);
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 10px 16px;
  transition: transform 250ms ease-out;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease-out, border-color 250ms ease-out, backdrop-filter 250ms ease-out;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 24px;
}

.brand {
  color: var(--color-text);
  font-weight: 500;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.nav-links a,
.footer-col a {
  transition: color 250ms ease-out;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 9999px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 250ms ease-out, transform 250ms ease-out;
}

.nav-cta:hover,
.button-primary:hover {
  color: var(--color-bg);
  transform: translateY(-1px);
}

.menu-toggle {
  display: grid;
  position: fixed;
  top: 14px;
  right: auto;
  left: min(calc(100vw - 56px), 319px);
  z-index: 60;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--color-text);
  transition: transform 250ms ease-out;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 96px 24px 48px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0 24px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 250ms ease-out, background-color 250ms ease-out, color 250ms ease-out, transform 250ms ease-out;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 500;
}

.hero {
  min-height: min(100svh, 960px);
  display: grid;
  align-items: center;
  padding: 128px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero h1,
.hero-sub {
  overflow-wrap: normal;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 80px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--color-accent-soft);
  background:
    radial-gradient(circle at 50% 50%, var(--color-bg-tint) 0 1px, transparent 1px),
    var(--color-bg-warm);
  background-size: 28px 28px, auto;
  border-radius: 50%;
  overflow: hidden;
}

.network-svg {
  width: min(100%, 480px);
  height: auto;
}

.network-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.network-nodes circle {
  fill: var(--color-accent);
}

.js .network-nodes circle {
  opacity: 0;
}

.network-svg.is-ready .network-lines path {
  animation: draw-network 1500ms ease-out forwards;
}

.network-svg.is-ready .network-nodes circle {
  animation: node-in 350ms ease-out forwards;
}

.network-svg.is-ready .network-nodes circle:nth-child(1) {
  animation-delay: 1500ms;
}

.network-svg.is-ready .network-nodes circle:nth-child(2) {
  animation-delay: 1600ms;
}

.network-svg.is-ready .network-nodes circle:nth-child(3) {
  animation-delay: 1700ms;
}

.network-svg.is-ready .network-nodes circle:nth-child(4) {
  animation-delay: 1800ms;
}

.network-svg.is-ready .network-nodes circle:nth-child(5) {
  animation-delay: 1900ms;
}

.network-svg.is-ready .network-nodes circle:nth-child(6) {
  animation-delay: 2000ms;
}

@keyframes draw-network {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.section {
  padding: 120px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-heading h2,
.why h2,
.contact-copy h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p,
.contact-copy p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--color-text-muted);
}

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

.service-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 296px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 250ms ease-out, transform 250ms ease-out;
}

.service-card:hover {
  border-color: var(--color-accent-soft);
  transform: scale(1.01);
}

.card-icon {
  color: var(--color-accent);
}

.card-icon path,
.card-icon circle,
.card-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.process-step h3,
.contact-alt h3 {
  margin: 24px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.service-card p,
.process-step p,
.why p,
.contact-alt p,
.footer-col p,
.footer-col address {
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}

.service-card p {
  margin: 16px 0 0;
}

.why {
  background: var(--color-bg-tint);
}

.why-inner {
  max-width: 720px;
  text-align: center;
}

.why p {
  margin: 24px 0 0;
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent-soft);
  opacity: 0.45;
}

.process-step {
  position: relative;
  background: var(--color-bg);
  padding-right: 16px;
}

.process-number {
  display: inline-flex;
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  color: var(--color-accent-soft);
  padding-right: 16px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
}

.process-step h3 {
  margin-top: 24px;
}

.process-step p {
  margin: 12px 0 0;
}

.industries {
  background: var(--color-bg-warm);
}

.industries .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.industry-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.industry-pills span {
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-bg);
  padding: 16px 32px;
  color: var(--color-text);
  font-weight: 500;
}

.industry-note {
  max-width: 560px;
  margin: 32px auto 0;
  color: var(--color-text-muted);
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 0.65fr);
  gap: 64px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  padding: 28px 0;
  text-align: left;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--color-accent);
  transition: transform 250ms ease-out;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: rotate(0deg);
}

.faq-panel {
  color: var(--color-text-muted);
}

.faq-panel p {
  margin: 0;
  padding: 0 0 28px;
}

.js .faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.js .faq-panel p {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.js .faq-item.is-open .faq-panel p {
  opacity: 1;
  transform: translateY(0);
}

.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-copy {
  max-width: 520px;
}

.contact-form-wrap {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 13px 14px;
  transition: border-color 250ms ease-out;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-accent-soft);
}

.form-success {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-tint);
  color: var(--color-text);
  padding: 32px;
  font-weight: 500;
}

.contact-alt {
  grid-column: 2;
  max-width: 420px;
  color: var(--color-text-muted);
}

.contact-alt h3 {
  color: var(--color-text);
}

.contact-alt a {
  color: var(--color-accent);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-warm);
  padding: 72px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 48px;
}

.footer-col h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-col h2:not(:first-child) {
  margin-top: 32px;
}

.footer-col p {
  max-width: 280px;
  margin: 18px 0 0;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
}

.footer-col address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--color-border);
  margin-top: 64px;
  padding-top: 24px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (max-width: 1023px) {
  .section {
    padding: 80px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-visual {
    width: min(100%, 480px);
    margin: 0 auto;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-list::before {
    top: 0;
    left: 31px;
    right: auto;
    width: 1px;
    height: 100%;
  }

  .process-step {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 24px;
    padding: 0 0 40px;
    min-width: 0;
  }

  .process-step:last-child {
    padding-bottom: 0;
  }

  .process-number {
    grid-row: span 2;
    padding: 0;
    background: var(--color-bg);
    font-size: 56px;
  }

  .process-step h3 {
    margin-top: 4px;
  }

  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-heading {
    position: static;
  }

  .contact-alt {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    z-index: 60;
  }

  .mobile-menu .button {
    width: 100%;
    font-size: 17px;
  }

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

@media (max-width: 639px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    padding: 0 12px;
  }

  .nav {
    min-height: 72px;
    padding: 0 12px;
  }

  .hero {
    padding: 112px 0 64px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: 42px;
  }

  .hero-sub {
    max-width: 32ch;
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .button {
    width: calc(100vw - 48px);
    max-width: 327px;
    justify-content: center;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-visual {
    width: calc(100vw - 48px);
    max-width: 300px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .why h2,
  .contact-copy h2 {
    font-size: 32px;
  }

  .service-card,
  .contact-form-wrap {
    padding: 24px;
  }

  .section-heading p,
  .service-card p,
  .why p,
  .contact-copy p,
  .faq-panel p {
    max-width: 30ch;
  }

  .process-step p {
    max-width: 21ch;
  }

  .industry-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .industry-pills span {
    border-radius: 12px;
    text-align: center;
  }

  .faq-item button {
    padding: 24px 0;
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 1ms;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
