/* ============================================================
   Larkway Landing — aligned to the real product design system
   Figtree + Noto Sans SC · indigo #4f46e5 single interactive
   slate ink · green/amber/red strictly semantic · hairline borders
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;900&family=JetBrains+Mono:wght@500;600&display=swap");

:root {
  /* surfaces */
  --bg:        #f8fafc;
  --surface:   #ffffff;
  --surface-2: #fbfcfe;

  /* ink (slate) */
  --ink:        #0f172a;
  --ink-2:      #1e293b;
  --muted:      #64748b;
  --muted-2:    #94a3b8;

  /* hairlines */
  --border:      #e2e8f0;
  --border-soft: #eef2f6;

  /* brand / interactive — indigo, single accent */
  --brand:       #4f46e5;
  --brand-2:     #4338ca;
  --brand-soft:  #eef2ff;
  --brand-edge:  #c7d2fe;
  --brand-text:  #4338ca;
  --brand-ring:  rgba(79, 70, 229, 0.18);

  /* status (semantic only — never an interactive surface) */
  --serving:      #16a34a;
  --serving-soft: #f0fdf4;
  --serving-edge: #bbf7d0;
  --serving-text: #15803d;
  --degraded:     #d97706;
  --offline:      #dc2626;

  /* backend identity hints (kept quiet) */
  --claude: #d97757;
  --codex:  #475569;
  --gemini: #2563eb;

  /* shadows — very subtle, slate-tinted */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --sh-md: 0 8px 24px -10px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05);
  --sh-lg: 0 30px 70px -28px rgba(15, 23, 42, 0.22), 0 8px 24px -14px rgba(15, 23, 42, 0.12);

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --maxw: 1140px;
  --intensity: 1;

  --font: "Figtree", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  background: transparent;
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--brand-soft); color: var(--brand-2); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.page { position: relative; z-index: 1; }

/* ============================================================
   LOGO — "L" monogram on indigo tile + wordmark
   ============================================================ */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .tile {
  width: 32px; height: 32px; border-radius: var(--r-xs);
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; line-height: 1;
  box-shadow: 0 2px 6px -1px var(--brand-ring);
}
.brand .word { font-weight: 800; font-size: 19px; letter-spacing: -0.025em; color: var(--ink); }
.brand .ver {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--muted); padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); line-height: 1.5;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--serving-soft); color: var(--serving-text);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--serving-edge);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--serving); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  padding: 11px 20px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid transparent; transition: background .18s, box-shadow .22s, border-color .18s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(.5px); }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 6px -1px var(--brand-ring); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--border); box-shadow: var(--sh-xs); }
.btn-ghost:hover { border-color: var(--brand-edge); color: var(--ink); }

/* install command chip — light, mono, copyable (no off-brand black) */
.cmd {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 10px 12px 10px 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs);
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: border-color .18s, box-shadow .2s;
}
.cmd:hover { border-color: var(--brand-edge); box-shadow: var(--sh-sm); }
.cmd .pr { color: var(--muted-2); }
.cmd .pkg { color: var(--ink); font-weight: 600; }
.cmd .copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 10px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-text);
  font-family: var(--font); font-size: 12.5px; font-weight: 700; border: 1px solid var(--brand-edge);
  transition: background .15s;
}
.cmd:hover .copy { background: var(--brand-edge); }
.cmd .copy.ok { background: var(--serving-soft); color: var(--serving-text); border-color: var(--serving-edge); }
.cmd .copy .ic { width: 14px; height: 14px; }

