/* ============================================================
   Mia — 宣传页样式
   设计语言提取自 Mia 真实代码 (src/renderer/styles.css)
   ============================================================ */

:root {
  /* product brand — used INSIDE the Mia window only (authentic Mia UI) */
  --accent: #5e5ce6;
  --accent-press: #4a47d6;
  --accent-soft: #efeefe;
  --accent-rgb: 94 92 230;
  --green: #30d158;
  --user-bubble: #5e5ce6;
  --user-bubble-soft: #dedcff;

  /* authentic Mia app chat canvas — neutral cool near-white (NOT the warm marketing beige) */
  --app-canvas: #f5f5f7;

  --claude: #d97706;
  --codex: #10a37f;
  --hermes: #5e5ce6;

  /* marketing accent — restrained ink */
  --ink-accent: #1a1917;
  --ink-accent-press: #000000;

  --ink: #1a1917;
  --ink-2: rgba(26, 25, 23, 0.62);
  --ink-3: rgba(26, 25, 23, 0.42);
  --ink-4: rgba(26, 25, 23, 0.22);

  --bg: #f6f5f1;
  --bg-soft: #efece6;
  --bg-tint: #efece6;
  --surface: #ffffff;
  --line: rgba(26, 25, 23, 0.09);
  --line-strong: rgba(26, 25, 23, 0.14);

  --shadow-sm: 0 1px 2px rgba(40, 38, 34, 0.06), 0 0 0 1px rgba(26, 25, 23, 0.03);
  --shadow: 0 14px 34px rgba(40, 38, 34, 0.10);
  --shadow-lg: 0 40px 90px rgba(40, 38, 34, 0.14), 0 8px 24px rgba(40, 38, 34, 0.07);
  --shadow-window: 0 50px 120px rgba(40, 38, 34, 0.18), 0 12px 32px rgba(40, 38, 34, 0.09);

  --app-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;

  --maxw: 1160px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--app-font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: rgba(26, 25, 23, 0.12); }

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

/* ===== Reveal animation primitive ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(246, 245, 241, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: transparent; }
.nav.hidden { transform: translateY(-100%); }
.nav {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--bg); font-size: 14px; font-weight: 600;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink-accent);
  color: var(--bg) !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.nav-cta:hover { background: var(--ink-accent-press); transform: translateY(-1px); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), background 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn-primary {
  background: var(--ink-accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--ink-accent-press); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: rgba(26,25,23,0.04); transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; }

/* ============================================================
   HERO — editorial split, no glow
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 44px;
}
.hero-copy { max-width: 640px; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.16);
}
h1.hero-title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 620;
  color: var(--ink);
  margin: 0 0 6px;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.hero-ctas .btn {
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
}
.hero-ctas .btn svg { width: 16px; height: 16px; }
.hero-note {
  font-size: 13px;
  color: var(--ink-3);
}

/* ===== Hero product mockup ===== */
.hero-product {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
}
.hero-product .miawin { width: 100%; }
.floaty {
  position: absolute;
  width: var(--s, 92px);
  z-index: 1;
  filter: drop-shadow(0 22px 30px rgba(40, 38, 34, 0.18));
  animation: floaty var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-22px) rotate(calc(var(--rot, 0deg) * -1)); }
}

/* ============================================================
   MIA APP WINDOW (faithful product mockup)
   ============================================================ */
