/* ============ Dancing AI — enterprise light theme (ref: closeai-asia layout patterns) ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --card: #ffffff;
  --ink: #14161a;
  --ink-soft: #3f4450;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-faint: #eef0f3;
  --accent: #6d28d9;
  --accent-strong: #5b21b6;
  --accent-soft: #f3eefe;
  --accent-2: #d946ef;
  --ok: #059669;
  --err: #dc2626;
  --wait: #d97706;
  --code-bg: #14161a;
  --code-fg: #e5e7eb;
  --header-bg: #0f1115;
  --grad: linear-gradient(115deg, #6d28d9 10%, #d946ef 90%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.09);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --disp: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  z-index: 100; pointer-events: none;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 82% -12%, rgba(109, 40, 217, 0.07), transparent 62%),
    radial-gradient(760px 460px at -12% 30%, rgba(217, 70, 239, 0.045), transparent 62%);
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(109, 40, 217, 0.35); }
a:hover { color: var(--accent-strong); text-decoration-color: var(--accent-strong); }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
.dim { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.r { text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

/* --- reveal --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* --- header (dark) --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--disp); font-weight: 600; font-size: 17px;
  letter-spacing: 0.01em; color: #fff; text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand em { font-style: normal; color: #c4b5fd; font-weight: 500; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px; display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.72); font-weight: 500; font-size: 14.5px;
  text-decoration: none; letter-spacing: 0.01em;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-balance {
  color: #6ee7b7; font-weight: 600; font-size: 13px; padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

.announce {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line-faint);
  color: var(--ink-soft);
  padding: 9px 0; font-size: 13px; text-align: center;
  font-family: var(--mono); letter-spacing: 0.04em;
}
.announce a { color: var(--accent); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  letter-spacing: 0;
  padding: 10px 20px; cursor: pointer; border-radius: 10px;
  border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #fff; border-color: transparent;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.28);
}
.btn-primary:hover { color: #fff; background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(109, 40, 217, 0.34); }
.btn-ghost { color: var(--ink-soft); background: #fff; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: #d1d5db; }
.nav .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.85); }
.nav .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-danger { background: #fff; border-color: rgba(220, 38, 38, 0.4); color: var(--err); }
.btn-danger:hover { background: var(--err); border-color: var(--err); color: #fff; }

/* --- flashes --- */
.flashes { padding-top: 18px; }
.flash {
  padding: 12px 16px 12px 20px; margin-bottom: 10px; font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.flash-ok { border-left-color: var(--ok); }
.flash-err { border-left-color: var(--err); }

/* --- hero --- */
.hero {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px;
  align-items: center; padding: 84px 0 72px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid #e4d9fc;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.hero h1 {
  font-family: var(--disp); font-size: clamp(33px, 4.6vw, 56px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 17.5px; max-width: 560px; }
.hero-actions { display: flex; gap: 13px; margin: 30px 0 38px; flex-wrap: wrap; align-items: center; }
.link-plain { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; }
.link-plain:hover { color: var(--accent); border-color: var(--accent); }
.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.hero-stats div { display: flex; flex-direction: column; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line-faint); }
.hero-stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats b { font-family: var(--disp); font-size: 23px; font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.07em; }

.hero-term {
  background: var(--code-bg); border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.term-bar i:first-child { background: var(--accent-2); }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.term { padding: 22px; overflow-x: auto; background: transparent; }
.term code, .code code { font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--code-fg); }
.term .c { color: #8b8fa3; } .term .s { color: #c4b5fd; }

/* --- hero (centered variant, home) --- */
.hero-center {
  display: block; text-align: center;
  max-width: 840px; margin: 0 auto;
  padding: 92px 22px 76px;
}
.hero-center .lead { margin: 0 auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-stats { justify-content: center; text-align: left; }

/* --- full-width bands --- */
.band { padding: 76px 0; }
.band + .band { padding-top: 76px; }
.band-soft { background: var(--bg-soft); border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }
.band .section-head { border-bottom: 0; margin-bottom: 38px; padding-bottom: 0; }

/* --- quickstart terminal --- */
.term-center { max-width: 880px; margin: 30px auto 0; }

/* --- scenes removed: legacy hooks kept harmless --- */
.scene-bg { display: none; }

/* --- marquee (model strip) --- */
.marquee {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint);
  overflow: hidden; padding: 14px 0;
}
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span {
  font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--ink-soft);
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.marquee-track span::after { content: "·"; margin-left: 64px; color: var(--accent-2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* --- sections --- */
.section { padding: 84px 0 0; }
.section-s { padding: 34px 0 0; }
.section-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 18px;
}
.section-head h2, .page-head h1 { font-family: var(--disp); font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; font-weight: 700; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.link-arrow { margin-left: auto; font-weight: 600; font-size: 14.5px; }

.page-head { padding: 70px 22px 10px; max-width: 860px; margin: 0 auto; }
.page-head h1 { margin: 10px 0 14px; }

/* --- trust / bento cards --- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bento-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.bento-card:hover { border-color: #d6c9f6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bento-idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
}
.bento-card h3 { font-family: var(--disp); font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.bento-card p { color: var(--muted); font-size: 14px; }
.bento-card code { color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }

/* --- use-case grid --- */
.usecase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.usecase-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.usecase-card:hover { border-color: #d6c9f6; box-shadow: var(--shadow-md); }
.usecase-card h3 { font-family: var(--disp); font-size: 16.5px; margin-bottom: 8px; font-weight: 700; }
.usecase-card p { color: var(--muted); font-size: 14px; }

/* --- price card --- */
.price-grid { display: grid; grid-template-columns: minmax(0, 400px); }
.price-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.price-big { font-family: var(--disp); font-size: 42px; font-weight: 700; line-height: 1; margin-bottom: 14px; }
.price-big span { font-size: 15px; color: var(--muted); font-family: var(--font); font-weight: 400; }
.price-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.price-card ul { list-style: none; margin-bottom: 24px; border-top: 1px solid var(--line-faint); }
.price-card li { padding: 9px 0; border-bottom: 1px solid var(--line-faint); color: var(--ink-soft); font-size: 14px; }
.price-card li::before { content: "—"; color: var(--accent); margin-right: 10px; }

/* --- tables --- */
.table-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line-faint); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #faf8ff; }
.tbl code { color: var(--accent); }
.tbl td code { white-space: nowrap; }
.tbl .mono { color: var(--ink); }
.chip {
  display: inline-block; font-family: var(--mono); font-size: 11px; padding: 3px 10px;
  background: var(--accent-soft); border: 1px solid #e4d9fc; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; font-weight: 500;
}
.copy { cursor: copy; }
.after-table { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* --- quickstart steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  padding: 26px 24px 28px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-family: var(--disp); font-size: 14px; line-height: 1; margin-bottom: 14px; font-weight: 700;
}
.step span { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.step h3 { font-family: var(--disp); margin: 8px 0; font-size: 16.5px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14px; }
.step code { color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }

/* --- timeline (milestones) --- */
.timeline { position: relative; max-width: 760px; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #d6c9f6, #f0d9f7);
}
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-year { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tl-item h3 { font-family: var(--disp); font-size: 17.5px; margin: 6px 0; font-weight: 700; }
.tl-item p { color: var(--muted); font-size: 14.5px; max-width: 560px; }

/* --- cta band --- */
.cta {
  text-align: center; padding: 68px 30px;
  background: var(--header-bg);
  border-radius: 22px; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 18% 0%, rgba(109, 40, 217, 0.32), transparent 65%),
    radial-gradient(560px 300px at 85% 110%, rgba(217, 70, 239, 0.22), transparent 65%);
}
.cta h2 { font-family: var(--disp); font-size: clamp(25px, 3.4vw, 40px); margin-bottom: 14px; font-weight: 700; color: #fff; position: relative; }
.cta h2 em {
  font-style: normal;
  background: linear-gradient(115deg, #a78bfa 10%, #e879f9 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta p { color: rgba(255, 255, 255, 0.65); margin-bottom: 30px; position: relative; }
.cta .btn-primary { position: relative; background: #fff; color: var(--ink); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.cta .btn-primary:hover { background: #f3eefe; color: var(--ink); }
.cta .btn-ghost { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.28); background: transparent; position: relative; }
.cta .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.07); }

/* --- faq --- */
.faq details { border-bottom: 1px solid var(--line-faint); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 19px 4px; font-family: var(--disp); font-weight: 600;
  font-size: 16.5px; list-style: none; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; margin-right: 14px; color: var(--accent); font-family: var(--mono); font-weight: 600; }
.faq details[open] summary::before { content: "–"; }
.faq details p { padding: 0 4px 20px 30px; color: var(--muted); }

/* --- forms --- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.form-card label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-soft); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.form-card .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--font); }
input, textarea, select {
  font-family: var(--font); font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14); }
input:disabled { opacity: 0.5; }
select option { background: #fff; color: var(--ink); }

.auth { display: flex; justify-content: center; padding: 72px 22px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-family: var(--disp); font-size: 27px; font-weight: 700; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); }

.contact-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel h3 { font-family: var(--disp); font-size: 17px; margin-bottom: 14px; font-weight: 700; }
.panel p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 8px; }

/* --- docs --- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-top: 30px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.docs-nav a {
  color: var(--ink-soft); font-size: 13.5px; padding: 11px 4px;
  border-bottom: 1px solid var(--line-faint); border-left: 3px solid transparent; padding-left: 10px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
}
.docs-nav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.doc-block { margin-bottom: 48px; }
.doc-block h2 { font-family: var(--disp); font-size: 24px; margin-bottom: 14px; font-weight: 700; }
.doc-block h3 { font-family: var(--disp); font-size: 17px; margin: 24px 0 10px; font-weight: 700; }
.doc-block p, .doc-block li { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; }
.doc-block ol { padding-left: 22px; }
.code {
  background: var(--code-bg); border: 0; border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; margin: 12px 0;
}

/* --- legal --- */
.legal { max-width: 860px; padding: 20px 22px 90px; margin: 0 auto; }
.legal h2 { font-family: var(--disp); font-size: 20px; margin: 32px 0 10px; font-weight: 700; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* --- console --- */
.console-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 36px; padding-top: 36px; padding-bottom: 90px; }
body.console { background: var(--bg-soft); }
body.console .console-wrap { padding-top: 30px; }
.side { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.side a {
  color: var(--ink-soft); font-weight: 500; font-size: 14.5px; padding: 12px 16px;
  border-left: 3px solid transparent; border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
}
.side a:last-child { border-bottom: 0; }
.side a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.side a.on { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.console-title { font-family: var(--disp); font-size: 26px; margin-bottom: 24px; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px; margin: 0;
}
.stat-card span { color: var(--muted); font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-card b { font-family: var(--disp); font-size: 23px; font-weight: 700; }
.stat-card b em { font-style: normal; font-size: 14px; color: var(--muted); }
.stat-card a { font-size: 13px; margin-top: 4px; color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-top: 14px; }
.bars .bar { flex: 1; background: var(--grad); border-radius: 3px 3px 0 0; min-height: 2px; opacity: 0.88; }
.bars-x { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 11px; margin-top: 8px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inline-form input[type="text"], .inline-form input[type="number"] { width: auto; flex: 1; min-width: 200px; }
.amount-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 240px; }
.amount-cur { position: absolute; left: 14px; color: var(--muted); font-family: var(--mono); }
.amount-wrap input { padding-left: 32px; }
.amount-quick { position: absolute; right: 8px; display: flex; gap: 5px; }
.amount-quick button { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 8px; padding: 4px 9px; font-family: var(--mono); font-size: 11.5px; cursor: pointer; }
.amount-quick button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.newkey-panel { border-color: rgba(5, 150, 105, 0.45); box-shadow: 0 0 26px rgba(5, 150, 105, 0.08); }
.newkey-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.newkey-row code { background: var(--code-bg); color: var(--code-fg); border: 1px dashed rgba(5, 150, 105, 0.6); padding: 10px 14px; border-radius: 10px; word-break: break-all; }

.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 999px; }
.tag-ok { background: rgba(5, 150, 105, 0.08); border: 1px solid rgba(5, 150, 105, 0.4); color: var(--ok); }
.tag-err { background: rgba(220, 38, 38, 0.07); border: 1px solid rgba(220, 38, 38, 0.4); color: var(--err); cursor: help; }
.tag-wait { background: rgba(217, 119, 6, 0.08); border: 1px solid rgba(217, 119, 6, 0.4); color: var(--wait); }
.pager { display: flex; gap: 8px; justify-content: center; padding: 18px 0 4px; }
.pager a, .pager b { padding: 6px 12px; border: 1px solid var(--line); font-size: 13.5px; border-radius: 9px; background: #fff; }
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager b { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --- badge --- */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; padding: 4px 11px;
  background: var(--accent-soft); border: 1px solid #e4d9fc; color: var(--accent);
  border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}

/* --- footer --- */
.footer { margin-top: 84px; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 54px 22px 34px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer .brand { color: var(--ink); }
.footer .brand em { color: var(--accent); }
.footer-col h4 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; font-weight: 600;
}
.footer-col a { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 9px; text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); padding: 18px 22px 26px; }
.footer-legal p { color: var(--muted); font-size: 12.5px; }
.footer a { color: var(--ink-soft); }

/* --- responsive --- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 60px 0 56px; gap: 40px; }
  .hero > *, .bento > *, .steps > *, .usecase > *, .docs > *, .contact-wrap > *, .console-wrap > * { min-width: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .usecase { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; border-top: 0; gap: 6px; }
  .docs-nav a { border-bottom: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; padding: 16px 22px; gap: 14px;
    background: rgba(15, 17, 21, 0.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: 10px; }
  .console-wrap { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; border-top: 0; gap: 6px; }
  .side a { border-bottom: 0; border-left: 0; border-bottom: 3px solid transparent; }
  .side a.on { border-left: 0; border-bottom: 3px solid var(--accent); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .tbl { display: block; overflow-x: auto; }
  .hero-stats { flex-wrap: wrap; gap: 16px 0; }
  .hero-stats div { padding-right: 20px; margin-right: 20px; }
  .bento { grid-template-columns: 1fr; }
  .usecase { grid-template-columns: 1fr; }
}
