/* OneBox landing page
 * Theme tokens: [data-theme="dark"] overrides the light defaults.
 */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --text: #0b1220;
  --text-2: #4a5568;
  --text-3: #7a869c;
  --border: #e3e9f2;
  --border-2: #d3dcea;
  --a1: #0891b2;
  --a2: #7c3aed;
  --a1-soft: rgba(8, 145, 178, .10);
  --a2-soft: rgba(124, 58, 237, .10);
  --grid: rgba(15, 23, 42, .055);
  --glow-1: rgba(8, 145, 178, .28);
  --glow-2: rgba(124, 58, 237, .24);
  --term-bg: #0b1120;
  --term-text: #d7e3f4;
  --term-dim: #6f819b;
  --term-ok: #34d399;
  --term-accent: #22d3ee;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .05), 0 20px 48px rgba(15, 23, 42, .10);
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Menlo", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Noto Sans", "Noto Sans SC", "Hiragino Sans", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --r: 16px;
}

[data-theme="dark"] {
  --bg: #05070d;
  --bg-alt: #080c15;
  --surface: #0c111c;
  --surface-2: #111827;
  --text: #e9eef8;
  --text-2: #9aa7bd;
  --text-3: #6b7a92;
  --border: #1b2434;
  --border-2: #26324a;
  --a1: #22d3ee;
  --a2: #a78bfa;
  --a1-soft: rgba(34, 211, 238, .10);
  --a2-soft: rgba(167, 139, 250, .10);
  --grid: rgba(148, 190, 255, .055);
  --glow-1: rgba(34, 211, 238, .26);
  --glow-2: rgba(167, 139, 250, .24);
  --term-bg: #080c14;
  --term-text: #dbe6f6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 56px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--mono); }

.grad {
  background: linear-gradient(100deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- ambient grid + glow ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 78%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  opacity: .85;
}

.orb-1 { width: 620px; height: 620px; top: -260px; left: -160px; background: var(--glow-1); }
.orb-2 { width: 560px; height: 560px; top: -180px; right: -180px; background: var(--glow-2); }
.orb-3 { width: 480px; height: 480px; top: 52%; left: 42%; background: var(--glow-2); opacity: .35; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-in { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 24px; height: 24px; border-radius: 7px; }
.brand span { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--text-2); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--a1);
  transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; }

[data-theme="dark"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: none; }

/* language dropdown */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text-2);
  font-family: var(--mono); font-size: 12px; cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { border-color: var(--border-2); color: var(--text); }
.lang-btn .chev { transition: transform .2s; }
.lang.open .lang-btn .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 178px; max-height: 340px; overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button[aria-current="true"] { color: var(--a1); background: var(--a1-soft); }
.lang-menu .code { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* ---------- hero ---------- */

.hero { padding: 88px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
}
.pill .dot {
  display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 0 3px var(--a1-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

h1 {
  margin: 22px 0 0;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 700;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 33em;
  font-size: 17.5px;
  color: var(--text-2);
  line-height: 1.68;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 22px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(100deg, var(--a1), var(--a2));
  color: #fff;
  box-shadow: 0 6px 22px -6px var(--glow-1), 0 6px 22px -8px var(--glow-2);
}
.btn-primary:hover { box-shadow: 0 12px 32px -6px var(--glow-1), 0 12px 32px -8px var(--glow-2); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }

.stats { display: flex; gap: 36px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--border); }
.stat-n { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.stat-l { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* phone frame */
.phone-stage { position: relative; display: grid; place-items: center; }

.phone-stage::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, var(--glow-1), transparent 68%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 268px;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--border-2), var(--surface));
  box-shadow: var(--shadow-lift);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface-2);
}
.phone-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.phone-screen img.on { opacity: 1; }

.phone-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.phone-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-2);
  transition: all .3s;
}
.phone-dots span.on { width: 18px; border-radius: 3px; background: var(--a1); }

/* ---------- sections ---------- */

section { padding: 84px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.head { max-width: 680px; margin: 0 auto 52px; text-align: center; }

.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a1);
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--a1-soft);
}

h2 {
  margin: 18px 0 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 680;
}

.head p { margin: 16px 0 0; font-size: 17px; color: var(--text-2); }