.btn-link { color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; transition: color .18s; }
.btn-link:hover { color: var(--brand); }
.btn-link .ic { width: 17px; height: 17px; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.sect { padding: 110px 0; }
.sect-tight { padding: 78px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow .bar { width: 18px; height: 1.5px; background: var(--brand-edge); }

.sect-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.sect-head.left { text-align: left; margin-left: 0; }
.sect-head h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.14; color: var(--ink); }
.sect-head p { margin-top: 16px; font-size: 17.5px; color: var(--muted); line-height: 1.6; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 86px 0 96px; text-align: center; }
.hero-inner { position: relative; z-index: 2; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px;
  padding: 7px 9px 7px 15px; border-radius: 999px; white-space: nowrap; max-width: 92vw;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.hero-pill b { color: var(--ink-2); font-weight: 700; }
.hero-pill .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 700; border: 1px solid var(--brand-edge); }

.h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink);
  text-wrap: balance;
}
.h1 .at { color: var(--brand); }
.sub {
  margin: 24px auto 0; max-width: 660px;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62; color: var(--muted); font-weight: 500;
  text-wrap: pretty;
}
.sub .sep { color: var(--border); margin: 0 8px; }

.cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.cta-sub { margin-top: 18px; }

/* ---- hero product card (Feishu thread) ---- */
.showcase { position: relative; margin: 64px auto 0; max-width: 720px; z-index: 2; }
.showcase .caption {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px; font-size: 13.5px; color: var(--muted); font-weight: 500;
}
.showcase .caption .node { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; }
.showcase .caption .node .ic { width: 16px; height: 16px; color: var(--brand); }
.showcase .caption .arr { color: var(--muted-2); }

.chat {
  position: relative; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: 24px 26px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.chat-head .grp-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; overflow: hidden; }
.chat-head .grp-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chat-head .grp-name { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.chat-head .grp-meta { font-size: 12.5px; color: var(--muted-2); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.chat-head .time { margin-left: auto; font-size: 12.5px; color: var(--muted-2); }

.msg { display: flex; gap: 12px; margin-top: 20px; }
.msg .av { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; }
.msg .av.user { background: #f3d4e0; overflow: hidden; }
.msg .av.user img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg .av.bot { background: var(--brand); border-radius: 9px; }
.msg .body { flex: 1; min-width: 0; }
.msg .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.msg .who .t { color: var(--muted-2); font-weight: 500; }
.msg .who .robot { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--brand-text); background: var(--brand-soft); padding: 2px 8px 2px 6px; border-radius: 6px; border: 1px solid var(--brand-edge); }
.msg .who .robot svg { width: 11px; height: 11px; }

.bubble {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 3px 12px 12px 12px; padding: 12px 15px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.bubble .mention { color: var(--brand-text); font-weight: 600; }

.result {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  padding: 16px; box-shadow: var(--sh-xs);
}
.result-head { display: flex; align-items: center; gap: 10px; }
.result-head .check {
  width: 22px; height: 22px; border-radius: 50%; background: var(--serving);
  display: grid; place-items: center; flex: none; transform: scale(0);
}
.result-head .check.pop { animation: checkpop .45s cubic-bezier(.2,1.3,.4,1) .15s forwards; }
@keyframes checkpop { to { transform: scale(1); } }
.result-head .title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.result-head .badge {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--serving-text);
  background: var(--serving-soft); border: 1px solid var(--serving-edge); padding: 3px 9px; border-radius: 999px;
}

.result-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rrow {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border-soft);
}
.rrow .ic { width: 17px; height: 17px; flex: none; color: var(--brand); }
.rrow .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); flex: none; }
.rrow .desc { font-size: 13px; color: var(--muted); min-width: 0; flex: 1; }
.rrow .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand-text); background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; flex: none; }
.rrow .diff { display: inline-flex; gap: 5px; flex: none; }
.rrow .diff span { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.rrow .diff .add { color: var(--serving-text); background: var(--serving-soft); }
.rrow .diff .del { color: var(--offline); background: #fef2f2; }
.rrow .link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand); flex: none; }
.rrow .link .ic { width: 14px; height: 14px; color: currentColor; }

/* ---- backend strip ---- */
.backends { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; position: relative; z-index: 2; }
.backends .lead { font-size: 13px; color: var(--muted-2); font-weight: 500; }
.bchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.bchip .ic { width: 17px; height: 17px; flex: none; }
.bchip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--serving); }
.bchip.soon { color: var(--muted); }
.bchip.soon .dot { background: var(--muted-2); }
.bchip.soon .tag { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }

