:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef3f7;
  --text: #17202a;
  --muted: #5d6976;
  --line: #dce4ec;
  --blue: #1f6fb2;
  --green: #168765;
  --navy: #12324a;
  --shadow: 0 18px 45px rgba(26, 45, 64, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--blue);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--surface-muted);
  border-radius: 8px;
}

.lang-switch a {
  min-width: 34px;
  padding: 6px 8px;
  color: var(--muted);
  border-radius: 6px;
  text-align: center;
}

.lang-switch a.active {
  color: white;
  background: var(--navy);
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section,
.section-band {
  padding: 78px 0;
}

.hero {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
}

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

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

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

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

.workbench {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.workbench-header {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.workbench-header span {
  width: 10px;
  height: 10px;
  background: #b9c5d0;
  border-radius: 50%;
}

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

.metric-row article {
  padding: 18px;
  background: var(--surface-muted);
  border-radius: 8px;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row span,
.workflow-list {
  color: var(--muted);
  font-size: 14px;
}

.workflow-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 22px;
}

.workflow-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: #aeb8c2;
  border-radius: 50%;
}

.status.done {
  background: var(--green);
}

.status.active {
  background: var(--blue);
}

.proof-strip {
  background: var(--navy);
  color: white;
}

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

.proof-grid div {
  padding: 24px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  font-size: 24px;
}

.proof-grid span {
  color: #c8d6e2;
  font-size: 13px;
}

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

.section-cta {
  margin-top: 28px;
}

.section-heading p:not(.eyebrow),
.about-copy,
.contact-grid p {
  color: var(--muted);
}

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

.project-card,
.solution-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 22px;
}

.project-card.featured {
  grid-column: span 2;
  background: #f8fbfd;
  border-color: rgba(31, 111, 178, 0.28);
  box-shadow: var(--shadow);
}

.project-card.featured h3 {
  font-size: 30px;
}

.project-card.featured .project-summary {
  font-size: 18px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.project-type {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.project-initial,
.icon {
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

.project-initial {
  width: 38px;
  height: 38px;
}

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

.project-summary {
  color: var(--text) !important;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--navy);
  background: var(--surface-muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.project-card small {
  display: block;
  margin-top: 14px;
  color: #7d8995;
  overflow-wrap: anywhere;
}

.muted {
  background: #edf3f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.solution-grid article {
  padding: 22px;
}

.icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  background: var(--green);
}

.solution-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.about-section {
  background: white;
}

.about-grid {
  align-items: start;
}

.about-copy {
  font-size: 17px;
}

.contact-section {
  background: var(--bg);
}

.contact-grid {
  align-items: start;
}

.mail-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.mail-card {
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mail-card span {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 26px 0;
  color: #c8d6e2;
  background: var(--navy);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-grid a {
  color: white;
  font-weight: 700;
}

.legal-page {
  background: white;
}

.legal-content {
  max-width: 860px;
}

.legal-content h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-content a {
  color: var(--blue);
  font-weight: 800;
}

.demo-page {
  background: white;
}

.demo-hero {
  border-bottom: 1px solid var(--line);
}

.demo-grid {
  display: grid;
  gap: 26px;
}

.demo-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.demo-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.demo-card div {
  padding: 24px;
}

.demo-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.demo-card p {
  max-width: 760px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 73px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 12px;
  }

  .lang-switch {
    align-self: flex-start;
    margin: 8px 12px 6px;
  }

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

  .hero {
    min-height: auto;
  }

  .project-grid,
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .section,
  .section-band {
    padding: 54px 0;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .metric-row,
  .project-grid,
  .solution-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

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

  .project-card.featured h3 {
    font-size: 24px;
  }
}