/* ---------- in-phone agent chat ---------- */

.chat-wrap { max-width: 400px; margin: 0 auto; }

.chat {
  border: 1px solid var(--border-2);
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.chat-top {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.chat-av {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--a1), var(--a2));
  color: #fff;
}
.chat-av svg { width: 19px; height: 19px; }

.chat-who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.chat-who strong { font-size: 14.5px; font-weight: 620; }
.chat-who em {
  display: flex; align-items: center; gap: 5px;
  font-style: normal; font-size: 12px; color: var(--text-3);
}
.chat-who .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  animation: pulse 2.4s ease-in-out infinite;
}

.chat-badge {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  font-size: 10.5px; color: var(--text-3);
}

.chat-body {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px 16px;
  min-height: 320px;
  background: var(--bg-alt);
}

@keyframes fadeUp { to { opacity: 1; transform: none; } }

.bub {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 14px; line-height: 1.62;
  border-radius: 16px;
  opacity: 0; transform: translateY(6px);
}
.bub.show { animation: fadeUp .45s ease forwards; }

.bub.me {
  align-self: flex-end;
  background: linear-gradient(100deg, var(--a1), var(--a2));
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bub.bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.bub.bot.ok { color: #0f9d58; font-weight: 500; }
[data-theme="dark"] .bub.bot.ok { color: #34d399; }

.call {
  align-self: flex-start;
  display: flex; align-items: center; gap: 9px;
  width: 88%;
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: 11px;
  background: var(--surface);
  opacity: 0; transform: translateY(6px);
}
.call.show { animation: fadeUp .45s ease forwards; }

.call-ic {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  background: var(--a1-soft); color: var(--a1);
}
.call-ic svg { width: 13px; height: 13px; }

.call code {
  min-width: 0;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.call-ok {
  display: grid; place-items: center;
  width: 16px; height: 16px; flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
}
[data-theme="dark"] .call-ok { color: #34d399; }
.call-ok svg { width: 10px; height: 10px; }

.chat-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.chat-bar span {
  flex: 1; min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-bar button {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 50%;
  background: linear-gradient(140deg, var(--a1), var(--a2));
  color: #fff;
}
.chat-bar button svg { width: 16px; height: 16px; }

.pip-note {
  margin: 20px 0 0;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2); text-align: left;
}
.pip-note svg { flex: none; width: 17px; height: 17px; color: var(--a1); margin-top: 3px; }

/* ---------- feature cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  opacity: 0; transition: opacity .22s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-lift); }
.card:hover::before { opacity: 1; }

.card-ic {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--a1-soft);
  color: var(--a1);
  margin-bottom: 18px;
}
.card-ic svg { width: 21px; height: 21px; }

.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 640; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.8px; color: var(--text-2); line-height: 1.7; }

/* ---------- feature catalogue ---------- */

.cat { margin-top: 96px; }

.cat-head { max-width: 680px; margin: 0 auto 30px; text-align: center; }
.cat-lead { margin: 16px 0 0; font-size: 17px; color: var(--text-2); }
.cat-head h2 { margin-top: 18px; }

.cat-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px;
  margin: 0 0 40px;
}
.cat-nav-lb {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-3);
  margin-right: 4px;
}
.cat-nav a {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px; color: var(--text-2);
  transition: all .18s;
}
.cat-nav a:hover {
  border-color: var(--a1);
  color: var(--a1);
  background: var(--a1-soft);
}

.cat-fold {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s ease, opacity .35s ease;
}
.cat-fold.open { opacity: 1; }

.cat-toggle-wrap { display: flex; justify-content: center; margin-top: 34px; }

.cat-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit; font-size: 14.5px; font-weight: 550;
  cursor: pointer;
  transition: all .2s;
}
.cat-toggle:hover {
  border-color: var(--a1);
  color: var(--a1);
  background: var(--a1-soft);
  transform: translateY(-2px);
}
.cat-toggle .chev { width: 15px; height: 15px; transition: transform .3s ease; }
.cat-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.fgroup { margin-top: 44px; }

.fgroup-t {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  color: var(--text-3);
}
.fgroup-t::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-2), transparent);
}

.fcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.fcard {
  display: flex; flex-direction: column;
  position: relative;
  padding: 24px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.fcard:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lift);
}