/* ============================================================
   AGENTS roster — multi-agent story
   ============================================================ */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh-xs); transition: transform .25s, box-shadow .25s, border-color .25s;
  text-align: left; font-family: var(--font);
}
.acard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-edge); }
.a-top { display: flex; align-items: center; gap: 12px; }
.a-av {
  width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 17px;
}
.a-id { min-width: 0; }
.a-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.a-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.a-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.a-status.ok { color: var(--serving-text); }
.a-status.ok .dot { background: var(--serving); animation: pulse 2.2s ease-in-out infinite; }
.a-status.warn { color: #b45309; }
.a-status.warn .dot { background: var(--degraded); }
.a-desc { margin-top: 15px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.a-foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.a-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; flex: none;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.a-chip .bi { width: 16px; height: 16px; flex: none; border-radius: 4px; }
.a-chip.soon { color: var(--muted); }
.a-chip.soon .tag { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }

.acard-add {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border-style: dashed; border-color: var(--brand-edge); background: color-mix(in srgb, var(--brand-soft) 50%, var(--surface));
}
.acard-add:hover { background: var(--brand-soft); }
.acard-add .add-ico { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; }
.acard-add .add-tx .a-desc { margin-top: 3px; }

/* ============================================================
   VALUE CARDS
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-xs); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-edge); }
.vcard .v-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: var(--brand-soft); color: var(--brand); }
.vcard .v-av { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); box-shadow: var(--sh-sm); background: var(--surface-2); }
.vcard .v-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.vcard h3 .en { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.vcard p { margin-top: 11px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.vcard .ex {
  margin-top: 20px; display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border-soft);
  padding: 9px 13px; border-radius: var(--r-sm); font-weight: 500;
}
.vcard .ex .at { color: var(--brand); font-weight: 700; }
.vcard .v-at { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--brand-soft); border: 1px solid var(--brand-edge); padding: 8px 13px; border-radius: 10px; }
.vcard .v-at .at { color: var(--brand); font-weight: 800; }
.vcard.is-active .v-at { background: var(--brand); color: #fff; border-color: var(--brand); }
.vcard.is-active .v-at .at { color: #fff; }

/* role tabs + case showcase */
.role-tab { cursor: pointer; }
.role-tab.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring), var(--sh-sm); position: relative; }
.role-tab.is-active::after {
  content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: var(--surface);
  border-right: 1px solid var(--brand); border-bottom: 1px solid var(--brand); z-index: 2;
}
.role-tab.is-active .v-av { border-color: var(--brand-edge); }
.value-demo { max-width: 600px; margin: 38px auto 0; }
.value-demo .chat { animation: none; }
.value-demo .result-rows { transition: opacity .25s; }
.value-demo.swapping .result-rows, .value-demo.swapping .bubble, .value-demo.swapping .who { opacity: .25; }
.value-demo .bubble, .value-demo .who { transition: opacity .25s; }

/* ============================================================
   HOW IT WORKS — 4 steps, no animated connectors
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 24px 28px; box-shadow: var(--sh-xs);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-edge); }
.step .s-tile {
  width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step .s-ico { width: 24px; height: 24px; color: var(--brand); }
.step .num {
  position: absolute; top: 22px; right: 22px;
  width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.step::after {
  content: ""; position: absolute; top: 46px; right: -13px; z-index: 2;
  width: 8px; height: 8px; border-top: 1.6px solid var(--muted-2); border-right: 1.6px solid var(--muted-2);
  transform: rotate(45deg); display: none;
}
@media (min-width: 981px) { .step:not(:last-child)::after { display: block; } }

/* ============================================================
   TRUST / INSTALL
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 52px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; box-shadow: var(--sh-xs); transition: transform .25s, box-shadow .25s; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.tcard .t-ico { width: 22px; height: 22px; margin-bottom: 15px; }
.tcard h4 { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.tcard p { margin-top: 7px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.install {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 42px 44px; box-shadow: var(--sh-md);
}
.install .eyebrow { margin-bottom: 14px; }
.install h3 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.install p { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.install .install-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.terminal { background: #0f172a; border-radius: var(--r-md); overflow: hidden; position: relative; box-shadow: var(--sh-md); }
.terminal .bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal .bar .r { background: #ff5f57; } .terminal .bar .y { background: #febc2e; } .terminal .bar .g { background: #28c840; }
.terminal .bar .ttl { margin-left: 8px; font-size: 12px; color: #64748b; font-family: var(--font-mono); }
.terminal pre { margin: 0; padding: 20px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 2.0; color: #cbd5e1; overflow-x: auto; }
.terminal .cm { color: #64748b; }
.terminal .pr { color: #818cf8; }
.terminal .ok { color: #4ade80; }
.terminal .copy-tl { position: absolute; top: 47px; right: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); color: #cbd5e1; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-family: var(--font); transition: background .18s; }
.terminal .copy-tl:hover { background: rgba(255,255,255,.14); }
.terminal .copy-tl.ok { color: #4ade80; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 40px 0 52px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .18s; }
.footer-links a:hover { color: var(--brand); }
.footer .lic { font-size: 12.5px; color: var(--muted-2); flex-basis: 100%; }

/* ============================================================
   AMBIENT BACKGROUND — restrained, premium tech
   ============================================================ */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
