:root {
  --bg: #f3f5f9;
  --bg-soft: #fafbfd;
  --surface: #ffffff;
  --line: #e3e8f1;
  --line-strong: #d4dced;
  --ink: #0f1115;
  --muted: #59657b;
  --accent: #2f80ed;
  --accent-deep: #256fd3;
  --accent-soft: #eaf3ff;
  --warm: #f4a261;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 11px;
  --shadow: 0 18px 38px rgba(18, 24, 40, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(34rem 22rem at 8% -6%, rgba(47, 128, 237, 0.1), rgba(47, 128, 237, 0) 62%),
    radial-gradient(28rem 18rem at 98% -2%, rgba(244, 162, 97, 0.12), rgba(244, 162, 97, 0) 68%),
    linear-gradient(180deg, #fbfcff 0%, #f2f5fb 100%),
    linear-gradient(rgba(47, 128, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 128, 237, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 34px 34px, 34px 34px;
  background-position: center, center, center, center top, center top;
  line-height: 1.5;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(11px);
  background: rgba(251, 252, 255, 0.74);
  border-bottom: 1px solid rgba(208, 218, 236, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 640;
  letter-spacing: 0.01em;
}

.top-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  color: #3b4558;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
}

.top-nav a:hover {
  color: #101521;
  background: rgba(255, 255, 255, 0.65);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

main {
  padding-bottom: 5rem;
}

.hero {
  text-align: center;
  padding: 7.6rem 0 5rem;
}

.hero-pill {
  margin: 0 auto;
  display: inline-block;
  border: 1px solid #d8e2f4;
  background: rgba(255, 255, 255, 0.84);
  color: #384761;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 1.1rem 0 0;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 620;
}

.hero h1 span {
  color: #206fd8;
}

.hero-sub {
  margin: 1.05rem auto 0;
  max-width: 670px;
  color: #53617a;
  font-size: clamp(1rem, 1.9vw, 1.08rem);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-tertiary {
  margin: 0.95rem 0 0;
}

.hero-tertiary a {
  color: #355a92;
  font-size: 0.92rem;
  font-weight: 540;
  text-decoration: none;
  border-bottom: 1px dashed rgba(53, 90, 146, 0.35);
}

.hero-tertiary a:hover {
  color: #17355f;
  border-bottom-color: rgba(23, 53, 95, 0.55);
}

.hero-flow {
  margin: 1.35rem auto 0;
  width: min(430px, 92%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-flow span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.38rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d8e2f4;
  background: rgba(255, 255, 255, 0.76);
  color: #3a4f72;
  font-size: 0.82rem;
  font-weight: 520;
}

.btn {
  text-decoration: none;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 0.62rem 1rem;
  font-weight: 620;
  font-size: 0.98rem;
}

.btn-primary {
  background: #287be5;
  border-color: #226cc8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(34, 108, 200, 0.22);
}

.btn-primary:hover {
  background: #1f66c1;
}

.btn-outline,
.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: #c9d8ef;
  color: #2e4f7f;
}

.hero-pill,
.hero h1,
.hero-sub,
.hero-actions,
.hero-tertiary,
.hero-flow {
  animation: heroRise 360ms ease-out both;
}

.hero h1 { animation-delay: 60ms; }
.hero-sub { animation-delay: 120ms; }
.hero-actions { animation-delay: 180ms; }
.hero-tertiary { animation-delay: 240ms; }
.hero-flow { animation-delay: 300ms; }

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-row {
  text-align: center;
  padding-bottom: 3.4rem;
}

.logo-row p {
  margin: 0;
  color: #778091;
  font-size: 0.92rem;
}

.logo-list {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.logo-list span {
  color: #4f5f79;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: #fdfefe;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.feature-card,
.cap-card,
.tabs,
.flow li,
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1rem;
}

.feature-card h3,
.cap-card h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-card p {
  margin: 0.42rem 0 0.7rem;
  color: var(--muted);
}

.feature-card code,
.cap-card code {
  display: block;
  width: 100%;
  background: #f6f9ff;
  border: 1px solid #dde7f7;
  border-radius: 8px;
  padding: 0.42rem 0.52rem;
  color: #1f406f;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section {
  margin-top: 2.6rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.24rem;
}

.section-head p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.flow {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.flow li {
  padding: 0.8rem;
}

.flow strong {
  display: block;
}

.flow span {
  margin-top: 0.2rem;
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.tabs {
  margin-top: 0.95rem;
  padding: 0.92rem;
}

.tab-list {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.24rem;
  background: #f3f7ff;
}

.tab-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #5e6675;
  font-weight: 620;
  padding: 0.34rem 0.66rem;
  cursor: pointer;
}

.tab-btn.is-active {
  background: #ffffff;
  color: var(--ink);
  border-color: #c8d7f0;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.code-block {
  margin-top: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid #d4dff2;
  background: #f6f9ff;
  color: #1f3558;
  padding: 0.7rem 0.75rem;
  overflow-x: auto;
}

.code-block.single { margin-top: 0; }

code {
  white-space: nowrap;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.84rem;
}

.copy-btn {
  flex: 0 0 auto;
  border: 1px solid #bfd0eb;
  border-radius: 9px;
  background: #ffffff;
  color: #1f4a85;
  padding: 0.34rem 0.58rem;
  cursor: pointer;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.capabilities-grid .section-head {
  grid-column: 1 / -1;
}

.cap-card {
  padding: 0.8rem;
}

.faq details {
  padding: 0.74rem 0.8rem;
}

.faq details + details {
  margin-top: 0.52rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 620;
}

.faq p {
  margin: 0.44rem 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .feature-grid,
  .flow,
  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .top-nav { width: 100%; order: 3; }
  .hero {
    padding-top: 4.2rem;
    padding-bottom: 2.8rem;
  }
  .hero-flow {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .flow,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .tab-list {
    width: 100%;
    justify-content: space-between;
  }
  .code-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .copy-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-pill,
  .hero h1,
  .hero-sub,
  .hero-actions,
  .hero-tertiary,
  .hero-flow {
    animation: none;
  }
}