.fcard-ic {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  max-width: 40px; max-height: 40px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--a1-soft);
  color: var(--a1);
  flex-shrink: 0;
  overflow: hidden;
}
.fcard-ic svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.fcard h4 {
  margin: 0 0 8px;
  font-size: 16.5px; font-weight: 640; letter-spacing: -.01em;
}
.fcard > p {
  margin: 0;
  font-size: 14.5px; color: var(--text-2); line-height: 1.68;
}

.fcard-ask {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 9px 12px;
  border: 1px dashed var(--border-2);
  border-radius: 9px;
  background: var(--surface-2);
}
.fcard-ask > span {
  flex: none;
  font-family: var(--mono); font-size: 14px;
  color: var(--a1);
}
.fcard-ask code {
  min-width: 0;
  font-family: var(--mono); font-size: 12px; line-height: 1.5;
  color: var(--text-2);
}

/* ---------- privacy ---------- */

.priv-list { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.priv-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15.5px;
}
.priv-item svg { flex: none; width: 19px; height: 19px; color: var(--a1); }

/* ---------- AI engines ---------- */

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

.ai-cols { display: flex; flex-direction: column; gap: 14px; }

.ai-item {
  display: flex; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .22s ease, transform .22s ease;
}
.ai-item:hover { border-color: var(--border-2); transform: translateX(3px); }

.ai-ic {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: var(--a1-soft); color: var(--a1);
}
.ai-ic svg { width: 19px; height: 19px; }

.ai-item h3 { margin: 0 0 5px; font-size: 16px; font-weight: 640; letter-spacing: -.01em; }
.ai-item p { margin: 0; font-size: 14.3px; color: var(--text-2); line-height: 1.65; }

.engine {
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.engine-top {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.engine-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.engine-top i:first-child { background: #ec6a5e; }
.engine-top i:nth-child(2) { background: #f4bf4f; }
.engine-top i:nth-child(3) { background: #61c554; }
.engine-top strong { margin-left: 8px; font-size: 13px; font-weight: 600; }

.engine-fields { margin: 0; padding: 4px 0; }
.engine-fields > div {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 16px;
}
.engine-fields > div + div { border-top: 1px solid var(--border); }
.engine-fields dt { flex: none; width: 84px; font-size: 12.5px; color: var(--text-3); }
.engine-fields dd {
  min-width: 0; margin: 0;
  font-size: 13px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.engine-fields dd.secret { letter-spacing: .1em; color: var(--text-2); }

.ai-note {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 30px auto 0;
  font-size: 13.5px; color: var(--text-3); text-align: center;
}
.ai-note svg { flex: none; width: 16px; height: 16px; color: var(--a1); }

/* ---------- models ---------- */

.models {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 820px; margin: 0 auto;
}
.model {
  padding: 10px 20px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px; font-weight: 550;
  transition: all .2s;
}
.model:hover {
  border-color: var(--a1);
  color: var(--a1);
  background: var(--a1-soft);
  transform: translateY(-2px);
}

/* ---------- download ---------- */

.dl {
  padding: 56px 44px;
  border: 1px solid var(--border-2);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 140% at 50% 0%, var(--a1-soft), transparent 70%),
    var(--surface);
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.dl h2 { margin-top: 14px; }
.dl > p { margin: 14px auto 0; max-width: 460px; color: var(--text-2); font-size: 16.5px; }

.dl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.dl-note {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-3);
}
.dl-note b { color: var(--text-2); font-weight: 600; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--border); padding: 52px 0 40px; background: var(--bg-alt); }

.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }

.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.foot-brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-brand + p { margin: 14px 0 0; font-size: 14px; color: var(--text-3); max-width: 300px; }

.foot-col h4 {
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 500;
}
.foot-col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-2); transition: color .18s; }
.foot-col a:hover { color: var(--a1); }

.foot-bot {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px; color: var(--text-3);
}

/* ---------- sub-page (per-tool landing) ---------- */

.page-hero { padding: 56px 0 76px; }

.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 30px;
  font-size: 13px; color: var(--text-3);
}
.crumb a { color: var(--text-3); transition: color .18s; }
.crumb a:hover { color: var(--a1); }
.crumb span { opacity: .5; }
.crumb em { font-style: normal; color: var(--text-2); }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  margin: 20px 0 0;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 700;
}

