:root {
  --ink: #10202f;
  --ink-soft: #31465a;
  --paper: #f6f7f2;
  --white: #ffffff;
  --teal: #0b8f8a;
  --mint: #aee6d4;
  --lime: #d7ee5a;
  --coral: #f0725c;
  --line: rgba(16, 32, 47, 0.13);
  --shadow: 0 24px 70px rgba(16, 32, 47, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 5vw, 70px);
  background: rgba(246, 247, 242, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-mark rect {
  fill: var(--ink);
}

.brand-mark path {
  fill: var(--lime);
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 5px;
  color: var(--teal);
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover {
  color: var(--teal);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--ink);
  background: var(--lime);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.header-cta:hover,
.button.primary:hover {
  background: #c9e641;
}

.button.secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: center;
  min-height: calc(100vh - 83px);
  padding: clamp(64px, 9vw, 122px) clamp(18px, 5vw, 70px) clamp(46px, 7vw, 86px);
  overflow: hidden;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--lime);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 46px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-metrics div {
  min-width: 0;
}

.hero-metrics dt {
  color: var(--teal);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: #657484;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -1;
  background:
    linear-gradient(130deg, rgba(174, 230, 212, 0.85), rgba(215, 238, 90, 0.6)),
    var(--teal);
  border-radius: 8px;
  transform: rotate(-3deg);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.workflow-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.workflow-card.active {
  background: var(--white);
  color: var(--ink);
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.workflow-card.active .status-dot {
  background: var(--teal);
}

.workflow-card h2 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.workflow-card p {
  margin-bottom: 0;
  color: inherit;
  line-height: 1.6;
  opacity: 0.76;
}

.section,
.contact-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 70px);
}

.intro {
  background: var(--white);
}

.intro-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro p,
.section-heading p,
.contact-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services {
  background: #e9f5ef;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.service-card,
.process-list article,
.contact-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 280px;
  padding: 24px;
}

.service-card span {
  color: var(--teal);
  font-weight: 900;
}

.service-card h3 {
  margin: 64px 0 14px;
  font-size: 1.28rem;
}

.service-card p,
.process-list p {
  color: var(--ink-soft);
  line-height: 1.65;
}

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

.process .section-kicker,
.process .section-heading p {
  color: var(--mint);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.process-list article {
  min-height: 250px;
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.process-list strong {
  color: var(--lime);
}

.process-list h3 {
  margin: 70px 0 12px;
  font-size: 1.35rem;
}

.process-list p {
  color: rgba(255, 255, 255, 0.72);
}

.cases {
  background: var(--white);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.case-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.case-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 70px 0 12px;
  font-size: 1.3rem;
}

.case-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.64fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
  background: var(--paper);
}

.contact-card {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 32px;
  padding: 20px;
}

.contact-card span {
  color: #657484;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfcf8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(11, 143, 138, 0.22);
  border-color: var(--teal);
}

.contact-form textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 30px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.thanks-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f6f7f2, #e9f5ef);
}

.thanks-card {
  width: min(560px, 100%);
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  margin-top: 28px;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.thanks-card p {
  color: var(--ink-soft);
  line-height: 1.7;
}

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

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
  }

  .site-header.is-open .header-cta {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero,
  .intro-grid,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .hero-metrics,
  .service-grid,
  .process-list,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list article,
  .case-card {
    min-height: 220px;
  }

  .service-card h3,
  .process-list h3,
  .case-card h3 {
    margin-top: 42px;
  }
}
