:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3f0;
  --ink: #16211f;
  --muted: #61706b;
  --line: #dce4df;
  --line-strong: #c4d0ca;
  --teal: #17856f;
  --teal-dark: #0f5f50;
  --blue: #2457d6;
  --amber: #c17d00;
  --shadow: 0 20px 70px rgba(17, 34, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 228, 223, 0.82);
  background: rgba(246, 247, 244, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: max-content;
  font-size: 18px;
  font-weight: 760;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.header-action {
  justify-self: end;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.header-action:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: min(780px, 82svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(246, 247, 244, 0.98) 0%, rgba(246, 247, 244, 0.86) 42%, rgba(246, 247, 244, 0.18) 100%),
    linear-gradient(180deg, rgba(246, 247, 244, 0.08), rgba(246, 247, 244, 0.74));
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/product-hero.png");
  background-position: center right;
  background-size: cover;
  filter: saturate(0.96);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 64px 0;
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(56px, 10vw, 126px);
  line-height: 0.9;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: #31413d;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
}

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

.hero-note {
  max-width: 620px;
  margin: -20px 0 30px;
  color: #31413d;
  font-size: 14px;
}

.hero-note a {
  font-weight: 760;
  text-decoration: underline;
}

.button {
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 760;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 33, 31, 0.18);
}

.button.primary:hover {
  background: #273531;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(640px, 100%);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-stats div {
  min-width: 0;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-stats dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.hero-stats dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 760;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-head {
  max-width: 980px;
  margin: 0 auto 34px;
}

.section-head h2 + p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.feature-grid,
.steps,
.api-band {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.feature,
.steps article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature {
  padding: 24px;
}

.feature-mark {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 820;
}

.feature p,
.steps p,
.api-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.workflow {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

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

.steps article {
  border: 0;
  border-radius: 0;
  padding: 24px;
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.api-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.api-copy {
  padding-top: 6px;
}

.code-sample {
  margin: 0;
  overflow: auto;
  border: 1px solid #20302c;
  border-radius: 8px;
  background: #13211e;
  color: #f2f7f4;
  box-shadow: var(--shadow);
}

.code-sample code {
  display: block;
  min-width: 580px;
  padding: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 760;
}

.site-footer div {
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-footer .legal-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.showcase-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.showcase-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.showcase-card:hover {
  border-color: var(--teal);
}

.showcase-card h3 {
  margin-bottom: 0;
}

.showcase-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.showcase-url {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.showcase-visit {
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 760;
}

.showcase-card:hover .showcase-visit {
  text-decoration: underline;
}

.flow-kicker {
  width: min(1180px, 100%);
  margin: 0 auto 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serve-flow + .flow-kicker {
  margin-top: 30px;
}

.arch-flow,
.serve-flow {
  width: min(1180px, 100%);
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.arch-flow article,
.serve-flow article {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
}

.arch-flow strong,
.serve-flow strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.arch-flow p,
.serve-flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.arch-flow code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.trust-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(246, 247, 244, 0.94) 0%, rgba(246, 247, 244, 0.78) 58%, rgba(246, 247, 244, 0.98) 100%);
  }

  .hero-media {
    opacity: 0.62;
    background-position: center top;
  }

  .hero-content {
    width: min(680px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 42px;
  }

  .hero-stats,
  .feature-grid,
  .steps,
  .api-band,
  .showcase-grid,
  .arch-flow,
  .serve-flow,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    box-shadow: 0 12px 38px rgba(17, 34, 31, 0.12);
  }

  .feature-mark {
    margin-bottom: 26px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 62px;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .header-action {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

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

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-inline: 16px;
  }

  .feature,
  .steps article,
  .showcase-card,
  .arch-flow article,
  .serve-flow article {
    padding: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer div {
    justify-content: flex-start;
  }
}