.page-sub {
  margin: 18px 0 0;
  max-width: 32em;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.66;
}

.page-shot { position: relative; display: grid; place-items: center; }
.page-shot::before {
  content: "";
  position: absolute; inset: -12%;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, var(--glow-1), transparent 68%);
  pointer-events: none;
}
.page-shot img {
  position: relative;
  width: 240px;
  border-radius: 30px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lift);
}

/* Two-shot stack for tool landing pages */
.shot-stack {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.shot-stack img:first-child {
  position: relative;
  z-index: 1;
  width: 240px;
  border-radius: 30px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lift);
}
.shot-stack img:last-child {
  position: absolute;
  z-index: 0;
  left: 60px;
  width: 240px;
  border-radius: 30px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lift);
  opacity: .65;
  transform: scale(.96);
}

.steps {
  list-style: none;
  padding: 0;
  display: grid; gap: 16px;
  max-width: 760px; margin: 0 auto;
}
.steps li {
  display: flex; gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.step-n {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--a1), var(--a2));
  color: #fff;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.steps h3 { margin: 3px 0 6px; font-size: 16.5px; font-weight: 620; }
.steps p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.68; }

.asks { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
.ask {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
  background: var(--surface);
}
.ask > span { flex: none; font-family: var(--mono); font-size: 15px; color: var(--a1); }
.ask code { min-width: 0; font-family: var(--mono); font-size: 13.5px; color: var(--text); }

.faq { display: grid; gap: 14px; max-width: 780px; margin: 0 auto; }
.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.faq-item h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 620; }
.faq-item p { margin: 0; font-size: 14.8px; color: var(--text-2); line-height: 1.72; }

.rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.rel-card:hover { transform: translateY(-3px); border-color: var(--a1); }
.rel-card strong { font-size: 16px; font-weight: 620; }
.rel-card span { font-size: 14px; color: var(--text-2); line-height: 1.62; }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 0 48px; }
  .hero-sub, .head { margin-inline: auto; }
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .cards { grid-template-columns: 1fr; }
  .fcards { grid-template-columns: repeat(2, 1fr); }
  .cat { margin-top: 72px; }
  .ai-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .rel { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .stats { gap: 24px; flex-wrap: wrap; }
  .stat-n { font-size: 24px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { gap: 10px; }
  .fcards { grid-template-columns: 1fr; }
  .chat-body { min-height: 280px; }
  .cat-nav { gap: 6px; margin-bottom: 30px; }
  .cat-nav-lb { display: none; }
  .cat-nav a { font-size: 12.5px; padding: 5px 11px; }
  .page-hero { padding: 40px 0 52px; }
  .page-shot img { width: 200px; }
  .shot-stack { flex-direction: column; gap: 12px; }
  .shot-stack img:last-child { position: relative; left: 0; opacity: 1; transform: none; }
  .steps li { padding: 16px 18px; gap: 12px; }
  .faq-item { padding: 18px 18px 20px; }
  .engine-fields dt { width: 68px; }
  .engine-fields > div { gap: 10px; padding: 10px 14px; }
  .ai-note { flex-direction: column; gap: 6px; }
  .dl { padding: 40px 22px; }
  .phone { width: 232px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 工具页：真实截图画廊 ---------- */
.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}
.shot-row img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* ---------- 首页工具卡：可点击跳转详情 ---------- */
.fcard-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
/* 链到中文文章的卡片右上角「中文」角标 */
.fcard-zh {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--a1-soft);
  color: var(--a1);
  pointer-events: none;
}
.fcard-link:hover {
  color: inherit;
}
.fcard-link::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 14px;
  width: 16px;
  height: 16px;
  opacity: .35;
  background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .2s, transform .2s;
}
.fcard-link:hover::after { opacity: .7; transform: translateX(2px); }

/* ---------- 首页工具卡：内联 Learn more（无落地页的卡片备用） ---------- */
.fcard-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--a1);
  text-decoration: none;
}
.fcard-more::after {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s ease;
}
.fcard-more:hover::after { transform: translateX(3px); }

@media (max-width: 560px) {
  .shot-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
