:root {
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff4ff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f2f4f7;
  --sidebar: #fbfbfa;
  --soft: #f7f8fa;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, 0.14);
  --shadow-cta: 0 16px 40px -12px rgba(37, 99, 235, 0.65);
  --sidebar-w: 229px;
  --font: "Noto Sans SC", "SF Pro SC", "SF Pro Text", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 10px 16px;
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 18px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-name { font-size: 15px; color: var(--ink); }

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item svg { width: 18px; height: 18px; flex: none; color: #4b5563; }
.nav-item:hover { background: #f0f1f3; color: var(--ink); }
.nav-item.is-active { background: #eceef2; color: var(--ink); font-weight: 600; }
.nav-item.is-active svg { color: var(--ink); }

.new-skill {
  margin-top: 14px;
  width: 100%;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px dashed #d7dbe2;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.new-skill:hover { border-color: #b9c0cc; color: var(--ink-2); background: #fff; }
.new-skill-plus { font-size: 16px; line-height: 1; color: #9aa3b2; }

.sidebar-bottom { display: flex; flex-direction: column; gap: 14px; }

.mobile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.mobile-card img { width: 56px; height: 56px; border-radius: 6px; }
.mobile-card div { display: flex; flex-direction: column; line-height: 1.35; }
.mobile-card strong { font-size: 13.5px; }
.mobile-card span { font-size: 12px; color: var(--muted); }

.sidebar-links {
  display: flex;
  gap: 14px;
  padding: 0 10px;
  border-top: 1px solid rgba(55, 53, 47, 0.08);
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.sidebar-links a:hover { color: var(--ink); }

/* ---------- Topbar (mobile) ---------- */

.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.menu-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.topbar-title { font-weight: 650; font-size: 15px; }
.topbar-mobile { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- Main ---------- */

.main {
  min-width: 0;
  padding: 0 48px 40px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.hero {
  padding: 84px 0 18px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.hero-title {
  margin: 22px 0 14px;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: var(--ink);
}
.hero-title span {
  color: var(--accent);
  background: linear-gradient(180deg, transparent 68%, rgba(37, 99, 235, 0.14) 68%);
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 640px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
}

.search-shell {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-shell:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.search-shell textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 15px/1.7 var(--font);
}
.search-shell textarea::placeholder { color: #9aa3b2; }

.search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #f2f4f7;
}
.search-tools { display: flex; gap: 6px; }
.search-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--line-soft);
}
.send-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.send-btn svg { width: 18px; height: 18px; }
.send-btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.send-btn:active { transform: translateY(0); }

.search-hint {
  min-height: 24px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.search-hint.is-visible { opacity: 1; transform: none; }

.hero-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: cta-glow 3s ease-in-out infinite;
}
.cta svg { width: 22px; height: 22px; }
.cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 24px 56px -14px rgba(37, 99, 235, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.cta:active { transform: translateY(0) scale(0.99); }
.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 20px 52px -8px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cta-secondary:hover { border-color: #c9cfd8; color: var(--ink); }

.cta-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.tool-row {
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.tool-pill em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 4px;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 64px 0 0;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fcfcfd, #ffffff);
}
.stat { padding: 6px 14px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.stat-label { display: block; margin-top: 2px; font-size: 12px; color: var(--accent); font-weight: 600; }
.stat p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 88px 0 0; }

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head .eyebrow,
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head h2, .api-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 720;
}
.section-head p, .api-copy p { margin: 0; color: var(--muted); font-size: 15px; }

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

.feature-card {
  padding: 26px 26px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: #dfe3ea;
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { margin: 16px 0 8px; font-size: 18px; font-weight: 680; }
.feature-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.feature-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.feature-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.feature-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

/* ---------- Workflow ---------- */

.workflow { padding-top: 78px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--soft);
  border: 1px solid var(--line-soft);
}
.step-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.steps h3 { margin: 10px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- API band ---------- */

.api-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 44px;
  margin-top: 88px;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #fbfcff, #f6f8fc);
  border: 1px solid #e8edf7;
}
.api-copy h2 { margin-bottom: 12px; }
.api-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4e9f2;
  box-shadow: 0 18px 40px -22px rgba(23, 43, 99, 0.35);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.api-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
}
.api-line + .api-line { border-top: 1px solid #f1f4f9; }
.api-ok { color: #16a34a; font-size: 11px; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line-soft); }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list summary {
  position: relative;
  padding: 20px 42px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 580;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-list details[open] summary::after {
  content: "−";
  background: var(--accent-soft);
  color: var(--accent);
}
.faq-list p {
  margin: 0;
  padding: 0 42px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 820px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 88px;
  padding: 30px 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--ink); }
.footer-legal { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Scrim ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(17, 24, 39, 0.32);
  backdrop-filter: blur(2px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .main { padding: 0 32px 32px; }
  .hero { padding-top: 64px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); padding-top: 14px; }
  .api-band { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: min(280px, 84vw);
    transform: translateX(-102%);
    transition: transform 0.24s ease;
    box-shadow: 24px 0 60px -30px rgba(16, 24, 40, 0.35);
  }
  .sidebar.is-open { transform: none; }
  .topbar { display: flex; }
  .main { padding: 0 20px 28px; max-width: 760px; }
  .hero { padding-top: 36px; text-align: left; }
  .hero-badge { margin-bottom: 4px; }
  .hero-title { font-size: clamp(30px, 7.4vw, 38px); }
  .hero-sub { font-size: 15px; }
  .search-shell { max-width: none; }
  .hero-cta { justify-content: stretch; }
  .cta { width: 100%; min-height: 56px; font-size: 1.0625rem; padding: 0 24px; }
  .cta-secondary { width: 100%; }
  .cta-note { text-align: center; }
  .tool-row { justify-content: flex-start; margin-top: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; padding: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding-top: 62px; }
  .api-band { margin-top: 62px; padding: 24px; }
  .site-footer { margin-top: 62px; }
  .footer-legal { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .main { padding: 0 16px 24px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line-soft); padding-top: 14px; }
  .hero-title { font-size: 30px; }
  .tool-pill { height: 32px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
