:root {
  --navy: #16233f;
  --ink: #1c2a45;
  --sub: #5d6b86;
  --mute: #8e9bb5;
  --blue: #4b6bfb;
  --blue-deep: #2f49d6;
  --blue-soft: #eef3ff;
  --line: #e2e8f4;
  --line-strong: #d5deee;
  --bg: #fbfdff;
  --radius: 20px;
  --shadow: 0 24px 60px -32px rgba(35, 60, 120, .35), 0 2px 8px rgba(35, 60, 120, .05);
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .04em; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s;
}
.nav.scrolled {
  background: rgba(252, 253, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(219, 227, 241, .9);
}
.nav-inner { display: flex; align-items: center; gap: 44px; height: 74px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand svg { width: 30px; height: 30px; }
.wordmark { font-size: 16px; letter-spacing: .14em; color: var(--navy); }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 300; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--sub); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .8);
  color: var(--navy); transition: .2s ease; white-space: nowrap;
}
.btn:hover { border-color: #c2cdec; background: #fff; transform: translateY(-1px); }
.btn.solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.solid:hover { background: #1e2f52; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(75, 107, 251, .9); }
.btn.blue:hover { background: #3f5ef0; }
.btn.lg { padding: 13px 26px; font-size: 15px; }

.menu-btn {
  display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 132px 0 84px;
  background:
    radial-gradient(900px 460px at 50% -6%, #e3ecfc 0%, rgba(227, 236, 252, 0) 70%),
    radial-gradient(700px 380px at 10% 8%, #eaf1fd 0%, rgba(234, 241, 253, 0) 72%),
    radial-gradient(760px 420px at 90% 4%, #e7eefc 0%, rgba(231, 238, 252, 0) 72%),
    linear-gradient(180deg, #fdfefe 0%, #f7fafe 46%, #eef4fd 100%);
}
.hero .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(70, 100, 160, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(70, 100, 160, .05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 76%);
}
.hero .cloud { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.hero .c1 { left: -8%; top: 44%; width: 620px; height: 300px; background: rgba(255, 255, 255, .9); }
.hero .c2 { right: -6%; top: 52%; width: 720px; height: 340px; background: rgba(255, 255, 255, .85); }
.hero .c3 { left: 28%; bottom: -12%; width: 820px; height: 340px; background: rgba(222, 235, 255, .8); }
.hero-inner { position: relative; text-align: center; }

.nb { white-space: nowrap; }
.notice {
  flex-wrap: wrap; justify-content: center; text-align: center; line-height: 1.6;
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6b7a95;
  padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(219, 227, 241, .9);
}
.notice i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px rgba(75, 107, 251, .7); }
.notice em { font-style: normal; color: var(--blue); }

h1 {
  margin: 34px auto 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.26; font-weight: 500;
  letter-spacing: .12em; text-indent: .12em; color: #17233d;
}
.hero-sub { margin: 22px auto 0; max-width: 660px; font-size: 15.5px; line-height: 1.95; color: #6b7a95; }

/* console card */
.console {
  width: min(880px, 100%); margin: 42px auto 0; text-align: left;
  background: rgba(255, 255, 255, .84); border: 1px solid rgba(214, 224, 240, .95);
  border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(14px);
  padding: 24px 26px 18px;
}
.console .ph { font-size: 15px; color: #98a4bb; }
.console .ph b { color: #55648a; font-weight: 500; }
.console .codes { margin-top: 8px; font-size: 11.5px; color: #8e9bb5; overflow-x: auto; white-space: nowrap; }
.console .bar { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; color: #46536e; padding: 7px 13px; border-radius: 999px;
  border: 1px solid #dfe6f3; background: rgba(255, 255, 255, .7);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: .18s;
  font-family: inherit;
}
.chip:hover { border-color: #c3cffb; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.chip.on { color: var(--blue-deep); border-color: #c3cffb; background: var(--blue-soft); }
.chip.on i { opacity: 1; }
.send {
  margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(75, 107, 251, .9);
  border: 0; cursor: pointer;
}

.quick { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quick a {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: #3f4c66;
  background: rgba(255, 255, 255, .78); border: 1px solid #dfe6f3; border-radius: 999px; padding: 10px 18px;
  transition: .2s;
}
.quick a:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(35, 60, 120, .6); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 76px 0; }
.section.white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--blue); margin-bottom: 14px; }
h2 { font-size: clamp(26px, 3vw, 37px); line-height: 1.32; font-weight: 500; letter-spacing: .04em; color: #17233d; }
.lead { margin-top: 14px; max-width: 620px; color: var(--sub); font-size: 15px; line-height: 1.9; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.feat { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.feat .num { font-size: 10.5px; color: var(--mute); letter-spacing: .18em; }
.feat h3 { margin: 12px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.feat p { font-size: 14px; color: var(--sub); }
.feat p b { color: var(--ink); font-weight: 600; }

/* flow diagram */
.flow-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow-wrap {
  margin-top: 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px 26px; box-shadow: 0 20px 50px -40px rgba(35, 60, 120, .5);
}
.flow-legend { display: flex; gap: 26px; margin-top: 18px; font-size: 11px; color: var(--mute); }
.flow-legend span { display: inline-flex; align-items: center; gap: 7px; }
.flow-legend i { width: 18px; height: 1px; background: var(--blue); display: inline-block; opacity: .6; }
.flow-legend i.dash { background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 10px); }

/* api section */
.api-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; margin-top: 44px; }
.code-card {
  background: #0f1a2e; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(15, 26, 46, .7);
}
.code-head { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tab {
  font-size: 12px; color: #8494b2; padding: 6px 12px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  font-family: inherit;
}
.tab.on { color: #eaf1ff; background: rgba(255, 255, 255, .09); }
.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code-card code { font-family: ui-monospace, Consolas, monospace; font-size: 12.3px; line-height: 1.85; color: #d5e0f5; }
.code-card .c { color: #6f84a8; }
.code-card .k { color: #8fb0ff; }
.code-card .s { color: #a8e6c8; }
.api-notes { display: grid; gap: 18px; }
.note { border-left: 2px solid var(--blue); padding-left: 14px; }
.note b { display: block; font-size: 14px; margin-bottom: 4px; }
.note span { font-size: 13px; color: var(--sub); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  transition: .25s;
}
.price:hover { border-color: #c9d5ef; box-shadow: 0 24px 50px -34px rgba(35, 60, 120, .45); transform: translateY(-2px); }
.price h3 { font-size: 15px; margin-bottom: 8px; }
.price p { font-size: 13.5px; color: var(--sub); }
.price .tagline { font-size: 10.5px; letter-spacing: .16em; color: var(--blue); margin-bottom: 12px; }

/* faq */
.faq { max-width: 820px; margin: 40px auto 0; }
details {
  border-bottom: 1px solid var(--line); padding: 20px 4px;
}
summary { cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--mute); font-size: 18px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; font-size: 14px; color: var(--sub); max-width: 720px; }

/* cta */
.cta {
  padding: 96px 0 104px; text-align: center;
  background: radial-gradient(700px 320px at 50% 0%, #eef3ff 0%, rgba(238, 243, 255, 0) 70%), #fff;
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(26px, 3.2vw, 40px); }
.cta p { margin: 16px auto 30px; color: var(--sub); font-size: 15px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); background: #fbfdff; }
.foot-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-links { margin-left: auto; display: flex; gap: 22px; font-size: 13px; color: var(--sub); }
.foot-links a:hover { color: var(--navy); }
.foot small { font-size: 11.5px; color: var(--mute); }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 16px; right: 16px; top: 74px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px;
    box-shadow: var(--shadow); gap: 12px;
  }
  .three, .price-grid { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 72px 0; }
  .hero { padding: 112px 0 64px; }
}
@media (max-width: 620px) {
  .flow-wrap svg { min-width: 720px; }
  .notice { font-size: 11.5px; padding: 7px 12px; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { height: 66px; gap: 16px; }
  .nav-actions .btn:not(.solid) { display: none; }
  h1 { letter-spacing: .06em; text-indent: .06em; }
  .console { padding: 18px 16px 14px; border-radius: 18px; }
  .console .codes { font-size: 10.5px; }
  .quick a { font-size: 12.5px; padding: 9px 14px; }
  .hero-sub { font-size: 14.5px; }
}

/* flow dash animation */
#flow svg path[stroke-dasharray] { animation: flowDash 3.2s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -110; } }
@media (prefers-reduced-motion: reduce) {
  #flow svg path[stroke-dasharray] { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}