:root {
  --ink: #0d1b2a;
  --deep: #102a43;
  --blue: #176b87;
  --teal: #18a999;
  --mint: #d9f7f2;
  --paper: #f7fbfc;
  --line: #d7e4e8;
  --muted: #5b6f7a;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(13, 27, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 251, 252, 0.9);
  border-bottom: 1px solid rgba(215, 228, 232, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

.brand-mark path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--deep);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--mint);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 78px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

.hero-text {
  max-width: 620px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.btn-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(23, 107, 135, 0.22);
}

.btn-primary:hover {
  background: #135a72;
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

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

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 169, 153, 0.16), transparent 34%),
    var(--white);
  box-shadow: var(--shadow);
}

.system-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.window-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
}

.window-bar span:nth-child(2) {
  background: #8bd3ff;
}

.window-bar span:nth-child(3) {
  background: #ffffff;
}

.dashboard-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric.wide {
  grid-column: 1 / -1;
  min-height: 160px;
  background: linear-gradient(135deg, rgba(24, 169, 153, 0.28), rgba(255, 255, 255, 0.06));
}

.metric strong {
  display: block;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: #b9d8df;
  font-size: 0.95rem;
}

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

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p:last-child,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

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

.service-card,
.step {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card span {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
}

.service-card h3,
.step strong {
  display: block;
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

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

.process {
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  min-height: 210px;
}

.step strong {
  margin-top: 0;
}

.clients {
  border-top: 1px solid var(--line);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.logo-strip figure {
  height: 160px;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.logo-strip img {
  max-height: 112px;
  width: auto;
  object-fit: contain;
}

.contact {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.contact h2,
.contact .section-kicker {
  color: var(--white);
}

.contact p {
  max-width: 650px;
  margin-top: 14px;
  color: #c8dce2;
}

.contact .btn-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

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

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

  .service-grid,
  .steps,
  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    padding: 30px 22px;
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, 1120px);
  }

  .brand small {
    font-size: 0.72rem;
  }

  .hero,
  .section,
  .contact,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    gap: 28px;
    padding-bottom: 38px;
  }

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

  .btn {
    width: 100%;
  }

  .hero-panel {
    padding: 12px;
  }

  .dashboard-grid,
  .service-grid,
  .steps,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .metric.wide {
    min-height: 150px;
  }

  .section {
    padding: 54px 0;
  }

  .service-card,
  .step {
    min-height: auto;
  }

  .logo-strip figure {
    height: 140px;
  }

  .footer {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
