:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --ink: #17201f;
  --muted: #5d6b69;
  --line: #d9e0de;
  --teal: #087d77;
  --teal-dark: #075f5a;
  --amber: #d88a23;
  --graphite: #273231;
  --shadow: 0 24px 70px rgba(24, 39, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(246, 248, 248, 0.88);
  border-bottom: 1px solid rgba(217, 224, 222, 0.82);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(24, 39, 37, 0.08);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  font-size: 0.82rem;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-weight: 600;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: clamp(44px, 7vw, 86px) clamp(20px, 4vw, 64px) clamp(28px, 5vw, 62px);
}

.hero-content {
  max-width: 690px;
}

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

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

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 4.8vw, 5.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.7vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.hero-copy,
.section-heading p,
.contact-section p,
.feature-card p,
.timeline p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  font-size: 1.02rem;
}

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

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

.button.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 125, 119, 0.22);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--graphite);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #e8eeee;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.extraction-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(310px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(24, 39, 37, 0.18);
  backdrop-filter: blur(14px);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(216, 138, 35, 0.16);
}

.extraction-panel dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.extraction-panel div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.extraction-panel dt,
.extraction-panel dd {
  margin: 0;
  font-size: 0.86rem;
}

.extraction-panel dt {
  color: var(--muted);
}

.extraction-panel dd {
  color: var(--teal);
  font-weight: 800;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 4vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-band div {
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.trust-band span {
  color: var(--muted);
}

.section,
.split-section,
.contact-section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 4vw, 64px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 8px;
  background: rgba(8, 125, 119, 0.1);
  color: var(--teal);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  background: var(--graphite);
  color: #fff;
}

.split-section .eyebrow {
  color: #6fd3ca;
}

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

.document-list span {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef7f5;
  font-weight: 700;
}

.process-section {
  background: #edf2f1;
}

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(30px, 5vw, 52px);
  padding: 34px 0 6px;
}

.process-flow article {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(24, 39, 37, 0.07);
  animation: flow-card 6s ease-in-out infinite;
  animation-delay: calc(var(--step) * 0.45s);
}

.flow-track {
  position: absolute;
  top: 62px;
  right: 8%;
  left: 8%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e4e2;
}

.flow-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal), #39b6aa, var(--amber), var(--teal));
  background-size: 240% 100%;
  animation: flow-line 4.2s linear infinite;
}

.flow-pulse {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 10px rgba(216, 138, 35, 0.14);
  transform: translate(-50%, -50%);
  animation: flow-pulse 4.2s linear infinite;
}

.pulse-two {
  animation-delay: 1.4s;
}

.pulse-three {
  animation-delay: 2.8s;
}

.flow-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(8, 125, 119, 0.08);
  animation: flow-icon 6s ease-in-out infinite;
  animation-delay: calc(var(--step) * 0.45s);
}

.process-flow h3 {
  margin-bottom: 8px;
}

.process-flow p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@keyframes flow-line {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 240% 0;
  }
}

@keyframes flow-pulse {
  from {
    left: 0;
    opacity: 0;
  }

  10%,
  88% {
    opacity: 1;
  }

  to {
    left: 100%;
    opacity: 0;
  }
}

@keyframes flow-line-vertical {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 240%;
  }
}

@keyframes flow-pulse-vertical {
  from {
    top: 0;
    opacity: 0;
  }

  10%,
  88% {
    opacity: 1;
  }

  to {
    top: 100%;
    opacity: 0;
  }
}

@keyframes flow-card {
  0%,
  100% {
    border-color: var(--line);
    transform: translateY(0);
  }

  18% {
    border-color: rgba(8, 125, 119, 0.42);
    transform: translateY(-6px);
  }

  34% {
    border-color: var(--line);
    transform: translateY(0);
  }
}

@keyframes flow-icon {
  0%,
  100% {
    background: var(--graphite);
  }

  18% {
    background: var(--teal);
  }

  34% {
    background: var(--graphite);
  }
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 940px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.timeline p {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(24, 39, 37, 0.08);
}

label {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfdfc;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(8, 125, 119, 0.18);
  border-color: var(--teal);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

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

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 430px;
  }

  .feature-grid,
  .trust-band,
  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-flow {
    gap: 16px;
    padding: 0 0 0 34px;
  }

  .process-flow article {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: auto;
  }

  .flow-track {
    top: 18px;
    bottom: 18px;
    left: 27px;
    width: 8px;
    height: auto;
  }

  .flow-track::before {
    background: linear-gradient(180deg, var(--teal), #39b6aa, var(--amber), var(--teal));
    background-size: 100% 240%;
    animation-name: flow-line-vertical;
  }

  .flow-pulse {
    top: 0;
    left: 50%;
    animation-name: flow-pulse-vertical;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }

  .process-flow article {
    grid-template-columns: 1fr;
  }

  .extraction-panel {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .document-list {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

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