:root {
  --ink: #101820;
  --ink-soft: #25313b;
  --paper: #f7f8f5;
  --white: #ffffff;
  --muted: #65727b;
  --line: #dce2df;
  --teal: #2bb8a3;
  --lime: #a8d66d;
  --coral: #ff6b57;
  --steel: #eaf0ee;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: 800;
}

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

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

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

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

.hero {
  min-height: 78svh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(10, 15, 19, 0.96) 0%, rgba(10, 15, 19, 0.86) 38%, rgba(10, 15, 19, 0.26) 70%, rgba(10, 15, 19, 0.1) 100%),
    url("assets/hero-saas-workspace.webp") center right / cover no-repeat;
  color: var(--white);
}

.hero-content {
  width: min(100%, 780px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.02;
  font-size: clamp(2.4rem, 7vw, 5.7rem);
  font-weight: 850;
}

.hero-copy {
  width: min(100%, 660px);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--lime);
  color: #102014;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 0;
  padding: 0;
}

.hero-proof div {
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof dt {
  font-size: 1.1rem;
  font-weight: 850;
}

.hero-proof dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

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

.signal-strip span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 850;
}

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

.section {
  padding: clamp(70px, 9vw, 126px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  margin: 0 auto 42px;
  max-width: 1180px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
  margin-right: auto;
  margin-left: 0;
}

.section h2 {
  font-size: clamp(2rem, 4.6vw, 4.35rem);
}

.section-heading p:not(.eyebrow),
.stack-copy p,
.section-contact p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.service-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(16, 24, 32, 0.06);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #e5f7f2;
  color: #0c7f73;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card:nth-child(2) .card-icon,
.service-card:nth-child(5) .card-icon {
  background: #fce9e4;
  color: #b43f2f;
}

.service-card:nth-child(3) .card-icon,
.service-card:nth-child(6) .card-icon {
  background: #edf5d8;
  color: #5c7f1d;
}

.service-card h3,
.process-grid h3 {
  margin: 0;
  font-size: 1.18rem;
}

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

.section-process {
  background: var(--ink);
  color: var(--white);
}

.section-process .eyebrow {
  color: var(--lime);
}

.section-process .section-heading {
  margin-bottom: 36px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.process-grid article {
  min-height: 260px;
  padding: 28px;
  background: #13202a;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--coral);
  font-weight: 850;
}

.process-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.section-stack {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  background: #eaf0ee;
}

.stack-copy {
  max-width: 760px;
}

.stack-copy p {
  margin-top: 22px;
}

.text-link {
  display: inline-flex;
  margin-top: 28px;
  color: #0b746a;
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

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

.stack-list div {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stack-list div:nth-child(2) {
  border-color: var(--coral);
}

.stack-list div:nth-child(3) {
  border-color: var(--lime);
}

.stack-list strong {
  font-size: 1.05rem;
}

.stack-list span {
  color: var(--muted);
}

.section-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) auto;
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  background: var(--white);
}

.section-contact h2 {
  max-width: 900px;
}

.section-contact p {
  max-width: 760px;
  margin-top: 20px;
}

.section-contact .contact-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--lime);
  font-weight: 800;
}

@media (max-width: 980px) {
  .section-heading,
  .section-stack,
  .section-contact {
    grid-template-columns: 1fr;
  }

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

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

  .section-contact .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

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

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

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 74svh;
    padding-top: 62px;
    padding-bottom: 62px;
    background:
      linear-gradient(90deg, rgba(10, 15, 19, 0.98) 0%, rgba(10, 15, 19, 0.88) 58%, rgba(10, 15, 19, 0.42) 100%),
      url("assets/hero-saas-workspace.webp") 62% center / cover no-repeat;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip span {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card,
  .process-grid article {
    min-height: auto;
  }
}

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