:root {
  --ink: #101522;
  --muted: #657083;
  --line: #dfe5ed;
  --paper: #f7f8f6;
  --white: #ffffff;
  --green: #1f7a55;
  --green-dark: #15543b;
  --cyan: #1e9bb4;
  --coral: #e9684f;
  --gold: #d8a229;
  --shadow: 0 24px 70px rgba(16, 21, 34, 0.14);
}

* {
  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: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 246, 0.88);
  border-bottom: 1px solid rgba(223, 229, 237, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-panel,
.header-tools,
.language-switch {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}

.nav-links {
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

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

.header-tools {
  gap: 10px;
}

.language-switch {
  gap: 2px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.language-option {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-option.active {
  color: var(--white);
  background: var(--ink);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.header-action,
.button.primary {
  color: var(--white);
  background: var(--green);
}

.header-action:hover,
.button.primary:hover {
  background: var(--green-dark);
}

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

.button.secondary:hover {
  border-color: var(--green);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 72px) 44px;
  overflow: hidden;
}

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

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

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

h1 {
  max-width: 930px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: #4d596d;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.hero-media {
  min-height: 540px;
}

.mesh-panel {
  position: relative;
  min-height: 540px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 122, 85, 0.92), rgba(30, 155, 180, 0.88)),
    radial-gradient(circle at 75% 18%, rgba(216, 162, 41, 0.85), transparent 28%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mesh-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.code-window {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 84px;
  left: clamp(18px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #eafcf5;
  background: rgba(16, 21, 34, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.window-dots {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.window-dots span:nth-child(2) {
  background: var(--gold);
}

.window-dots span:nth-child(3) {
  background: #59d38c;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  line-height: 1.7;
}

.metric {
  position: absolute;
  display: grid;
  gap: 4px;
  width: 178px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.metric strong {
  font-size: 2rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.metric-one {
  top: 44px;
  left: 32px;
}

.metric-two {
  right: 28px;
  bottom: 28px;
}

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

.trust-band span {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
  text-align: center;
}

.section,
.portfolio-section,
.process-section,
.cta-section {
  padding: clamp(76px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.cta-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

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

.service-card,
.project-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 300px;
  padding: 26px;
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.service-card h3,
.project-card h3,
.timeline-item h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-card p,
.project-card p,
.timeline-item p,
.cta-section p {
  color: var(--muted);
  line-height: 1.65;
}

.portfolio-section {
  background: var(--ink);
  color: var(--white);
}

.portfolio-section .eyebrow {
  color: #67d7a6;
}

.portfolio-section .section-heading h2 {
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.project-card {
  min-height: 240px;
  padding: 26px;
  color: var(--ink);
}

.project-card.featured {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(31, 122, 85, 0.94), rgba(30, 155, 180, 0.88)),
    var(--green);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card.featured p,
.project-card.featured li {
  color: rgba(255, 255, 255, 0.84);
}

.project-card.featured h3 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.project-label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card.featured .project-label {
  color: #e7fff3;
}

.project-card ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.process-section {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  padding: 24px;
  background: var(--paper);
}

.timeline-item span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: center;
}

.cta-section > div:first-child {
  max-width: 820px;
}

.contact-panel {
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.button.full {
  width: 100%;
}

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

@media (max-width: 1020px) {
  .hero,
  .section-heading,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
    min-height: 430px;
  }

  .mesh-panel {
    min-height: 430px;
  }

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

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

  .project-card.featured {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .nav-links,
  .header-action {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .language-switch {
    min-height: 42px;
  }

  .menu-button {
    display: block;
  }

  .site-header.menu-open .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.menu-open .nav-links a {
    padding: 14px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.65rem);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-media,
  .mesh-panel {
    min-height: 360px;
  }

  .code-window {
    bottom: 28px;
  }

  .metric {
    width: 142px;
    padding: 14px;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .metric-two {
    display: none;
  }

  .trust-band,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .portfolio-section,
  .section,
  .process-section,
  .cta-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

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

@media (max-width: 460px) {
  .hero-actions,
  .button {
    width: 100%;
  }

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

  .code-window pre {
    padding: 16px;
  }

  .metric-one {
    top: 18px;
    left: 18px;
  }
}
