:root {
  --ink: #101828;
  --muted: #5f6b7a;
  --line: #dbe3ea;
  --paper: #f7f9f8;
  --navy: #101a2b;
  --blue: #1769aa;
  --cyan: #16a6c9;
  --green: #4f8f72;
  --plum: #6f4c7c;
  --rust: #b15c3b;
  --shadow: 0 18px 42px rgba(16, 24, 40, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  color: #fff;
  background: rgba(16, 26, 43, .92);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  gap: 4px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .02em;
  text-decoration: none;
}

.brand::before {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #eef8fb;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 50%;
  content: "D";
  font-size: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 850;
}

.site-nav a {
  padding: 10px 11px;
  color: rgba(255, 255, 255, .84);
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .10);
}

.site-nav .nav-button {
  margin-left: 6px;
  color: var(--ink);
  background: #fff;
}

.nav-button,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(23, 105, 170, .22);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}

.landing-hero {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: min(720px, calc(100vh - 128px));
  align-items: center;
  margin: 18px auto 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 15, 27, .88) 0%, rgba(8, 15, 27, .74) 39%, rgba(8, 15, 27, .18) 68%),
    url("/assets/media/images/denko-automation-command-center.webp") center right / cover no-repeat;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero-copy {
  width: min(660px, 100%);
  padding: 70px 42px;
  color: #fff;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 9vw, 112px);
  font-weight: 950;
  line-height: .9;
  letter-spacing: 0;
}

.hero-copy .lede {
  max-width: 610px;
  color: rgba(255, 255, 255, .84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
}

.landing-section {
  border-bottom: 1px solid rgba(89, 102, 116, .16);
}

.intro-section {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  max-width: 850px;
  gap: 12px;
}

.section-heading.narrow {
  max-width: 650px;
}

.section-heading h2,
.split-section h2,
.final-cta h2,
.page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.lede,
.section-heading p,
.split-section p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-row div {
  min-height: 112px;
  padding: 22px;
  background: #fff;
}

.metric-row strong {
  display: block;
  color: var(--rust);
  font-size: 13px;
  font-weight: 950;
}

.metric-row span {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  gap: 46px;
  align-items: start;
}

.feature-list,
.process-grid {
  display: grid;
  gap: 14px;
}

.feature-list article,
.process-grid article,
form,
pre {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
}

.feature-list article {
  padding: 22px;
}

.feature-list h3,
.process-grid h3,
.card h3,
.step h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.feature-list p,
.process-grid p,
.card p,
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.process-grid article {
  min-height: 210px;
  padding: 24px;
}

.process-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 950;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 72px;
}

.final-cta > div {
  max-width: 720px;
}

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

.card,
.step {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.step strong {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 24px;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f9fbfe;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

pre {
  overflow: auto;
  padding: 16px;
  color: #43506a;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 22px 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header,
  .landing-hero,
  .page,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .landing-hero {
    min-height: 620px;
    background:
      linear-gradient(180deg, rgba(8, 15, 27, .92) 0%, rgba(8, 15, 27, .72) 58%, rgba(8, 15, 27, .24) 100%),
      url("/assets/media/images/denko-automation-command-center.webp") center / cover no-repeat;
  }

  .hero-copy {
    padding: 54px 24px;
  }

  .site-nav .nav-button {
    margin-left: 0;
  }

  .metric-row,
  .process-grid,
  .grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 26px;
  }
}

@media (max-width: 760px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    min-height: 60px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .brand::before {
    width: 34px;
    height: 34px;
  }

  .mobile-nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 10px;
    background: rgba(16, 26, 43, .98);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
  }

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

  .site-nav a,
  .site-nav .nav-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 14px;
  }

  .landing-hero,
  .page,
  .site-footer {
    width: calc(100% - 20px);
  }

  .landing-hero {
    min-height: calc(100svh - 92px);
    margin-top: 10px;
    border-radius: 10px;
  }

  .hero-copy {
    display: flex;
    min-height: inherit;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px 18px;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 22vw, 86px);
  }

  .lede,
  .section-heading p,
  .split-section p,
  .final-cta p {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions,
  .final-cta {
    width: 100%;
  }

  .hero-actions .button,
  .final-cta .button,
  form .button {
    width: 100%;
  }

  .page {
    padding: 42px 0;
  }

  .section-heading h2,
  .split-section h2,
  .final-cta h2,
  .page h1 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
  }

  .metric-row div,
  .process-grid article,
  .feature-list article,
  .card,
  .step,
  form {
    padding: 18px;
  }

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

  .process-grid span {
    margin-bottom: 18px;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .step strong {
    width: 40px;
    height: 40px;
  }

  input,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 24vw, 72px);
  }
}
