:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --border: #e3e6ee;
  --text: #161a23;
  --text-dim: #5b6373;
  --accent: #5a4bd6;
  --accent-2: #7a66e8;
  --echo: #128c4b;
  --lexra: #1673d6;
  --zerva: #7c3aed;
  --radius: 16px;
  --text-faint: #9aa1b1;
  --font: 'Inter', 'Noto Sans TC', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 9px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.logo-text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); }

.menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Products dropdown in the top nav. */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: .7; }
.nav-dropdown .dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: -14px; min-width: 196px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(22, 26, 35, 0.10); padding: 8px; z-index: 60;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--text-dim);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.nav-dropdown .dropdown-menu a small { display: block; color: var(--text-faint); font-size: 12px; margin-top: 1px; }
.nav-dropdown .dropdown-menu a:hover { background: rgba(108, 92, 231, 0.07); color: var(--text); }
.nav-dropdown .dropdown-menu a.active { color: var(--accent); }
@media (max-width: 720px) {
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown .dropdown-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 12px; }
  .nav-links .nav-dropdown .dropdown-menu a { padding: 8px 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(90, 75, 214, 0.28);
}
.btn-primary:hover { box-shadow: 0 6px 26px rgba(90, 75, 214, 0.4); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(108, 92, 231, 0.13), transparent 65%),
    radial-gradient(500px 350px at 80% 20%, rgba(58, 167, 255, 0.10), transparent 65%),
    radial-gradient(500px 400px at 50% 90%, rgba(37, 211, 102, 0.06), transparent 65%);
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; left: -120px; top: -80px; background: radial-gradient(circle, rgba(108,92,231,0.35), transparent 70%); }
.orb-2 { width: 420px; height: 420px; right: -100px; top: 60px; background: radial-gradient(circle, rgba(58,167,255,0.28), transparent 70%); animation-delay: -5s; }
.orb-3 { width: 360px; height: 360px; left: 32%; bottom: -160px; background: radial-gradient(circle, rgba(37,211,102,0.2), transparent 70%); animation-delay: -9s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-36px) translateX(24px) scale(1.06); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,26,35,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,26,35,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 440px at 50% 28%, #000 30%, transparent 75%);
  mask-image: radial-gradient(720px 440px at 50% 28%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(90, 75, 214, 0.08);
  border: 1px solid rgba(90, 75, 214, 0.22);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: none;
  margin: 0 auto 22px;
  color: var(--text);
}
@media (min-width: 900px) {
  .hero h1 {
    white-space: nowrap;
    font-size: clamp(30px, 3.5vw, 42px);
  }
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 7px 15px;
  backdrop-filter: blur(4px);
}
.hero-badges .badge svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.hero-badges .badge b { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--pc, var(--accent));
  box-shadow: 0 16px 40px rgba(22, 26, 35, 0.1);
}
.product-echo  { --pc: var(--echo); }
.product-lexra { --pc: var(--lexra); }
.product-zerva { --pc: var(--zerva); }

.product-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent);
}
.product-icon svg { width: 26px; height: 26px; }

.product-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.product-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--pc);
  margin-bottom: 14px;
}
.product-desc { font-size: 15px; color: var(--text-dim); margin-bottom: 20px; }

.product-features { list-style: none; margin-bottom: 8px; flex: 1; }
.product-features li {
  position: relative;
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 24px;
  margin-bottom: 10px;
}
.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pc);
  font-weight: 700;
}

.product-link {
  margin-top: 18px;
  color: var(--pc);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.product-link:hover { text-decoration: underline; }

/* ---------- Values ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.value-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta-section { text-align: center; }
.cta-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4536b8, #6c5ce7 55%, #8b7cf0);
  border-radius: 28px;
  padding: 76px 32px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(90, 75, 214, 0.32);
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px 210px at 85% 18%, rgba(255,255,255,0.22), transparent 65%),
    radial-gradient(280px 220px at 12% 92%, rgba(255,255,255,0.12), transparent 65%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.cta-inner h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #fff;
}
.cta-inner p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 16.5px;
}
.cta-inner .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.cta-inner .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28); }
.cta-inner .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}
.cta-inner .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.16); }

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-alt); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-mark { margin-bottom: 12px; }
.footer-brand .logo-text { font-size: 17px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { color: var(--text-dim); font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Scroll progress ---------- */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  transition: width 0.08s linear;
}

