:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #64707a;
  --line: #d9dfdd;
  --paper: #f4f6f3;
  --white: #ffffff;
  --graphite: #202423;
  --green: #2f631f;
  --green-dark: #224c16;
  --olive: #6f7c54;
  --warm: #7f6b59;
  --mist: #eef2ee;
  --shadow: 0 22px 60px rgba(24, 32, 38, 0.14);
}

* {
  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);
}

body.agent-open {
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(32, 36, 35, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(32, 36, 35, 0.72);
  font-size: 14px;
  font-weight: 760;
}

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

.hero {
  position: relative;
  min-height: min(860px, 94vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 24, 28, 0.92) 0%, rgba(18, 24, 28, 0.76) 34%, rgba(18, 24, 28, 0.18) 74%),
    linear-gradient(0deg, rgba(18, 24, 28, 0.34), rgba(18, 24, 28, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 5vw, 72px);
  padding-top: 84px;
  padding-bottom: 132px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8e97b;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 690px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 850;
}

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

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  background: var(--graphite);
}

.hero-stats {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 72px);
  bottom: 32px;
  left: clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-stats span {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(16, 20, 22, 0.28);
  font-size: 14px;
  line-height: 1.35;
}

.hero-stats strong {
  display: block;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  margin-bottom: 34px;
}

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

.about-section {
  padding-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.about-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-points {
  display: grid;
  gap: 10px;
}

.about-points span {
  display: block;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: var(--graphite);
  font-weight: 760;
  line-height: 1.35;
}

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

.solution-card {
  min-height: 270px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(24, 32, 38, 0.06);
}

.solution-card p,
.workflow span,
.contact-band p,
.design-band p,
.project-heading > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.icon {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.project-section {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: var(--graphite);
  color: var(--white);
}

.project-heading,
.project-grid {
  width: min(1260px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: end;
}

.project-heading > p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
}

.project-section .eyebrow {
  color: #a8e97b;
}

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

.project-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--ink);
}

.project-card.featured {
  grid-column: span 2;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d8ded7;
}

.project-card div {
  padding: 20px;
}

.project-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.design-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 36px;
  align-items: end;
  padding: 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(24, 32, 38, 0.06);
}

.design-band p {
  margin-bottom: 0;
}

.workflow-band {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-band .section-heading,
.workflow {
  width: min(1160px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow li {
  position: relative;
  min-height: 230px;
  padding: 0 22px 0 0;
  border-top: 3px solid var(--green);
}

.workflow li::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: -24px 0 24px;
  color: var(--white);
  background: var(--green);
  font-weight: 950;
}

.workflow strong,
.workflow span {
  display: block;
}

.workflow strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 42px;
  padding: 44px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.contact-band .eyebrow,
.contact-band p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-band h2 {
  max-width: 780px;
  margin-bottom: 16px;
}

.contact-band p {
  max-width: 760px;
  margin-bottom: 0;
}

.agent-widget {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
}

.agent-fab {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.agent-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-greeting {
  position: absolute;
  right: 0;
  bottom: 84px;
  width: min(320px, calc(100vw - 40px));
  padding: 15px 42px 15px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agent-greeting p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.45;
}

.agent-greeting button,
.agent-panel header button {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: inherit;
}

.agent-greeting button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.agent-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 40px));
  max-height: min(610px, calc(100vh - 120px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agent-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.agent-panel header img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.agent-panel header div {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.agent-panel header strong {
  font-size: 15px;
}

.agent-panel header span {
  color: var(--muted);
  font-size: 12px;
}

.agent-panel header button {
  width: 34px;
  height: 34px;
  color: var(--muted);
  font-size: 25px;
}

.agent-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 14px;
  background: #f8faf7;
}

.agent-message {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.agent-message.bot {
  align-self: flex-start;
  color: var(--ink);
  background: var(--mist);
}

.agent-message.user {
  align-self: flex-end;
  color: var(--white);
  background: var(--green);
}

.agent-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.agent-quick button {
  min-height: 32px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.agent-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
}

.agent-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.agent-form input:focus {
  border-color: var(--green);
  outline: none;
}

.agent-form button {
  min-width: 56px;
  height: 42px;
  cursor: pointer;
  color: var(--white);
  background: var(--graphite);
  border: 0;
  border-radius: 4px;
  font-weight: 850;
}

@media (max-width: 920px) {
  .hero-stats,
  .about-grid,
  .solution-grid,
  .project-heading,
  .project-grid,
  .design-band,
  .workflow,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .workflow {
    gap: 28px;
  }

  .workflow li {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 24, 28, 0.92), rgba(18, 24, 28, 0.72)),
      linear-gradient(0deg, rgba(18, 24, 28, 0.34), rgba(18, 24, 28, 0.12));
  }

  .hero-content {
    width: min(620px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 260px;
  }

  .hero-stats {
    right: 16px;
    left: 16px;
  }

  .contact-band,
  .design-band {
    padding: 30px 22px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 38px;
  }

  .brand img {
    width: 148px;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 58px 0;
  }

  .project-section,
  .workflow-band {
    padding-right: 14px;
    padding-left: 14px;
  }

  .agent-widget {
    right: 14px;
    bottom: 14px;
  }
}
