:root {
  --ink: #101318;
  --muted: #5b6472;
  --line: #e6e9ee;
  --panel: #f7f8fa;
  --accent: #0f7a5b;
  --accent-dark: #08533e;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(16, 19, 24, 0.08);
  --max: 1120px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(230, 233, 238, 0.82);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 19, 24, 0.16);
}

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

.hero {
  padding: calc(var(--header-height) + 82px) 0 64px;
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.9), rgba(255, 255, 255, 0) 76%),
    radial-gradient(circle at 82% 18%, rgba(15, 122, 91, 0.11), transparent 32%),
    var(--white);
}

.hero-inner,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb:hover {
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  max-width: 960px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.58;
}

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

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.client-item {
  padding: 26px;
  background: var(--white);
}

.client-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.client-item strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--panel);
}

.section-heading,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: start;
}

.section-heading {
  align-items: end;
  margin-bottom: 42px;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-lede,
.body-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.large-copy {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 780;
  letter-spacing: 0;
}

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

.card,
.gallery-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery-card {
  box-shadow: var(--shadow);
}

.card h3,
.gallery-card h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

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

.list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}

.solution-panel {
  padding: clamp(34px, 6vw, 64px);
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.solution-panel .section-kicker,
.solution-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.solution-panel h2 {
  color: var(--white);
}

.architecture {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.arch-node {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

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

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

.screenshot-card-wide {
  grid-column: 1 / -1;
}

.screenshot-frame {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #20242a;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
}

.screenshot-frame-contained {
  min-height: 420px;
  padding: 18px;
  background: #f1f3f6;
}

.screenshot-frame-contained img {
  width: auto;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.screenshot-copy {
  padding: 24px 28px 28px;
}

.screenshot-copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.workflow-preview {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.workflow-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.workflow-row strong {
  color: var(--ink);
}

.cta {
  padding: 96px 0;
  color: var(--white);
  background: var(--ink);
}

.cta-inner {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.cta p {
  max-width: 660px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

.cta .button-primary {
  margin-top: 32px;
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  background: var(--ink);
  font-size: 14px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 940px) {
  :root {
    --header-height: 76px;
  }

  .nav {
    min-height: auto;
    padding: 16px 0;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 64px);
  }

  .client-grid,
  .section-heading,
  .two-column,
  .card-grid,
  .gallery-grid,
  .screenshot-grid,
  .architecture {
    grid-template-columns: 1fr;
  }

  .arch-node {
    min-height: 72px;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .cta-inner {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 44px;
  }

  .button {
    width: 100%;
  }

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

  .client-item,
  .card,
  .gallery-card {
    padding: 22px;
  }

  .screenshot-card {
    padding: 0;
  }

  .screenshot-copy {
    padding: 22px;
  }

  .screenshot-frame-contained {
    min-height: 0;
  }
}
