:root {
  --bg: #ffffff;
  --text: #172334;
  --muted: #6f7b87;
  --accent: #36c6b4;
  --accent-dark: #2a9e90;
  --soft: #eef8f6;
  --gray: #f3f6f8;
  --border: #dce6ea;
  --code: #2f7f74;
  --footer: #172334;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Geist, "IBM Plex Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}

.site-nav a,
.footer-nav a {
  transition: color 0.18s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

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

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 74px 24px 76px;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 18px;
}

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

h1 {
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

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

.hero-title {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  max-width: 880px;
  color: var(--text);
  margin-bottom: 22px;
  font-weight: 650;
}

.hero-copy,
.section p {
  font-size: 18px;
  color: var(--muted);
  max-width: 840px;
}

.hero-copy {
  font-size: 19px;
  margin-bottom: 34px;
}

.principle {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: var(--soft);
  color: var(--code);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  max-width: 820px;
  margin: 34px 0;
}

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

.button {
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 750;
  border: 1px solid var(--text);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(23, 35, 52, 0.12);
}

.button.primary {
  background: var(--text);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--text);
}

.note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 74px 24px;
  border-top: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 46px;
  align-items: start;
}

.flow-card,
.inline-code {
  background: var(--soft);
  border: 1px solid var(--accent);
  color: var(--code);
  border-radius: 4px;
}

.flow-card {
  padding: 24px;
}

.flow-card pre {
  margin: 0;
  white-space: pre-wrap;
}

.flow-card code,
.inline-code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  line-height: 1.7;
}

.flow-card.narrow {
  max-width: 560px;
  margin-top: 26px;
}

.architecture-diagram {
  margin-top: 34px;
  max-width: 620px;
  display: grid;
  gap: 10px;
  text-align: center;
  color: var(--code);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.architecture-diagram div {
  background: var(--soft);
  border: 1px solid rgba(54, 198, 180, 0.65);
  border-radius: 8px;
  padding: 14px 16px;
}

.architecture-diagram span {
  color: var(--accent-dark);
  font-weight: 800;
}

.spec-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.spec-card,
.feature-grid article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}

.spec-card {
  background: #fff;
}

.feature-grid article {
  background: var(--gray);
}

.spec-card p,
.feature-grid p {
  font-size: 15px;
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  color: var(--code);
  background: var(--soft);
  border: 1px solid rgba(54, 198, 180, 0.5);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}

.inline-code {
  display: inline-block;
  padding: 14px 18px;
  margin: 12px 0 20px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pill-grid span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--code);
  border: 1px solid rgba(54, 198, 180, 0.5);
  font-weight: 750;
  font-size: 14px;
}

.site-footer {
  background: var(--footer);
  color: #fff;
  margin-top: 60px;
  padding: 44px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer > div,
.site-footer > nav {
  max-width: 1120px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 8px 0 0;
  font-size: 15px;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

@media (max-width: 860px) {
  .split,
  .spec-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 94px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(23, 35, 52, 0.12);
    z-index: 10;
  }

  .site-nav.open {
    display: flex;
  }

  .brand-logo {
    height: 46px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 74px);
  }

  .section,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}