body.embed .ambient { position: absolute; }
.ambient > * { position: absolute; }

/* glow — soft, slow indigo light, low opacity */
.amb-glow .g {
  border-radius: 50%; filter: blur(70px);
  opacity: calc(.45 * var(--intensity)); mix-blend-mode: multiply;
}
.amb-glow .g1 { width: 560px; height: 560px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--brand) 34%, white), transparent 68%); animation: glow1 26s ease-in-out infinite; }
.amb-glow .g2 { width: 420px; height: 420px; left: -120px; top: 200px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 24%, white), transparent 70%); animation: glow2 32s ease-in-out infinite; }
.amb-glow .g3 { width: 380px; height: 380px; right: -100px; top: 120px; background: radial-gradient(circle, color-mix(in srgb, var(--gemini) 18%, white), transparent 72%); animation: glow3 30s ease-in-out infinite; }
@keyframes glow1 { 0%,100% { transform: translate(-50%,0) scale(1); } 50% { transform: translate(-50%,34px) scale(1.08); } }
@keyframes glow2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.1); } }
@keyframes glow3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-34px,40px) scale(1.06); } }

/* grid — faint dot grid with radial fade + soft top glow */
.amb-grid .grid-layer {
  inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--brand) 30%, transparent) 1.2px, transparent 1.2px);
  background-size: 32px 32px; opacity: calc(.4 * var(--intensity));
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 25%, transparent 75%);
}
.amb-grid .gtop { width: 720px; height: 480px; left: 50%; top: -200px; transform: translateX(-50%); background: radial-gradient(ellipse, color-mix(in srgb, var(--brand) 22%, white), transparent 70%); filter: blur(60px); opacity: calc(.5 * var(--intensity)); mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) { .ambient * { animation: none !important; } }

/* embed=hero mode for comparison canvas */
body.embed .nav, body.embed .sect, body.embed .footer { display: none !important; }
body.embed .hero { padding-top: 56px; padding-bottom: 56px; }