.miawin {
  position: relative;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.035);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  z-index: 2;
}
.miawin-grid {
  display: grid;
  grid-template-columns: 56px 244px minmax(0, 1fr);
  height: 560px;
}
/* nav rail */
.mw-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 14px;
}
.mw-traffic {
  display: flex; gap: 7px;
  height: 24px; align-items: center;
}
.mw-traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mw-traffic i:nth-child(1) { background: #ff5f57; }
.mw-traffic i:nth-child(2) { background: #febc2e; }
.mw-traffic i:nth-child(3) { background: #28c840; }
.mw-rail-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(145deg, #6f6cf0, #5450dc);
  color: #fff; display: grid; place-items: center;
  font-weight: 600; font-size: 14px; margin: 6px 0 4px;
}
.mw-rail-div { width: 26px; height: 1px; background: var(--line); margin: 2px 0 6px; }
.mw-rail-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-3); position: relative;
}
.mw-rail-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mw-rail-btn.on { background: rgba(0,0,0,0.07); color: var(--accent); }
.mw-rail-btn em {
  position: absolute; top: 2px; right: 2px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 9px; font-style: normal; font-weight: 700;
  line-height: 15px; text-align: center;
}
.mw-rail-sp { flex: 1; }

/* conversation list */
.mw-list {
  background: var(--surface);
  border-radius: 13px 0 0 13px;
  padding: 12px 0 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mw-search {
  margin: 0 10px 8px;
  height: 30px; border-radius: 9px;
  background: rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 7px;
  padding: 0 10px; color: var(--ink-3); font-size: 12px;
}
.mw-rows { padding: 2px 6px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.mw-row {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 9px; align-items: center;
  padding: 8px; border-radius: 11px;
  cursor: default;
}
.mw-row.on { background: rgba(94, 92, 230, 0.12); }
.mw-row:hover:not(.on) { background: rgba(0,0,0,0.04); }
.mw-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative; flex: none;
  overflow: hidden;
}
.mw-av img { position: absolute; inset: -18% -10% auto; width: 120%; }
.mw-row-main { min-width: 0; }
.mw-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mw-name-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mw-name { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-role {
  flex: none;
  font-size: 9.5px; font-weight: 600; line-height: 1;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(26, 25, 23, 0.07); color: var(--ink-3);
  letter-spacing: 0.02em;
}
.mw-row.on .mw-role { background: rgba(94, 92, 230, 0.14); color: var(--accent); }
.mw-row.on .mw-name { color: var(--accent); }
.mw-time { font-size: 10.5px; color: var(--ink-3); flex: none; }
.mw-prev { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.mw-row.on .mw-prev { color: rgba(94,92,230,0.7); }
.mw-badge {
  margin-left: auto; min-width: 16px; height: 16px;
  padding: 0 5px; border-radius: 8px; background: var(--accent);
  color: #fff; font-size: 9px; font-weight: 700; line-height: 16px; text-align: center;
}

/* chat workspace */
.mw-chat {
  background: var(--app-canvas);
  border-radius: 0 13px 13px 0;
  display: grid; grid-template-rows: 52px minmax(0,1fr) auto;
  min-width: 0;
}
.mw-top {
  display: flex; align-items: center; gap: 11px;
  padding: 0 18px; border-bottom: 1px solid var(--line);
}
.mw-top .mw-av { width: 34px; height: 34px; }
.mw-top-name { font-size: 14.5px; font-weight: 550; }
.mw-top-meta { font-size: 11px; color: var(--ink-3); }
.mw-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 6px;
  background: rgba(94,92,230,0.12); color: var(--accent); font-weight: 500;
  margin-left: 2px;
}
.mw-body {
  padding: 18px 18px 8px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 13px;
}
.mw-msg { display: flex; gap: 9px; max-width: 80%; align-items: flex-end; }
.mw-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.mw-msg .mw-av { width: 28px; height: 28px; flex: none; }
.mw-bubble {
  padding: 9px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.mw-bubble.me { background: var(--user-bubble); color: #fff; box-shadow: 0 4px 14px rgba(94,92,230,0.28); }
.mw-bubble .mention { color: var(--accent); font-weight: 600; }
.mw-bubble.me .mention { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); }
.mw-bubble code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 5px;
}
.mw-bubble.me code { background: rgba(255,255,255,0.18); }
.mw-typing { display: inline-flex; gap: 4px; padding: 3px 2px; }
.mw-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: typing 1.3s infinite; }
.mw-typing i:nth-child(2) { animation-delay: 0.18s; }
.mw-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* permission banner inside chat */
.mw-perm {
  margin: 4px 0 2px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94,92,230,0.18);
}
.mw-perm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.mw-perm-head .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(94,92,230,0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,92,230,0.4);} 70% { box-shadow: 0 0 0 8px rgba(94,92,230,0);} 100% { box-shadow: 0 0 0 0 rgba(94,92,230,0);} }
.mw-perm-kick { font-size: 13px; font-weight: 600; color: var(--ink); }
.mw-perm-meta { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.mw-perm-cmd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; background: rgba(0,0,0,0.045);
  padding: 7px 10px; border-radius: 8px; color: var(--ink-2);
  margin-bottom: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mw-perm-actions { display: flex; gap: 7px; justify-content: flex-end; align-items: center; }
.mw-perm-actions .ghost { margin-right: auto; font-size: 12px; color: var(--ink-3); }
.mw-pbtn {
  height: 28px; padding: 0 14px; border-radius: 7px;
  font-size: 12px; font-weight: 500; border: 0; font-family: inherit;
  background: rgba(0,0,0,0.06); color: var(--ink-2);
}
.mw-pbtn.primary { background: var(--accent); color: #fff; }

/* composer */
.mw-composer {
  margin: 6px 14px 14px;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
}
.mw-composer-row { display: flex; align-items: center; gap: 9px; }
.mw-composer .plus { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); font-size: 17px; flex: none; }
.mw-composer .field { flex: 1; font-size: 13px; color: var(--ink-3); }
.mw-composer .send { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.mw-composer .send svg { width: 15px; height: 15px; }
.mw-composer-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.mw-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,0.045); }
.mw-chip .swatch { width: 11px; height: 11px; border-radius: 3px; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section.block { padding: 110px 0; position: relative; }
section.tint { background: var(--bg-soft); }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h2.h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  margin-top: 16px;
}
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ===== merged collab + control duo ===== */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
  align-items: start;
}
.duo-cap { margin-bottom: 14px; }
.duo-cap b {
  display: block;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
}
.duo-cap span {
  display: block;
  font-size: 13.5px; color: var(--ink-3);
  margin-top: 2px;
}
.duo .demo-card { height: 100%; }
.duo #groupBody { min-height: 300px; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== merged sync + engines combo ===== */
.combo { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.combo-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.combo-label b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.combo-label span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.combo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-card { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mini-icon { width: 38px; height: 38px; flex: none; color: var(--ink); }
.mini-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mini-logo { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--bg-soft); display: grid; place-items: center; }
.mini-logo img { width: 22px; height: 22px; }
.mini-logo.hermes { background: rgba(26,25,23,0.05); }
.mini-card h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mini-card span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
@media (max-width: 760px) {
  .combo-row { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .combo-cards { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   BOTS GRID
   ============================================================ */
.bots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.bot-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.3s;
}
.bot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.bot-card .glow { display: none; }
.bot-card:hover .glow { opacity: 1; }
.bot-portrait {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: var(--bg-soft);
  overflow: hidden; position: relative;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.bot-portrait img { position: absolute; width: 132%; left: -16%; top: -6%; }
.bot-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.bot-role { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 3px; }
.bot-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin-top: 12px; }
.bot-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.skill-chip {
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 7px;
  background: var(--bg-soft); color: var(--ink-2);
}
.bot-engine {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3); margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line); width: 100%;
}
.bot-engine .edot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   FEATURE SPLIT (image + text)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.flip .split-visual { order: 2; }
.feature-list { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .fi-icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.feature-item .fi-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-item h4 { font-size: 16.5px; font-weight: 600; margin: 0 0 3px; letter-spacing: -0.01em; }
.feature-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }

/* group chat demo card */
.demo-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.demo-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.demo-stack { display: flex; }
.demo-stack .mw-av { width: 36px; height: 36px; border: 2px solid var(--surface); margin-left: -12px; }
.demo-stack .mw-av:first-child { margin-left: 0; }
.demo-head-title { font-size: 15px; font-weight: 600; }
.demo-head-meta { font-size: 12px; color: var(--ink-3); }
.demo-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 360px;
}
.demo-body .mw-msg { max-width: 88%; }
.demo-body .mw-bubble { font-size: 14px; }
.demo-sender { font-size: 11px; color: var(--ink-3); margin: 0 0 4px 2px; font-weight: 500; }