/* ---------- Hero visual ---------- */
.hero-visual { max-width: 720px; margin: 0 auto; position: relative; }
.visual-window {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(22,26,35,0.16);
  overflow: hidden;
  text-align: left;
  backdrop-filter: blur(8px);
}
.visual-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(246,247,251,0.85); }
.visual-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.visual-bar span:nth-child(1) { background: #ff5f57; }
.visual-bar span:nth-child(2) { background: #febc2e; }
.visual-bar span:nth-child(3) { background: #28c840; }
.visual-bar i { margin-left: 10px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.visual-body { position: relative; padding: 26px 28px 32px; background: #fbfbfd; }
.chat-mock { max-width: 540px; margin: 0 auto; }
.chat-day { text-align: center; font-size: 11px; letter-spacing: 0.16em; font-weight: 700; color: var(--text-faint); margin-bottom: 18px; }
.chat-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.chat-row.chat-out { justify-content: flex-end; }
.chat-avatar { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #2ec47a, #128c4b); color: #fff; font-size: 12px; font-weight: 700; }
.chat-bubble { max-width: 78%; background: #fff; border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 13.5px; color: var(--text); box-shadow: 0 2px 8px rgba(22,26,35,0.05); }
.chat-bubble-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; border-radius: 14px 14px 4px 14px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 34px rgba(22,26,35,0.14); animation: floatY 5s ease-in-out infinite; }
.float-card svg { width: 18px; height: 18px; color: var(--echo); flex: none; }
.float-card b { display: block; font-size: 12.5px; font-weight: 700; }
.float-card small { font-size: 11px; color: var(--text-dim); }
.float-card-1 { left: -36px; top: 42%; animation-delay: -2s; }
.float-card-2 { right: -36px; bottom: 10%; }
.float-card-2 svg { color: var(--lexra); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 44px; color: var(--text-dim); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.scroll-hint svg { width: 18px; height: 18px; animation: bounceDown 1.8s ease-in-out infinite; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(7px); opacity: 1; } }

/* ---------- Stats band ---------- */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; color: var(--text-dim); }

/* ---------- Product previews ---------- */
.product-preview { margin: -32px -28px 26px; height: 150px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; transition: border-color 0.25s; }
.product-card:hover .product-preview { border-bottom-color: color-mix(in srgb, var(--pc) 40%, var(--border)); }
.product-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(255,255,255,0.92)); pointer-events: none; }
.audit-chip { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; color: var(--text-dim); }
.mini-chat { width: 100%; max-width: 250px; padding: 16px; }
.mc-row { display: flex; margin-bottom: 8px; }
.mc-row.mc-out { justify-content: flex-end; }
.mc-bubble { max-width: 84%; font-size: 11.5px; background: #fff; border: 1px solid var(--border); border-radius: 10px 10px 10px 3px; padding: 7px 10px; color: var(--text-dim); }
.mc-out .mc-bubble { background: color-mix(in srgb, var(--echo) 13%, #fff); border-color: color-mix(in srgb, var(--echo) 25%, transparent); color: var(--echo); border-radius: 10px 10px 3px 10px; font-weight: 600; }

/* Live-chat feel: the Echo mockup bubbles pop in one after another like a
   real conversation, then a typing indicator pulses while a reply is coming.
   Gated on .visible so the sequence plays when the section scrolls into view
   (the reveal observer adds .visible), not from the moment the page loads. */
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}
.product-detail-visual .mini-chat .mc-row { opacity: 1; }
.product-detail.visible .product-detail-visual .mini-chat .mc-row { opacity: 0; animation: bubbleIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.product-detail.visible .product-detail-visual .mini-chat .mc-row:nth-child(1) { animation-delay: 0.35s; }
.product-detail.visible .product-detail-visual .mini-chat .mc-row:nth-child(2) { animation-delay: 1.05s; }
.product-detail.visible .product-detail-visual .mini-chat .mc-row:nth-child(3) { animation-delay: 1.75s; }
.product-detail.visible .product-detail-visual .mini-chat .mc-row:nth-child(4) { animation-delay: 2.45s; }
.product-detail.visible .product-detail-visual .mini-chat .mc-row:nth-child(5) { animation-delay: 3.25s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.mc-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 3px;
}
.mc-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); animation: typingDot 1.1s ease-in-out infinite; }
.mc-typing i:nth-child(2) { animation-delay: 0.18s; }
.mc-typing i:nth-child(3) { animation-delay: 0.36s; }
.mini-doc { width: 205px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 26px rgba(22,26,35,0.08); transform: rotate(-2deg); }
.mini-doc .doc-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 10px; color: var(--lexra); }
.mini-doc .doc-title svg { width: 15px; height: 15px; }
.mini-doc .doc-line { display: block; height: 7px; border-radius: 4px; background: var(--border); margin-bottom: 7px; }
.mini-doc .doc-line:nth-child(3n) { width: 74%; }
.mini-doc .doc-line:nth-child(3n+1) { width: 92%; }
.mini-doc .doc-line:nth-child(3n+2) { width: 58%; }
.mini-doc .doc-ocr { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; color: #fff; background: var(--lexra); border-radius: 6px; padding: 3px 8px; }
.mini-list { width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 26px rgba(22,26,35,0.08); }
.ml-item { display: flex; align-items: center; gap: 9px; padding: 6px 2px; border-bottom: 1px dashed var(--border); }
.ml-item:last-child { border-bottom: 0; }
.ml-avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--zerva) 20%, #fff); color: var(--zerva); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ml-name { font-size: 11.5px; font-weight: 600; }
.ml-sub { font-size: 10px; color: var(--text-dim); }
.ml-tag { margin-left: auto; font-size: 9.5px; font-weight: 700; color: var(--zerva); background: color-mix(in srgb, var(--zerva) 12%, transparent); border-radius: 999px; padding: 2px 8px; }
.product-card .product-icon { margin-bottom: 18px; }
.product-audience { font-size: 12.5px; color: var(--text-dim); border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 16px; }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(22,26,35,0.1); border-color: var(--accent); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.step-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--text-dim); }

/* ---------- Value icons ---------- */
.value-card { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(22,26,35,0.09); border-color: var(--accent-2); }
.value-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 16px; background: rgba(90, 75, 214, 0.09); color: var(--accent); border: 1px solid rgba(90, 75, 214, 0.18); }
.value-icon svg { width: 22px; height: 22px; }
.value-card:nth-child(2) .value-icon { background: rgba(18, 140, 75, 0.09); color: var(--echo); border-color: rgba(18, 140, 75, 0.2); }
.value-card:nth-child(3) .value-icon { background: rgba(124, 58, 237, 0.09); color: var(--zerva); border-color: rgba(124, 58, 237, 0.2); }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 780px; }
.faq-list { margin-top: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: var(--accent-2); box-shadow: 0 10px 28px rgba(22, 26, 35, 0.08); }
.faq-item h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}
.faq-item h4::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.25s;
  flex: none;
}
.faq-item.open h4::after { transform: rotate(45deg); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-body { max-height: 320px; padding: 0 22px 18px; }
.faq-body p { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }

/* ---------- Product detail sections (on the main page) ---------- */
.product-details { display: block; }
.product-detail { padding: 20px 0 88px; }
.product-detail + .product-detail { border-top: 1px solid var(--border); }
.product-detail-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-detail-alt .product-detail-inner { grid-template-columns: 1fr 1.2fr; }
.product-detail-alt .product-detail-visual { order: 1; }
.product-detail-text .product-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.product-detail-text .product-title-row .product-icon { width: 44px; height: 44px; margin-bottom: 0; flex: none; }
.product-detail-text h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.product-detail-text .product-tag { margin-bottom: 16px; font-size: 14px; }
.product-lead { font-size: 17px; color: var(--text-dim); line-height: 1.7; margin-bottom: 26px; }
.product-detail-text h4 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.product-detail-text h4:first-of-type { margin-top: 0; }
.product-detail-text p:not(.product-tag):not(.product-lead):not(.product-audience) { font-size: 15px; color: var(--text-dim); line-height: 1.7; }
.product-detail-text .product-features { margin-bottom: 0; }
.product-detail-text .product-features li { font-size: 14.5px; }
.product-detail-text .product-audience { margin-top: 22px; }
.product-detail-cta { margin-top: 28px; }
.product-detail-visual { display: flex; align-items: center; justify-content: center; }
.detail-visual-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 36px;
  box-shadow: 0 26px 64px rgba(22, 26, 35, 0.09);
}
.detail-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(340px 220px at 18% 0%, rgba(108, 92, 231, 0.06), transparent 65%);
  pointer-events: none;
}
.product-detail-visual .mini-chat { max-width: 320px; padding: 0; }
.product-detail-visual .mc-bubble { font-size: 13.5px; padding: 10px 13px; }
.product-detail-visual .mini-doc { width: 280px; padding: 18px 20px; transform: rotate(-2deg); }
.product-detail-visual .mini-doc .doc-title { font-size: 13px; }
.product-detail-visual .mini-doc .doc-line { height: 8px; }
.product-detail-visual .doc-fields { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.product-detail-visual .doc-fields span { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.product-detail-visual .doc-fields i { font-style: normal; color: var(--text-faint); }
.product-detail-visual .doc-fields b { font-weight: 600; color: var(--text); }
.product-detail-visual .mini-list { width: 100%; max-width: 320px; padding: 14px 16px; }
.product-detail-visual .ml-name { font-size: 12.5px; }
.product-detail-visual .ml-sub { font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid, .value-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(22, 26, 35, 0.08);
    padding: 20px 24px;
    gap: 18px;
  }
  .hero { padding: 140px 0 80px; }
  .section { padding: 72px 0; }
}

/* ---------- Enhancements: responsive ---------- */
@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .nav-actions .btn { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .stat + .stat { border-left: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .product-detail { padding: 20px 0 56px; }
  .product-detail-inner,
  .product-detail-alt .product-detail-inner { grid-template-columns: 1fr; gap: 44px; }
  .product-detail-alt .product-detail-visual { order: 0; }
  .detail-visual-card { max-width: 420px; }
}
@media (max-width: 720px) {
  .hero-badges { margin-bottom: 36px; }
  .float-card { display: none; }
  .visual-body { padding: 18px 14px 22px; }
  .chat-bubble { max-width: 88%; font-size: 12.5px; }
  .product-preview { height: 128px; }
  .cta-inner { padding: 52px 22px; }
}
