:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #e6e9ee;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --accent: #d97706;
  --night: #0b1220;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  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(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344054;
  font-weight: 650;
  font-size: 14px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-cta,
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-cta::before,
.btn::before,
.link-list a::before,
.link-list span::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.85) 42%, transparent 66%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 650ms ease;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-cta:hover::before,
.btn:hover::before,
.nav-cta:focus-visible::before,
.btn:focus-visible::before,
.link-list a:hover::before,
.link-list span:hover::before {
  transform: translateX(130%) skewX(-18deg);
}

.nav-cta:active,
.btn:active {
  transform: translateY(0) scale(0.98);
}

.nav-cta,
.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.24);
}

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

.nav-cta:hover,
.btn.primary:hover,
.nav-cta:focus-visible,
.btn.primary:focus-visible {
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16), 0 18px 44px rgba(15, 118, 110, 0.34);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1), 0 16px 38px rgba(15, 23, 42, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.9) 0%, rgba(11, 18, 32, 0.72) 48%, rgba(11, 18, 32, 0.22) 100%),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero.compact {
  min-height: 430px;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 108px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.hero h1,
.page-title {
  max-width: 760px;
  margin: 16px 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-metrics {
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.metric {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--brand-dark);
  font-size: 30px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.section.soft {
  background: var(--soft);
}

.section.night {
  background: var(--night);
  color: #fff;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 36px;
}

.section-head h2,
.content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.content p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.night .section-head p,
.night .content p {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 22% 0%, rgba(15, 118, 110, 0.16), transparent 36%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(15, 118, 110, 0.06);
}

.card:hover::after {
  opacity: 1;
}

.night .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f3;
  color: var(--brand);
  font-size: 22px;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

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

.night .card p {
  color: rgba(255, 255, 255, 0.7);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  min-height: 480px;
  border-radius: var(--radius);
  background: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1300&q=80") center/cover;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f5f3;
  color: var(--brand);
  font-weight: 900;
}

.service-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.service-group h3 {
  margin: 0 0 18px;
  color: var(--brand-dark);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list a,
.link-list span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  color: #344054;
  padding: 9px 10px;
  border-bottom: 1px solid #eef1f5;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.link-list a:hover,
.link-list span:hover {
  color: var(--brand-dark);
  background: #eefaf8;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1), 0 10px 26px rgba(15, 118, 110, 0.12);
  transform: translateX(4px);
}

.link-list a:active,
.link-list span:active {
  transform: translateX(2px) scale(0.99);
}

.portfolio-card {
  overflow: hidden;
  padding: 0;
}

.portfolio-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.portfolio-card .card-body {
  padding: 24px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.contact-info {
  background: var(--night);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}

.contact-info p,
.contact-info a {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
  font-size: 14px;
}

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

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

.footer {
  background: #070d18;
  color: #fff;
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 32px;
}

.footer h3,
.footer h4 {
  margin: 0 0 14px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

@media (max-width: 940px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero-metrics,
  .grid.two,
  .grid.three,
  .grid.four,
  .split,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 74px 0 92px;
  }

  .hero h1,
  .page-title {
    font-size: 42px;
  }

  .hero-metrics,
  .grid.two,
  .grid.three,
  .grid.four,
  .split,
  .contact-panel,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

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

  .feature-image {
    min-height: 320px;
  }

  .section {
    padding: 68px 0;
  }
}