/* ============================================================
   SYNC / DEVICES
   ============================================================ */
.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.device-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 26px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}
.device-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.device-icon { width: 44px; height: 44px; color: var(--ink); margin-bottom: 18px; }
.device-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.device-card h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.device-card .stat { font-size: 13px; color: var(--ink-3); font-weight: 500; margin: 4px 0 10px; }
.device-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   ENGINES STRIP
   ============================================================ */
.engines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.engine-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.engine-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.engine-logo {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-soft);
}
.engine-logo img { width: 28px; height: 28px; }
.engine-logo.hermes { background: rgba(26,25,23,0.05); }
.engine-logo.hermes svg { width: 28px; height: 28px; }
.engine-card h4 { font-size: 16px; font-weight: 600; }
.engine-card p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   TRUST / LOCAL vs CLOUD
   ============================================================ */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 52px;
}
.trust-card {
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
}
.trust-card.local { background: linear-gradient(160deg, #f3f2fb, #fbfbfe); }
.trust-card.cloud { background: var(--surface); }
.trust-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(94,92,230,0.09); margin-bottom: 16px;
}
.trust-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.trust-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }
.trust-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 11px; }
.trust-card li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.trust-card li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--green); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 48px; max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px 4px; cursor: pointer;
  font-size: 19px; font-weight: 550; letter-spacing: -0.02em;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--ink-3); transition: transform 0.3s; }
