:root {
  --ink: #071421;
  --paper: #f7f4ed;
  --white: #ffffff;
  --cobalt: #1d5fd1;
  --teal: #0d7d7b;
  --lime: #b7e56a;
  --rust: #b9532e;
  --muted: #5b6772;
  --line: rgba(7, 20, 33, 0.14);
  --shadow: 0 24px 80px rgba(7, 20, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: rgba(7, 20, 33, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media {
  background-image: url("assets/kormilo-ai-operations.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 20, 33, 0.94) 0%, rgba(7, 20, 33, 0.74) 43%, rgba(7, 20, 33, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 20, 33, 0.9) 0%, rgba(7, 20, 33, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 148px 0 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.05rem, 7vw, 6.35rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

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

.primary-button,
.secondary-button,
.contact-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  border-radius: 999px;
}

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

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 44px 0 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats div {
  padding: 22px;
  background: rgba(7, 20, 33, 0.46);
}

.hero-stats dt {
  margin-bottom: 8px;
  font-size: 1.55rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.4;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.method h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro p {
  font-size: 1.24rem;
  line-height: 1.6;
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.work-card {
  min-height: 320px;
  padding: 28px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-number {
  display: inline-block;
  margin-bottom: 76px;
  color: var(--rust);
  font-weight: 800;
}

.work-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.work-card p,
.proof p,
.contact-copy p,
.timeline p {
  color: var(--muted);
  line-height: 1.55;
}

.method {
  width: 100%;
  background: var(--ink);
  color: var(--white);
}

.method-panel {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(32px, 7vw, 96px);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.timeline li {
  position: relative;
  padding: 0 0 30px 42px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.timeline li::before {
  counter-increment: method;
  content: counter(method);
  position: absolute;
  left: -16px;
  top: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 1.25rem;
}

.timeline p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.proof-grid article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(7, 20, 33, 0.05);
}

.proof-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.contact-copy p {
  margin-top: 24px;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--white);
  background: var(--teal);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 14px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.7);
  background: var(--ink);
}

.thank-you-page {
  min-height: 100svh;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 20, 33, 0.95), rgba(7, 20, 33, 0.72)),
    url("assets/kormilo-ai-operations.png") center / cover;
}

.thank-you {
  width: min(980px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 42px;
  padding: 48px 0;
}

.thank-you-brand {
  color: var(--white);
}

.thank-you-panel h1 {
  max-width: 800px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.thank-you-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  line-height: 1.6;
}

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

  .nav-links {
    display: none;
  }

  .hero-stats,
  .intro-grid,
  .method-panel,
  .proof-grid,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

  .header-cta {
    padding: 10px 14px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 108px;
    padding-bottom: 30px;
  }

  h1 {
    font-size: clamp(2.75rem, 13.2vw, 3.85rem);
    line-height: 0.98;
  }

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

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-stats {
    margin-top: 30px;
  }

  .hero-stats div {
    padding: 16px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 64px 0;
  }

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

  .work-card {
    min-height: 250px;
  }

  .card-number {
    margin-bottom: 48px;
  }

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