/* ============================================================
   HERO v2 — bigger, lively, self-playing demo
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; text-align: center; }

/* pill: 飞书 × Larkway */
.hero-pill { gap: 11px; }
.hero-pill .fs, .hero-pill .lk { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.hero-pill .lk svg { color: var(--brand); }
.ico-img { display: inline-block; object-fit: contain; vertical-align: -3px; border-radius: 4px; }
.bchip .ico-img { vertical-align: middle; }
.hero-pill .x { color: var(--muted-2); font-weight: 600; }

/* headline */
.h1 { font-size: clamp(38px, 5.8vw, 74px); }
.h1 .grad {
  background: linear-gradient(100deg, var(--brand) 0%, #6366f1 45%, var(--gemini) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--brand);
}
.h1 .at { color: var(--brand); }
.sub .at-min { color: var(--brand); font-weight: 700; }

/* ---- stage ---- */
.stage { position: relative; z-index: 2; margin-top: 60px; }
.stage-inner { position: relative; width: 600px; max-width: 92vw; margin: 0 auto; }
.stage .caption { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.stage .caption .node { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; }
.stage .caption .node .ic { width: 16px; height: 16px; color: var(--brand); }
.stage .caption .arr { color: var(--muted-2); }

/* gentle float for the whole card cluster */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.chat { animation: floaty 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .chat { animation: none; } }

/* ---- live demo states ---- */
.msg-bot { transition: opacity .4s ease; }
.chat[data-state="idle"] .msg-bot,
.chat[data-state="typing"] .msg-bot { opacity: 0; pointer-events: none; }

.caret { display: none; width: 2px; height: 1.05em; background: var(--brand); margin-left: 1px; vertical-align: -2px; border-radius: 1px; }
.chat[data-state="typing"] .caret { display: inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.working { display: none; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-xs); }
.working .work-tx { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.working .work-tx b { color: var(--claude); font-weight: 700; }
.working .spinner { width: 18px; height: 18px; flex: none; border: 2.4px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.working .dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.working .dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); animation: dotpulse 1.2s ease-in-out infinite; }
.working .dots i:nth-child(2) { animation-delay: .2s; }
.working .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dotpulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.result { display: none; }
.chat[data-state="working"] .working { display: flex; }
.chat[data-state="done"] .result { display: block; animation: lk-rise .4s ease both; }
@keyframes lk-rise { from { opacity: 0; transform: translateY(8px); } }

/* result rows stagger in on done */
.chat[data-state="done"] .rrow { opacity: 0; transform: translateY(7px); animation: rowin .4s cubic-bezier(.2,.7,.2,1) forwards; }
.chat[data-state="done"] .rrow[data-r="1"] { animation-delay: .14s; }
.chat[data-state="done"] .rrow[data-r="2"] { animation-delay: .24s; }
.chat[data-state="done"] .rrow[data-r="3"] { animation-delay: .34s; }
@keyframes rowin { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat[data-state="done"] .rrow { opacity: 1; transform: none; animation: none; } }

/* ---- floating accent cards ---- */
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--sh-md);
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .5s, transform .5s;
}
.float-card.show { opacity: 1; transform: none; }
.float-card .fc-t { font-size: 13px; font-weight: 700; color: var(--ink); }
.float-card .fc-s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.fc-feishu { left: -64px; top: 22px; animation: floaty 6s ease-in-out infinite; }
.fc-toast { right: -58px; bottom: 96px; animation: floaty 7.5s ease-in-out infinite .4s; }
.fc-toast .fc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--serving); box-shadow: 0 0 0 4px var(--serving-soft); flex: none; }
.fc-engines { right: -92px; top: 96px; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; animation: floaty 8s ease-in-out infinite .2s; }
.fc-engines .fce { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fc-engines .fce.dim { color: var(--muted-2); }
.fc-engines .fce .run { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); margin-left: auto; transition: background .3s; }
.chat[data-state="working"] ~ .fc-engines .fce .run,
.chat[data-state="done"] ~ .fc-engines .fce .run { background: var(--serving); box-shadow: 0 0 7px var(--serving); animation: dotpulse 1.4s ease-in-out infinite; }
@media (max-width: 1080px) { .float-card { display: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards-3, .steps, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 0 18px; }
  .nav-links { display: none; }
  .sect { padding: 72px 0; }
  .cards-3, .steps, .trust-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn, .cta-row .cmd { justify-content: center; }
  .rrow { flex-wrap: wrap; }
}

/* ---------- community / Feishu QR ---------- */
.qr-card{max-width:300px;margin:0 auto;padding:22px;border-radius:20px;background:#fff;border:1px solid #e6e8ef;box-shadow:0 14px 44px -14px rgba(31,35,72,.20);text-align:center}
.qr-card .qr-img{width:240px;height:auto;border-radius:12px;display:block;margin:0 auto}
.qr-card .qr-cap{margin-top:14px;font-size:13px;color:#6b7280;display:flex;align-items:center;justify-content:center;gap:6px}