.faq-item[open] .faq-q .chev { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 4px 26px; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); max-width: 64ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
.final-glow {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side at 50% 0%, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.final .wrap { position: relative; z-index: 2; }
.final .floaty { filter: drop-shadow(0 22px 30px rgba(0,0,0,0.4)); }
.final h2 {
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  max-width: 16ch; margin: 0 auto;
}
.final p { font-size: clamp(16px,1.6vw,19px); color: rgba(246,245,241,0.66); margin: 18px auto 36px; max-width: 32ch; }
.final .btn-primary { background: var(--bg); color: var(--ink); }
.final .btn-primary:hover { background: #ffffff; }
.final .btn-ghost { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1px rgba(246,245,241,0.24); }
.final .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.final-note { font-size: 13px; color: rgba(246,245,241,0.5); margin-top: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero { padding: 110px 0 60px; }
  .hero-inner { gap: 40px; }
  .hero-copy { max-width: 600px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-visual { order: 0; }
  .bots { grid-template-columns: repeat(2, 1fr); }
  .devices { grid-template-columns: 1fr; }
  .engines { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .miawin-grid { grid-template-columns: 52px 210px minmax(0,1fr); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  section.block { padding: 80px 0; }
  .bots { grid-template-columns: 1fr; }
  .miawin { display: none; }
  .miawin-mobile-note { display: block; }
  .hero-stage { max-width: 420px; }
  .floaty, .float-chip { display: none; }
}

.miawin-mobile-note { display: none; }

/* ============================================================
   BOT AVATAR SYSTEM (refined, icon-based — replaces portraits)
   ============================================================ */
.av {
  display: grid;
  place-items: center;
  background: var(--av-bg, var(--bg-soft));
  color: var(--av-fg, var(--ink-3));
  flex: none;
  overflow: hidden;
}
.av svg {
  width: 52%; height: 52%;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.av--teal   { --av-bg: #e2f1ec; --av-fg: #0f9c83; }
.av--indigo { --av-bg: #eae9fb; --av-fg: #5b58e0; }
.av--violet { --av-bg: #efe9fa; --av-fg: #7f57d6; }
.av--rose   { --av-bg: #f9e8ec; --av-fg: #c46881; }
.av--amber  { --av-bg: #f5ecdc; --av-fg: #bd7d1e; }
.av--slate  { --av-bg: #eaedf2; --av-fg: #5d697e; }

/* floating glass bot chips (replace character cut-outs) */
.float-chip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 8px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(28, 26, 84, 0.16);
  animation: floaty var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.float-chip .av { width: 36px; height: 36px; border-radius: 11px; color: var(--av-fg); }
.float-chip b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.float-chip span { font-size: 11px; color: var(--ink-3); }
.float-chip .status {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.16); margin-left: 4px;
}
.final .float-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.final .float-chip span { color: rgba(255, 255, 255, 0.6); }
.final .float-chip .av { color: var(--av-fg); }
