/* ===== KuaiAPI Homepage v2 · Dark Minimal ===== */
  :root {
    --bg: #05070d;
    --bg-soft: #0a0e18;
    --card: rgba(255,255,255,.024);
    --card-hover: rgba(255,255,255,.05);
    --line: rgba(255,255,255,.08);
    --line-strong: rgba(255,255,255,.14);
    --ink: #e8ecf4;
    --muted: #97a1b5;
    --dim: #6b7590;
    --accent: #5b8cff;
    --accent-2: #a78bfa;
    --grad: linear-gradient(92deg,#5b8cff 0%,#a78bfa 100%);
    --ok: #34d399;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  /* ===== Nav ===== */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(5,7,13,.72);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
  .brand .logo-img { height: 30px; width: auto; display: block; border-radius: 7px; }
  .nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
  .nav-links a:hover { color: var(--ink); }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 10px;
    font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  }
  .btn-primary { background: #fff; color: #0a0e18 !important; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 28px rgba(91,140,255,.18); }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 36px rgba(91,140,255,.32); }
  .btn-ghost { border: 1px solid var(--line-strong); color: var(--ink) !important; background: transparent; }
  .btn-ghost:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
  .btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 9px; }
  .btn-arrow { transition: transform .18s ease; display: inline-block; }
  a:hover .btn-arrow { transform: translateX(3px); }

  /* ===== Hero ===== */
  .hero { position: relative; overflow: hidden; text-align: center; padding: 96px 0 40px; }
  .hero-glow {
    position: absolute; inset: -40% -20% auto; height: 130%; pointer-events: none;
    background:
      radial-gradient(46% 42% at 50% 12%, rgba(91,140,255,.16), transparent 70%),
      radial-gradient(30% 30% at 72% 26%, rgba(167,139,250,.10), transparent 70%);
  }
  .hero-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
      linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(58% 60% at 50% 20%, #000 30%, transparent 100%);
    mask-image: radial-gradient(58% 60% at 50% 20%, #000 30%, transparent 100%);
  }
  .hero-inner { position: relative; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 6px 16px; font-size: 13px; color: var(--muted);
    background: rgba(255,255,255,.03);
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
  .hero h1 {
    margin: 26px auto 0; max-width: 780px;
    font-size: clamp(38px, 6.2vw, 62px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em;
  }
  .hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero .sub { margin: 20px auto 0; max-width: 640px; font-size: clamp(15.5px, 2vw, 18px); color: var(--muted); }
  .hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
  .hero-chips { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; color: var(--dim); }
  .hero-chips span::before { content: "✓"; color: var(--accent); margin-right: 7px; font-weight: 700; }

  /* ===== Code window ===== */
  .code-stage { position: relative; max-width: 720px; margin: 52px auto 0; text-align: left; }
  .code-win {
    border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
    background: #0d1320 !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
  }
  .code-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03) !important; }
  .code-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
  .code-bar i:nth-child(1) { background: #ff5f57; } .code-bar i:nth-child(2) { background: #febc2e; } .code-bar i:nth-child(3) { background: #28c840; }
  .code-bar .tab { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
  .code-url {
    display: flex; align-items: center; gap: 10px; padding: 10px 18px;
    border-bottom: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--muted);
  }
  .code-url b { color: var(--ink); font-weight: 600; }
  .code-url .lock { color: var(--ok); }
  pre.code { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; line-height: 1.75; background: #0d1320 !important; color: #c9d3e8 !important; }
  .c-kw { color: #c792ea !important; } .c-str { color: #a5d6a7 !important; } .c-fn { color: #82aaff !important; } .c-pr { color: #f78c6c !important; } .c-cm { color: #6b7a9e !important; }

  /* ===== Platforms belt ===== */
  .belt { padding: 56px 0 8px; text-align: center; }
  .belt .label { font-size: 13px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
  .belt-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
  .chip {
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px;
    font-size: 14px; color: var(--muted); background: var(--card);
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
  }
  .chip:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-2px); }
  .chip b { color: var(--ink); font-weight: 650; margin-right: 2px; }

  /* ===== Sections ===== */
  section.blk { padding: 84px 0 0; }
  section.blk.deal-sec { padding-top: 10px; }
  .blk-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
  .blk-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .blk-head h2 { margin: 12px 0 0; font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; letter-spacing: -.02em; }
  .blk-head p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; }

  /* ===== Bento features ===== */
  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .cell {
    grid-column: span 2;
    border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
    background: var(--card); position: relative; overflow: hidden;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .cell:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-3px); }
  .cell.wide { grid-column: span 3; }
  .cell::after {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; pointer-events: none;
    background: radial-gradient(60% 50% at 50% 0%, rgba(91,140,255,.09), transparent 70%);
  }
  .cell:hover::after { opacity: 1; }
  .cell .ico {
    width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent); background: rgba(91,140,255,.10); border: 1px solid rgba(91,140,255,.20); margin-bottom: 16px;
  }
  .cell .ico svg { width: 19px; height: 19px; }
  .cell h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
  .cell p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.7; }

  /* ===== Steps ===== */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
  .step { border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; background: var(--card); position: relative; transition: border-color .2s ease, transform .2s ease; }
  .step:hover { border-color: var(--line-strong); transform: translateY(-3px); }
  .step .no {
    font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; font-weight: 700;
    color: var(--accent); letter-spacing: .1em;
  }
  .step h3 { margin: 12px 0 8px; font-size: 16.5px; font-weight: 650; }
  .step p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.7; }
  .step .mini {
    margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.35);
    padding: 10px 13px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: #9fb4dd; overflow-x: auto; white-space: nowrap;
  }
  .step .mini b { color: #a5d6a7; font-weight: 500; }

  /* ===== Deal banner ===== */
  .deal {
    border: 1px solid rgba(91,140,255,.35); border-radius: 20px; padding: 36px 40px;
    background:
      radial-gradient(70% 130% at 88% 0%, rgba(91,140,255,.16), transparent 62%),
      radial-gradient(60% 120% at 8% 100%, rgba(167,139,250,.12), transparent 60%),
      var(--bg-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  }
  .deal-tag {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
    color: #14100a; background: linear-gradient(92deg,#ffd479,#ffab4d);
    padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
  }
  .deal h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -.02em; }
  .deal h2 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .deal p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; max-width: 540px; }
  .deal-prices { display: flex; gap: 38px; margin-top: 22px; flex-wrap: wrap; }
  .dp s { color: var(--dim); font-size: 13px; }
  .dp b { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .dp span { font-size: 12px; color: var(--dim); }

  /* ===== Plaza banner ===== */
  .plaza {
    border: 1px solid var(--line-strong); border-radius: 20px; padding: 38px 40px;
    background:
      radial-gradient(70% 120% at 85% 10%, rgba(167,139,250,.14), transparent 60%),
      radial-gradient(70% 120% at 12% 90%, rgba(91,140,255,.14), transparent 60%),
      var(--bg-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  }
  .plaza h2 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
  .plaza p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; max-width: 520px; }
  .plaza-stats { display: flex; gap: 30px; margin-top: 20px; flex-wrap: wrap; }
  .plaza-stats b { display: block; font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
  .plaza-stats span { font-size: 12.5px; color: var(--dim); }

  /* ===== FAQ ===== */
  .faq { max-width: 720px; margin: 0 auto; }
  .faq details { border: 1px solid var(--line); border-radius: 13px; background: var(--card); margin-bottom: 10px; overflow: hidden; transition: border-color .2s ease; }
  .faq details[open] { border-color: var(--line-strong); background: var(--card-hover); }
  .faq summary {
    list-style: none; cursor: pointer; padding: 18px 22px;
    font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .pm { color: var(--accent); font-size: 18px; font-weight: 400; transition: transform .2s ease; flex: none; }
  .faq details[open] summary .pm { transform: rotate(45deg); }
  .faq .ans { padding: 0 22px 20px; font-size: 14px; color: var(--muted); line-height: 1.8; }
  .faq .ans b { color: var(--ink); }

  /* ===== Final CTA ===== */
  .final { text-align: center; padding: 110px 0 90px; position: relative; overflow: hidden; }
  .final-glow { position: absolute; left: 50%; bottom: -55%; transform: translateX(-50%); width: 900px; height: 420px; pointer-events: none;
    background: radial-gradient(50% 55% at 50% 50%, rgba(91,140,255,.17), transparent 70%); }
  .final h2 { position: relative; margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
  .final p { position: relative; margin: 16px 0 0; color: var(--muted); font-size: 15.5px; }
  .final .cta { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
  .contact-line { position: relative; margin-top: 34px; font-size: 13.5px; color: var(--dim); }
  .contact-line b { color: var(--accent); font-weight: 650; }

  /* ===== Footer ===== */
  footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
  .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
  .foot-links { display: flex; gap: 22px; }
  .foot a { color: var(--dim); transition: color .18s ease; }
  .foot a:hover { color: var(--ink); }

  /* ===== Animations (CSS only) ===== */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    .rise { animation: riseIn .7s cubic-bezier(.22,.65,.3,1) both; }
    .d1 { animation-delay: .06s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .22s; }
    .d4 { animation-delay: .30s; } .d5 { animation-delay: .40s; }
    @supports (animation-timeline: view()) {
      .reveal { animation: riseIn .8s cubic-bezier(.22,.65,.3,1) both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
  }

  /* ===== Responsive ===== */
  @media (max-width: 860px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .cell, .cell.wide { grid-column: span 1; }
    .steps { grid-template-columns: 1fr; }
    .nav-links .hide-m { display: none; }
  }
  @media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .hero { padding-top: 68px; }
    .plaza { padding: 30px 24px; }
    .nav-links { gap: 16px; }
  }

  /* ===== v2 additions (2026-09-18): shared by the /vi/ and /en/ static landing pages ===== */
  .lang-links { display:flex; gap:14px; align-items:center; font-size:13px; color:var(--dim); }
  .lang-links a { color:var(--dim); }
  .lang-links a:hover { color:var(--ink); }
  .lang-links a.on { color:var(--ink); font-weight:600; }
  .trust { max-width:760px; margin:0 auto; border:1px solid var(--line-strong); border-radius:16px; padding:26px 30px; background:var(--card); }
  .trust h3 { margin:0 0 12px; font-size:16.5px; font-weight:650; }
  .trust ul { margin:0; padding-left:20px; color:var(--muted); font-size:14px; line-height:1.9; }
  .trust b { color:var(--ink); }
  .cmp { width:100%; border-collapse:collapse; margin-top:18px; font-size:13.5px; }
  .cmp th, .cmp td { border-bottom:1px solid var(--line); padding:10px 12px; text-align:left; }
  .cmp th { color:var(--dim); font-weight:600; font-size:12.5px; }
  .cmp td b { color:var(--ink); }
  .cmp .win { color:var(--ok); font-weight:650; }
  .legal-note { font-size:12.5px; color:var(--dim); margin-top:10px; }

  /* ===== v2 additions: docs pages under /docs/vi/ (same dark skin) ===== */
  .doc { max-width:820px; margin:0 auto; padding:54px 24px 80px; }
  .doc h1 { font-size:clamp(26px,3.6vw,34px); font-weight:800; letter-spacing:-.02em; margin:0 0 8px; }
  .doc h2 { font-size:20px; font-weight:700; margin:38px 0 10px; }
  .doc h3 { font-size:16.5px; font-weight:650; margin:24px 0 8px; }
  .doc p, .doc li { color:var(--muted); font-size:14.5px; line-height:1.85; }
  .doc b { color:var(--ink); }
  .doc code { font-family:ui-monospace,Consolas,monospace; font-size:13px; color:#9fb4dd; background:rgba(0,0,0,.35); border:1px solid var(--line); border-radius:6px; padding:2px 6px; }
  .doc pre { border:1px solid var(--line-strong); border-radius:12px; background:#0d1320; padding:18px 20px; overflow-x:auto; font-family:ui-monospace,Consolas,monospace; font-size:13px; line-height:1.7; color:#c9d3e8; }
  .doc a { color:var(--accent); }
  .doc .crumb { font-size:13px; color:var(--dim); margin-bottom:22px; }
  .doc .card { border:1px solid var(--line); border-radius:14px; padding:20px 22px; background:var(--card); margin:14px 0; }
  .doc table { width:100%; border-collapse:collapse; font-size:13.5px; margin:14px 0; }
  .doc th, .doc td { border-bottom:1px solid var(--line); padding:9px 10px; text-align:left; }
  .doc th { color:var(--dim); font-size:12.5px; }
