/* Fynix Task landing page — blue, purple and white. */
:root {
  --ink: #0f1733;          /* deep navy text (no pure black) */
  --muted: #5a6280;
  --line: #e4e7f5;
  --paper: #ffffff;
  --tint: #f6f7ff;         /* lavender-white sections */
  --blue: #2f6bff;
  --purple: #7c3aed;
  --violet: #5b3df5;       /* the app's brand purple */
  --accent: #5b3df5;
  --grad: linear-gradient(120deg, #2f6bff, #5b3df5 55%, #8b5cf6);
  --radius: 18px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Songti SC", "Noto Serif SC", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 15px; height: 15px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-accent, .btn-dark, .btn-light { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(79, 70, 229, .28); }
.btn-accent:hover, .btn-dark:hover, .btn-light:hover { box-shadow: 0 14px 34px rgba(79, 70, 229, .38); }
.btn-soft { background: #fff; color: var(--violet); border-color: #d9dcf5; }
.btn-soft:hover { border-color: #b9b0ff; }
.btn-outline-dark { background: #fff; color: var(--ink); border-color: #d9dcf5; box-shadow: 0 4px 14px rgba(47, 107, 255, .08); }
.btn-outline-dark:hover { border-color: #b9b0ff; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); color: var(--ink); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--violet); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15px; color: var(--ink); font-weight: 500; }
.nav-login:hover { color: var(--violet); }
.nav-burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-burger span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav-burger[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 24px 20px; background: #fff; }
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 12px; }

/* ---- hero (light, blue/purple glow) ---- */
.hero { position: relative; overflow: hidden; color: var(--ink); padding: 64px 0 56px;
  background: radial-gradient(60% 70% at 85% 10%, rgba(139, 92, 246, .20), transparent 70%),
              radial-gradient(50% 60% at 10% 90%, rgba(47, 107, 255, .16), transparent 70%),
              linear-gradient(180deg, #f7f8ff, #ffffff); }

.hero-glow { display: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: .92fr 1.38fr; gap: 44px; align-items: center; }
.hero .wrap, .nav .wrap { width: min(1360px, 100% - 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid #dcdcf7; background: #fff; font-size: 13px; font-weight: 500; color: var(--violet); box-shadow: 0 4px 14px rgba(91, 61, 245, .08); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(91, 61, 245, .6); }
.hero-title { margin: 0; font-size: clamp(34px, 3.7vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; text-wrap: balance; }
.hero-title .line { display: block; }
:lang(zh-CN) .hero-title, :lang(zh-TW) .hero-title { letter-spacing: 0; font-size: clamp(32px, 3.9vw, 54px); word-break: keep-all; text-wrap: nowrap; }
@media (max-width: 600px) { :lang(zh-CN) .hero-title, :lang(zh-TW) .hero-title { text-wrap: wrap; } }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shape { display: inline-block; vertical-align: middle; border-radius: 12px; margin: 0 0 .08em .25em; }
.shape-a { width: .7em; height: .5em; background: linear-gradient(135deg, #7aa2ff, var(--blue)); transform: skewX(-18deg); }
.shape-b { width: .55em; height: .55em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a78bfa 45%, var(--violet)); }
.hero-sub { margin: 24px 0 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-tag { margin: 16px 0 0; font-weight: 700; color: var(--blue); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; }

.window { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(47, 58, 160, .35), 0 0 0 1px rgba(91, 61, 245, .04); }
.window-bar { display: flex; gap: 7px; padding: 12px 14px; background: #f7f8fc; border-bottom: 1px solid var(--line); }
.window-bar i, .hx-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2), .hx-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3), .hx-bar i:nth-child(3) { background: #28c840; }
.light-window { box-shadow: 0 30px 80px -24px rgba(47, 58, 160, .25); }
.phone { border-radius: 34px; padding: 8px; background: #fff; box-shadow: 0 30px 70px -20px rgba(47, 58, 160, .45); border: 1px solid #dfe3f5; }
.phone img { border-radius: 27px; }

.works { position: relative; margin-top: 72px; text-align: center; }
.works p { margin: 0 0 18px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.works-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin: 0; padding: 0; list-style: none; }
.works-logos li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: #6a7190; }
.works-logos svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- live app mock in the hero ---- */
.hx { position: relative; text-align: left; }
.hx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hx-body { display: grid; grid-template-columns: 220px 1fr; height: 560px; font-size: 13px; overflow: hidden; }
.hx-chat::-webkit-scrollbar { display: none; }
.hx-side { display: flex; flex-direction: column; padding: 12px 10px; background: #f6f7fc; border-right: 1px solid var(--line); }
.hx-bar { display: flex; gap: 7px; padding: 2px 4px 14px; }
.hx-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 12px; }
.hx-brand b { font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.hx-nav span, .hx-tasks button { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 9px; border-radius: 8px; color: #2a3150; }
.hx-nav em, .hx-tasks em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-sec { margin: 16px 8px 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.hx-tasks button { width: 100%; border: 0; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .2s; }
.hx-tasks button:hover { background: #eceefa; }
.hx-tasks button.on { background: #e6e3ff; color: var(--violet); font-weight: 600; }
.hx-spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid transparent; }
.hx-tasks button.busy .hx-spin { border-color: #c9c2ff; border-top-color: var(--violet); animation: hx-spin .8s linear infinite; }
.hx-user { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 6px; }
.hx-user span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 10px; font-weight: 700; }
.hx-user b { font-weight: 500; }
.hx-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.hx-head { height: 46px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); }
.hx-title { font-size: 14px; }
.hx-chat { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.hx-who { align-self: flex-end; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hx-who i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-size: 9px; font-weight: 700; }
.hx-user-msg { align-self: flex-end; max-width: 85%; padding: 9px 13px; border-radius: 12px; background: #eef1ff; color: var(--ink); line-height: 1.5; animation: hx-in .3s ease; }
.hx-bot { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-weight: 600; animation: hx-in .3s ease; }
.hx-bot img { width: 18px; height: 18px; }
.hx-think { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); animation: hx-in .3s ease; }
.hx-think .dots i { display: inline-block; width: 4px; height: 4px; margin: 0 1px; border-radius: 50%; background: #a594ff; animation: hx-dot 1s infinite; }
.hx-think .dots i:nth-child(2) { animation-delay: .15s; }
.hx-think .dots i:nth-child(3) { animation-delay: .3s; }
.hx-out { display: flex; flex-direction: column; gap: 8px; }
.hx-out > * { animation: hx-in .35s ease both; }
.hx-out h4 { margin: 2px 0; font-size: 15px; }
.hx-out ul { margin: 0; padding-left: 18px; line-height: 1.6; color: #2a3150; }
.hx-out li { margin: 2px 0; }
.hx-imgs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.hx-imgs span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: end start; padding: 6px; font-size: 10px; font-weight: 600; color: #fff;
  background: var(--g, linear-gradient(135deg, #f9a8d4, #c084fc)); box-shadow: inset 0 -30px 30px -20px rgba(20, 20, 60, .3); }
.hx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hx-table th, .hx-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.hx-table th { color: var(--muted); font-weight: 600; background: #f7f8fc; }
.hx-table tr.me td { color: var(--violet); font-weight: 600; }
.hx-composer { margin: 0 16px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; color: #9aa0b8; }
.hx-composer div { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); }
.hx-composer i { flex: 1; }
.hx-composer b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; }
.hx-composer b svg { width: 14px; height: 14px; }
.hx-cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; display: flex; align-items: flex-end; gap: 4px;
  transform: translate(420px, 320px); transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.hx-cursor svg { width: 26px; height: 26px; fill: var(--blue); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 4px 8px rgba(47, 107, 255, .45)); transition: transform .15s; }
.hx-cursor.press svg { transform: scale(.82); }
.hx-cursor span { margin: 0 0 -18px -2px; padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(91, 61, 245, .35); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.hx-cursor.hint span { opacity: 1; transform: none; }
.hx.user .hx-cursor { opacity: 0; }
@keyframes hx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hx-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes hx-spin { to { transform: rotate(360deg); } }

/* ---- sections ---- */
.section { padding: 110px 0; }
.section.tight { padding-top: 20px; }
.section.light { background: var(--paper); }
.section.soft { background: var(--tint); }
.section.dark { background: linear-gradient(135deg, #eaf0ff 0%, #f1ecff 55%, #fbf8ff 100%); color: var(--ink); overflow: hidden; }
.kicker { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--violet); letter-spacing: .02em; }
.kicker.light-k { color: var(--violet); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.5px; }
.display { margin: 0; font-size: clamp(44px, 6.4vw, 86px); line-height: 1.02; }
.display.sm { font-size: clamp(36px, 4.6vw, 60px); }
.lead { margin: 22px auto 0; max-width: 680px; font-size: 20px; line-height: 1.6; color: var(--muted); }
.center-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.showcase { margin-top: 64px; }
.on-dark { color: var(--ink); }
.on-dark-muted { color: var(--muted); font-size: 18px; line-height: 1.65; }

.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.feature.flip .feature-copy { order: 2; }
.feature .h3 { margin: 0 0 16px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; }
.feature-copy > p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.feature-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(47, 58, 160, .25); background: #fff; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(91, 61, 245, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3df5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks.on-dark li { color: var(--ink); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 40px; border-top: 1px solid var(--line); }
.card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.card h4 { margin: 18px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }
.card-icon, .agent-av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.card-icon svg, .agent-av svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 56px auto 40px; }
.agent { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.agent:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(47, 58, 160, .25); }
.agent .agent-av { width: 56px; height: 56px; border-radius: 50%; }
.agent h4 { margin: 18px 0 6px; font-size: 18px; }
.agent p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.mobile { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.mobile-copy .btn { margin-top: 30px; }
.mobile-copy h2 { margin-bottom: 20px; }
.phones { position: relative; height: 620px; }
.phones .phone { position: absolute; width: 44%; }
.phones .p1 { left: 0; top: 60px; transform: rotate(-6deg); }
.phones .p2 { left: 28%; top: 0; z-index: 2; }
.phones .p3 { right: 0; top: 70px; transform: rotate(6deg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.step { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 18px; background: var(--grad); }
.step h4 { margin: 20px 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.plan.featured { border-color: #a99cff; box-shadow: 0 24px 60px -20px rgba(91, 61, 245, .35); }
.plan .badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--grad); }
.plan h3 { margin: 18px 0 8px; font-size: 40px; }
.plan-desc { margin: 0; min-height: 48px; color: var(--muted); line-height: 1.55; font-size: 15px; }
.price { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.price b { display: block; font-size: 30px; color: var(--ink); margin-bottom: 2px; }
.plan .checks { flex: 1; margin: 20px 0 26px; }
.plan .btn-dark { background: #fff; color: var(--violet); border-color: #d9dcf5; box-shadow: none; }
.plan .btn-dark:hover { border-color: #a99cff; }
.plan-mark { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #b9c4f5; position: relative; }
.plan-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--blue); opacity: .18; }
.plan-mark.m2::after { opacity: .4; }
.plan-mark.m3 { border-color: var(--violet); }
.plan-mark.m3::after { background: var(--grad); opacity: 1; }
.plan-mark.m4::after { background: var(--purple); opacity: .75; }

details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
details:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--violet); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; font-size: 16px; }

.cta-band { padding: 100px 0; background: var(--grad); color: #fff; }
.cta-band .display, .cta-band .on-dark { color: #fff; }
.cta-band .btn-accent { background: #fff; color: var(--violet); box-shadow: 0 10px 30px rgba(20, 20, 80, .2); }
.cta-band .btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; }

/* ---- footer (light) ---- */
.footer { background: var(--tint); color: var(--muted); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.brand.on-dark { color: var(--ink); }
.footer-tag { margin: 12px 0 0; font-size: 14px; }
.footer h5 { margin: 0 0 14px; font-size: 14px; color: var(--ink); }
.footer-grid a:not(.brand) { display: block; margin: 0 0 10px; font-size: 14px; }
.footer a:hover { color: var(--violet); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; }
.footer-left { display: flex; align-items: center; gap: 28px; }
.copy { font-size: 12px; letter-spacing: .08em; }
.socials { display: flex; gap: 18px; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.lang { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid #d9dcf5; background: #fff; color: var(--ink); }
.lang select { appearance: none; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; padding-right: 4px; }

/* ---- interactive composer preview (product section) ---- */
.demo { text-align: left; }
.demo-body { display: grid; grid-template-columns: 250px 1fr; height: 620px; background: #f8f9ff; color: var(--ink); font-size: 14px; }
.demo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.demo-side { display: flex; flex-direction: column; padding: 16px 10px 12px; background: #f3f4fb; }
.demo-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 16px; }
.demo-brand b { flex: 1; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.demo-ico { display: grid; place-items: center; width: 28px; height: 28px; color: #3b4263; }
.demo-nav a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 11px; border-radius: 8px; color: var(--ink); cursor: default; }
.demo-nav a.on, .demo-tasks a.on { background: #e6e3ff; color: var(--violet); font-weight: 600; }
.demo-sec { margin: 22px 6px 6px; font-size: 12px; font-weight: 600; }
.demo-tasks a { display: block; height: 32px; line-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 13px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.demo-user { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 6px; }
.demo-user span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 11px; font-weight: 600; }
.demo-user b { flex: 1; font-weight: 500; font-size: 13px; }
.demo-user em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; }
.demo-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; min-width: 0; min-height: 0; }
.demo-credits { position: absolute; top: 16px; right: 20px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.demo-credits svg { width: 15px; height: 15px; }
.demo-home, .demo-composer, .demo-chips, .demo-chat { width: min(100%, 470px); }
.demo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.demo-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.demo-head b { font-size: 16px; }
.demo-head small { color: var(--muted); font-size: 12px; }
.demo-av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; }
.demo-av svg { width: 24px; height: 24px; }
.demo-switch { display: flex; align-items: center; gap: 6px; padding: 5px 7px 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap; }
.demo-switch svg { width: 15px; height: 15px; }
.demo-switch i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 2px solid #fff; margin-left: -9px; }
.demo-switch i:first-of-type { margin-left: 0; }
.demo-composer { position: relative; padding: 12px 12px 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 16px 40px -18px rgba(91, 61, 245, .45), 0 14px 30px -20px rgba(47, 107, 255, .6); transition: border-color .15s, box-shadow .15s; }
.demo-composer:focus-within { border-color: #b9b0ff; box-shadow: 0 0 0 4px rgba(91, 61, 245, .1), 0 16px 40px -18px rgba(91, 61, 245, .45); }
.demo-composer textarea { width: 100%; min-height: 58px; max-height: 140px; border: 0; outline: 0; resize: none; background: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; }
.demo-bar { display: flex; align-items: center; gap: 6px; }
.demo-round { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.demo-spacer { flex: 1; }
.demo-bar .demo-ico { color: var(--muted); }
.demo-send { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; cursor: pointer; transition: transform .15s; }
.demo-send:disabled { background: #e7e2ff; color: #a594ff; cursor: default; }
.demo-send:not(:disabled):hover { transform: scale(1.06); }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.demo-chips button { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.demo-chips button:hover { background: #f0efff; border-color: #cfc8ff; }
.demo-hint { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.demo-chat { display: none; flex: 1; min-height: 0; overflow-y: auto; flex-direction: column; gap: 14px; padding: 36px 2px 14px; }
.demo.chatting .demo-main { justify-content: flex-end; }
.demo.chatting .demo-home, .demo.chatting .demo-chips { display: none; }
.demo.chatting .demo-chat { display: flex; }
.demo.chatting .demo-composer textarea { min-height: 24px; }
.demo-msg { align-self: flex-end; max-width: 80%; padding: 9px 13px; border-radius: 12px; background: var(--grad); color: #fff; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word; animation: demo-in .25s ease; }
.demo-reply { align-self: flex-start; width: 100%; animation: demo-in .3s ease; }
.demo-reply-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.demo-reply-head img { width: 18px; height: 18px; }
.demo-typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.demo-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a594ff; animation: demo-dot 1s infinite ease-in-out; }
.demo-typing i:nth-child(2) { animation-delay: .15s; }
.demo-typing i:nth-child(3) { animation-delay: .3s; }
.demo-card { position: relative; padding: 18px 18px 16px; border-radius: 18px; color: #fff; overflow: hidden; background: var(--grad);
  box-shadow: 0 18px 40px -18px rgba(91, 61, 245, .7); }
.demo-card b { display: block; font-size: 15px; margin-bottom: 8px; }
.demo-card p { margin: 0 0 16px; color: rgba(255, 255, 255, .88); line-height: 1.6; font-size: 13.5px; }
.demo-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-card-actions a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.demo-card-actions .primary { background: #fff; color: var(--violet); }
.demo-card-actions .ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.demo-card-actions svg { width: 15px; height: 15px; }
@keyframes demo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes demo-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; }
  .hx-cursor { display: none; }
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .hero-inner, .mobile { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links, .nav-login, .nav-actions .btn { display: none; }
  .nav-burger { display: block; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .feature.flip .feature-copy { order: 0; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .demo-body { grid-template-columns: 1fr; height: 560px; }
  .demo-side { display: none; }
  .demo-switch span { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 40px 0 40px; }
  .hero-title { letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas .btn { width: 100%; }
  .hx-body { grid-template-columns: 1fr; height: 470px; }
  .hx-side { display: none; }
  .hx-cursor { display: none; }
  .hx-imgs { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 0; }
  .lead { font-size: 17px; }
  .plans, .agent-grid { grid-template-columns: 1fr; }
  .phones { height: 440px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---- rich results in the hero mock ---- */
.hx-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hx-kpi { padding: 9px 11px; border-radius: 12px; background: #f6f7ff; border: 1px solid var(--line); }
.hx-kpi small { display: block; font-size: 11px; color: var(--muted); }
.hx-kpi b { font-size: 17px; letter-spacing: -.3px; }
.hx-kpi em { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 4px; }
.hx-kpi em.up { color: #16a34a; }
.hx-kpi em.down { color: #dc2626; }
.hx-chart { padding: 10px 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.hx-chart-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.hx-chart-head b { color: var(--ink); font-size: 12px; }
.hx-chart svg { width: 100%; height: 92px; display: block; }
.hx-chart rect { transform-box: fill-box; transform-origin: bottom; animation: hx-grow .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hx-shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.hx-shot { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 6px 16px -8px rgba(47, 58, 160, .35); animation: hx-in .4s ease both; }
.hx-shot svg { width: 100%; height: 100%; display: block; }
.hx-shot figcaption { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink);
  font-size: 10px; font-weight: 600; }
.hx-rec { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid #cfe9d8;
  background: linear-gradient(135deg, #f0fdf4, #f5f7ff); }
.hx-rec-top { display: flex; align-items: center; gap: 10px; }
.hx-thumb { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #16a34a; color: #fff; font-size: 18px; }
.hx-rec-top b { display: block; font-size: 14px; color: #166534; }
.hx-rec-top small { color: var(--muted); font-size: 11px; }
.hx-score { margin-left: auto; text-align: right; }
.hx-score b { font-size: 20px; color: var(--ink); }
.hx-score small { display: block; }
.hx-rate { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 8px; font-size: 12px; }
.hx-stars { color: #f59e0b; letter-spacing: 1px; font-size: 13px; }
.hx-stars i { color: #d7dbe8; font-style: normal; }
.hx-rate em { font-style: normal; font-weight: 600; text-align: right; color: var(--ink); }
.hx-rec p { margin: 2px 0 0; font-size: 12px; color: #2a3150; line-height: 1.5; }
@media (max-width: 600px) { .hx-shots { grid-template-columns: repeat(3, 1fr); } .hx-kpis { grid-template-columns: 1fr 1fr 1fr; } }
/* charts and illustrations draw their own colours (not the mock's icon stroke) */
.hx .hx-chart svg, .hx .hx-shot svg { width: 100%; fill: none; stroke: none; stroke-width: 1; }
.hx .hx-shot svg { height: 100%; }
.hx-stars .half { background: linear-gradient(90deg, #f59e0b 50%, #d7dbe8 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- pricing: Individual / Team & Enterprise ---- */
.plan-toggle { display: inline-flex; gap: 4px; margin-top: 30px; padding: 5px; border-radius: 14px; background: #eceefb; border: 1px solid var(--line); }
.plan-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.plan-toggle button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(47, 58, 160, .1); }
.plan-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plans[hidden] { display: none; }
.plan .tree { width: 60px; height: 56px; overflow: visible; }
.plan .tree path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.plan .tree circle { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.plan .tree circle.on { fill: #c9d6ff; }
.plan.featured .tree circle.on { fill: #8b7bff; }
.plan .tree circle.dot { fill: var(--ink); stroke: none; }
.plan h3 { margin: 16px 0 8px; font-size: 42px; }
.plan-desc { min-height: 72px; }
.price b { display: inline; margin-right: 8px; }
.price > span { font-size: 13px; }
.plan-note { flex: 1; margin: 10px 0 24px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.plan > .btn { margin-top: auto; }
.plans-foot { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 1024px) { .plans-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans-3 { grid-template-columns: 1fr; } .plan-toggle button { padding: 8px 12px; } }

/* pricing v2 (Claude-style) */
.sprout { width: 64px; height: 52px; margin: 0 auto 10px; display: block; }
.sprout path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprout .leaf { fill: #dcd6ff; }
.sprout .soil { fill: #fff; }
.plans-3 { max-width: 1000px; margin-left: auto; margin-right: auto; }
.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-left: auto; margin-right: auto; }
.plan .tree .fill { fill: #dcd6ff; }
.plan .tree rect { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.plan .tree rect.fill { fill: #dcd6ff; }
.plan-note:empty { min-height: 0; }
.plans-foot { margin: 14px 0 0; }
.plans-foot + .plans-foot { margin-top: 10px; }
.plans-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.plans-foot a:hover { color: var(--violet); }
.plans-foot:first-of-type { margin-top: 30px; }
@media (max-width: 820px) { .plans-2 { grid-template-columns: 1fr; } }

/* One typeface everywhere: headings use the same Inter as the body text */
.serif { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; }
.display { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
.display.sm { font-size: clamp(32px, 3.8vw, 48px); }
.feature .h3 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; }
.plan h3 { font-size: 32px; }

/* nav links centred in the bar (logo left, Log in / Try right) */
.nav-inner { position: relative; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); margin-left: 0; gap: 32px; }

/* Hero fills the first screen (below the 68px nav), content centred with generous padding */
.hero { min-height: calc(100svh - 68px); display: flex; align-items: center; padding: 72px 0 88px; }
.hero > .wrap { width: min(1360px, 100% - 96px); }
.hero-inner { gap: 64px; }
.hx-body { height: min(600px, calc(100svh - 240px)); min-height: 480px; }
.section.light:first-of-type, #product { padding-top: 120px; }
@media (max-width: 1024px) { .hero { min-height: 0; } .hero > .wrap { width: calc(100% - 48px); } }
@media (max-width: 600px) { .hero { padding: 40px 0 48px; } .hero > .wrap { width: calc(100% - 32px); } .hx-body { height: 470px; min-height: 0; } }
/* Wide screens: hero and nav use more of the width */
.hero > .wrap, .nav .wrap { width: min(1600px, 100% - 120px); }
.hero-title { font-size: clamp(34px, 3.9vw, 72px); }
.hero-sub { font-size: clamp(17px, 1.1vw, 20px); max-width: 600px; }
.hx-body { height: min(680px, calc(100svh - 230px)); }
@media (max-width: 1024px) { .hero > .wrap, .nav .wrap { width: calc(100% - 48px); } }
@media (max-width: 600px) { .hero > .wrap, .nav .wrap { width: calc(100% - 32px); } .hx-body { height: 470px; } }
.hero-title { font-size: clamp(34px, 3.3vw, 62px); }
.hero-inner { grid-template-columns: 1fr 1.35fr; }

/* larger nav links and hero badge */
.nav-links a { font-size: 17px; }
.eyebrow { font-size: 15px; padding: 8px 18px; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; }

/* bigger hero badge */
.eyebrow { font-size: 17px; padding: 10px 22px; gap: 11px; }
.eyebrow .dot { width: 9px; height: 9px; }
/* Log in as an outlined button filling the space left of "Try Fynix Task" */
.nav-actions { gap: 12px; }
.nav-login { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 10px 22px; border-radius: 12px;
  border: 1px solid #d9dcf5; background: #fff; font-weight: 600; font-size: 15px; transition: border-color .15s, color .15s; }
.nav-login:hover { border-color: #b9b0ff; color: var(--violet); }

/* product section sits closer to the hero */
#product { padding-top: 56px; }
#product .showcase { margin-top: 44px; }
#product { padding-top: 40px; }
#product .display { font-size: clamp(34px, 4.2vw, 54px); }
#product .display { font-size: clamp(30px, 3.4vw, 44px); }
#product .display { font-size: 38px; }
@media (max-width: 600px) { #product .display { font-size: 30px; } }
#product .showcase { margin-top: 24px; }
#product .lead { margin-top: 14px; }
#product .lead { max-width: none; white-space: nowrap; }
@media (max-width: 820px) { #product .lead { white-space: normal; } }
#product .lead { max-width: none; white-space: nowrap; }
@media (max-width: 820px) { #product .lead { white-space: normal; } }

/* ---- web + phone running the same task ---- */
.showcase.duo { position: relative; padding-right: 150px; }
.demo-phone { position: absolute; right: 0; top: 70px; width: 290px; height: 590px; padding: 10px; border-radius: 44px; background: #fff;
  border: 1px solid #dfe3f5; box-shadow: 0 40px 80px -24px rgba(47, 58, 160, .45); z-index: 3; }
.dp-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f8f9ff; display: flex; flex-direction: column;
  border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }
.dp-notch { position: absolute; top: 8px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #0f1733; }
.dp-top { display: flex; align-items: center; gap: 7px; padding: 40px 14px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.dp-top b { flex: 1; font-size: 14px; font-weight: 800; }
.dp-burger i { display: block; width: 14px; height: 2px; margin: 3px 0; border-radius: 2px; background: var(--ink); }
.dp-live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: #eafaf0; color: #16a34a; font-size: 10.5px; font-weight: 600; }
.dp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.dp-home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 16px; }
.dp-home b { font-size: 14px; margin-top: 8px; }
.dp-home small { color: var(--muted); font-size: 11px; }
.dp-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; }
.dp-av svg, .dp-composer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dp-chat { display: none; flex: 1; min-height: 0; overflow: hidden; flex-direction: column; gap: 8px; padding: 12px; }
.demo-phone.chatting .dp-home { display: none; }
.demo-phone.chatting .dp-chat { display: flex; }
.dp-msg { align-self: flex-end; max-width: 88%; padding: 8px 10px; border-radius: 12px; background: var(--grad); color: #fff; line-height: 1.45; animation: demo-in .25s ease; }
.dp-bot { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11.5px; margin-top: 2px; }
.dp-bot img { width: 14px; height: 14px; }
.dp-think { color: var(--muted); font-size: 11px; }
.dp-think i { display: inline-block; width: 4px; height: 4px; margin-left: 2px; border-radius: 50%; background: #a594ff; animation: hx-dot 1s infinite; }
.dp-think i:nth-child(2) { animation-delay: .15s; } .dp-think i:nth-child(3) { animation-delay: .3s; }
.dp-ans, .demo-ans { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); line-height: 1.5; }
.dp-ans b, .demo-ans b { display: block; margin-bottom: 4px; }
.dp-ans ul, .demo-ans ul { margin: 0; padding-left: 16px; }
.dp-ans li, .demo-ans li { margin: 2px 0; animation: demo-in .3s ease both; }
.dp-composer { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: #9aa0b8; font-size: 11.5px; }
.dp-composer span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-composer b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; }
.dp-composer b svg { width: 14px; height: 14px; }
.sync-pill { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #eef1ff; color: var(--violet);
  font-size: 11px; font-weight: 600; animation: demo-in .3s ease; }
.demo-ans { font-size: 14px; }
.demo-tasks a.new { animation: demo-in .35s ease; }
@media (max-width: 1100px) { .showcase.duo { padding-right: 110px; } .demo-phone { width: 250px; height: 520px; } }
@media (max-width: 820px) { .showcase.duo { padding-right: 0; } .demo-phone { display: none; } }

/* hero mock: group chat of agents */
.hx-gstack { display: inline-flex; flex: none; }
.hx-gstack i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #f6f7fc; margin-left: -5px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.hx-gstack i:first-child { margin-left: 0; }
.hx-tasks button.on .hx-gstack i { border-color: #e6e3ff; }
.hx-tasks button.busy .hx-gstack { display: none; }
.hx-gmsg { display: flex; gap: 9px; align-items: flex-start; animation: hx-in .3s ease both; }
.hx-gav { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; }
.hx-gbody { min-width: 0; }
.hx-gbody b { display: block; font-size: 12px; margin-bottom: 3px; }
.hx-gbody p { margin: 0; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: #f6f7ff; border: 1px solid var(--line); line-height: 1.5; color: #2a3150; }
.hx-typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: #f6f7ff; border: 1px solid var(--line); }
.hx-typing i { width: 5px; height: 5px; border-radius: 50%; background: #a594ff; animation: hx-dot 1s infinite; }
.hx-typing i:nth-child(2) { animation-delay: .15s; }
.hx-typing i:nth-child(3) { animation-delay: .3s; }
.demo-groups a { display: flex; align-items: center; gap: 8px; }
.demo-groups .hx-gstack i { border-color: #f3f4fb; }

/* ---- agents marketplace mock ---- */
.agmock-wrap { margin-top: 44px; margin-bottom: 36px; }
.agmock { position: relative; text-align: left; }
.agmock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ag-body { display: grid; grid-template-columns: 230px 1fr; height: 640px; background: #fff; color: var(--ink); font-size: 13px; }
.ag-side { border-right: 1px solid var(--line); }
.ag-main { position: relative; padding: 18px 26px; overflow: hidden; }
.ag-top { display: flex; justify-content: flex-end; gap: 10px; }
.ag-search { display: flex; align-items: center; gap: 8px; width: 220px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: #9aa0b8; }
.ag-create { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s; }
.ag-create.press { transform: scale(.95); }
.ag-main h3 { margin: 6px 0 4px; font-size: 22px; }
.ag-sub { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.ag-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ag-tabs span { padding: 8px 0; color: var(--muted); }
.ag-tabs span.on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.ag-tabs em { font-style: normal; }
.ag-count { display: inline-block; font-weight: 600; transition: transform .2s; }
.ag-count.bump { transform: scale(1.4); color: var(--violet); }
.ag-sec { margin: 0 0 10px; font-weight: 600; font-size: 12px; }
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ag-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 16px 14px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, border-color .2s; }
.ag-card.new { animation: ag-pop .45s cubic-bezier(.2, .9, .3, 1.3) both; border-color: #b9b0ff; box-shadow: 0 10px 30px -12px rgba(91, 61, 245, .45); }
.ag-more { position: absolute; top: 8px; right: 10px; color: #b3b8cc; letter-spacing: 1px; }
.ag-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.ag-av svg { width: 20px; height: 20px; }
.ag-card b { font-size: 13.5px; margin-top: 4px; }
.ag-by { display: inline-flex; align-items: center; gap: 3px; color: #16a34a; font-size: 11px; }
.ag-by svg { width: 12px; height: 12px; }
.ag-card p { margin: 0 0 6px; color: var(--muted); font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-chat { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: auto; padding: 7px; border: 0; border-radius: 10px;
  background: #eee9ff; color: var(--violet); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; }
.ag-chat:hover { background: #e3dcff; }
.ag-chat.press { transform: scale(.95); }
.ag-chat.added { background: #e9f9ef; color: #16a34a; }
.ag-toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.ag-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ag-cursor span:empty { display: none; }
@keyframes ag-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .ag-body { grid-template-columns: 1fr; height: auto; } .ag-side { display: none; } .ag-search { display: none; } .ag-cursor { display: none; } }
@media (max-width: 600px) { .ag-grid { grid-template-columns: 1fr 1fr; } .ag-main { padding: 14px; } }
.ag-chat.added svg { display: none; }

/* create-agent dialog in the agents mock */
.ag-modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(15, 23, 51, .28); animation: hx-in .2s ease; }
.ag-modal[hidden] { display: none; }
.ag-dialog { width: min(360px, 90%); display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -20px rgba(20, 20, 60, .45); }
.ag-dialog > b { font-size: 16px; }
.ag-dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.ag-input { min-height: 36px; padding: 8px 11px; border-radius: 10px; border: 1px solid #b9b0ff; box-shadow: 0 0 0 3px rgba(91, 61, 245, .1); color: var(--ink); font-size: 13px; }
.ag-role { border-color: var(--line); box-shadow: none; min-height: 52px; line-height: 1.45; }
.ag-caret { display: inline-block; width: 1px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--violet); animation: ag-blink 1s steps(1) infinite; }
.ag-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ag-actions button { padding: 8px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: transform .15s; }
.ag-actions .ag-confirm { border: 0; background: var(--grad); color: #fff; }
.ag-actions .press { transform: scale(.94); }
.ag-cursor.flip { flex-direction: row-reverse; }
.ag-cursor.flip span { margin: 0 -2px -18px 0; }
.ag-cursor.flip svg { transform: none; }
@keyframes ag-blink { 50% { opacity: 0; } }
/* agents section spacing matches the product section */
#agents { padding-top: 40px; }
#agents .display { font-size: 38px; }
@media (max-width: 600px) { #agents .display { font-size: 30px; } }
.agmock-wrap { margin-top: 24px; }

/* mobile section: fills the screen, store badges */
#mobile { min-height: calc(100svh - 68px); display: flex; align-items: center; padding: 80px 0; }
#mobile > .wrap { width: min(1360px, 100% - 96px); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; padding: 9px 20px 9px 16px; border-radius: 12px; background: #0f1733;
  border: 1px solid #0f1733; color: #fff; transition: transform .15s, box-shadow .15s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(15, 23, 51, .6); }
.store svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; letter-spacing: .02em; }
.store b { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
@media (max-width: 1024px) { #mobile { min-height: 0; } #mobile > .wrap { width: calc(100% - 48px); } }
@media (max-width: 600px) { #mobile { padding: 56px 0; } #mobile > .wrap { width: calc(100% - 32px); } }
#mobile .display { font-size: 38px; }
@media (max-width: 600px) { #mobile .display { font-size: 30px; } }
.store svg.gp { fill: initial; }
/* pricing heading and spacing match the other sections */
#pricing { padding-top: 40px; }
#pricing .display { font-size: 38px; }
#pricing .lead { margin-top: 14px; }
#pricing .plan-toggle { margin-top: 20px; }
#pricing .plans { margin-top: 28px; }
@media (max-width: 600px) { #pricing .display { font-size: 30px; } }
/* pricing fills the screen below the nav, content centred */
#pricing { min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; padding: 56px 0 72px; }
@media (max-width: 1024px) { #pricing { min-height: 0; } }
/* FAQ heading: same size and spacing as the other sections */
#faq { padding-top: 40px; }
#faq .display { font-size: 38px; }
#faq details:first-of-type { margin-top: 28px; }
@media (max-width: 600px) { #faq .display { font-size: 30px; } }
/* pricing: same heading position as FAQ (top of section, no vertical centring) */
#pricing { min-height: 0; display: block; padding: 40px 0 110px; }
#pricing .display { font-size: 38px; line-height: 1.08; }
@media (max-width: 600px) { #pricing .display { font-size: 30px; } #pricing { padding-bottom: 72px; } }
/* pricing fills the screen (heading stays at the top like FAQ), so FAQ starts only after scrolling */
#pricing { min-height: calc(100svh - 68px); }
@media (max-width: 1024px) { #pricing { min-height: 0; } }
/* Product and FAQ + closing band fill the screen too, so the next section starts only after scrolling */
#product { min-height: calc(100svh - 68px); padding-bottom: 72px; }
#faq { min-height: calc(100svh - 68px - 330px); padding-bottom: 72px; }
.cta-band { min-height: 330px; display: flex; align-items: center; }
.cta-band > .wrap { width: 100%; }
@media (max-width: 1024px) { #product, #faq { min-height: 0; } }

/* ---- footer (deep navy, 4 columns) ---- */
.footer { background: #111b3d; color: rgba(255, 255, 255, .72); padding: 64px 0 30px; border-top: 0; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .brand.on-dark { color: #fff; font-size: 20px; }
.footer-tag { max-width: 340px; margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.footer h5 { margin: 4px 0 20px; font-size: 16px; font-weight: 600; color: #fff; }
.footer-grid a:not(.brand) { display: block; margin: 0 0 16px; font-size: 16px; color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer .socials { display: flex; gap: 12px; }
.footer .socials a { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; transition: background .15s, border-color .15s; }
.footer .socials a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.footer .socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { padding-top: 24px; flex-wrap: wrap; }
.footer .copy { font-size: 14px; letter-spacing: 0; color: rgba(255, 255, 255, .6); }
.footer-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links { font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-links a { color: rgba(255, 255, 255, .6); }
.footer .lang { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.footer .lang select { color: #fff; }
.footer .lang option { color: #111; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: #111b3d; border: 1px solid rgba(255, 255, 255, .5); color: #fff; box-shadow: 0 10px 24px rgba(15, 23, 51, .35);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-bottom { flex-direction: column; align-items: flex-start; } .to-top { right: 16px; bottom: 16px; } }
.footer .wrap { width: min(1600px, 100% - 120px); }
@media (max-width: 1024px) { .footer .wrap { width: calc(100% - 48px); } }
@media (max-width: 600px) { .footer .wrap { width: calc(100% - 32px); } }

/* footer language menu: opens upward on hover (tap/click on touch screens) */
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22);
  background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.lang-btn .chev { transition: transform .2s; }
.lang-list { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; min-width: 190px; margin: 0; padding: 8px; list-style: none; border-radius: 14px;
  background: #1a2550; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 40px rgba(5, 10, 30, .5);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
/* invisible bridge so the pointer can travel from the button to the list without closing it */
.lang-list::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.lang-list li { padding: 10px 12px; border-radius: 9px; color: rgba(255, 255, 255, .8); font-size: 14px; cursor: pointer; white-space: nowrap; }
.lang-list li:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lang-list li.on { color: #fff; font-weight: 600; }
.lang-menu:hover .lang-list, .lang-menu.open .lang-list, .lang-menu:focus-within .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-menu:hover .chev, .lang-menu.open .chev { transform: rotate(180deg); }
@media (max-width: 600px) { .lang-list { left: 0; } }

/* ---- legal pages (privacy policy, terms of service) ---- */
.legal { background: linear-gradient(180deg, #f7f8ff, #ffffff 420px); padding: 56px 0 96px; }
.legal-wrap { width: min(1180px, 100% - 48px); }
.legal-head { max-width: 820px; margin-bottom: 40px; }
.legal-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--violet); }
.legal-head h1 { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.legal-date { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.legal-intro { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: #2a3150; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 92px; padding: 18px 18px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.legal-toc p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 18px; }
.legal-toc li { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.legal-toc a:hover { color: var(--violet); }
.legal-body { max-width: 780px; }
.legal-body section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.legal-body section:first-child { border-top: 0; padding-top: 0; }
.legal-body h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.legal-body h2 span { color: var(--violet); }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; color: #2a3150; }
.legal-body p { margin: 0; }
.legal-body ul { margin: 0; padding-left: 20px; }
.legal-body li { margin: 0 0 8px; }
.legal-body a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static; } .legal-head h1 { font-size: 34px; } }

/* footer: white */
.footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { border-bottom-color: var(--line); }
.footer .brand.on-dark, .footer h5 { color: var(--ink); }
.footer-tag, .footer-grid a:not(.brand), .footer .copy, .footer-links, .footer-links a { color: var(--muted); }
.footer a:hover { color: var(--violet); }
.footer .socials a { border-color: #d9dcf5; color: var(--ink); }
.footer .socials a:hover { background: #f3f1ff; border-color: #b9b0ff; color: var(--violet); }
.lang-btn { border-color: #d9dcf5; color: var(--ink); background: #fff; }
.lang-list { background: #fff; border-color: var(--line); box-shadow: 0 20px 40px -12px rgba(47, 58, 160, .3); }
.lang-list li { color: var(--muted); }
.lang-list li:hover { background: #f3f1ff; color: var(--ink); }
.lang-list li.on { color: var(--violet); }
.to-top { background: #fff; border-color: #d9dcf5; color: var(--ink); box-shadow: 0 10px 24px -8px rgba(47, 58, 160, .35); }

/* footer socials: real brand logos (not links yet) */
.footer .socials button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid #d9dcf5;
  background: #fff; cursor: default; }
.footer .socials button svg { width: 20px; height: 20px; }

/* WhatsApp: floating button with a heartbeat and radiating rings; back-to-top sits above it */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); animation: wa-beat 1.6s ease-in-out infinite; }
.wa-float svg { position: relative; z-index: 1; width: 32px; height: 32px; }
.wa-ring { position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .55; animation: wa-ring 1.6s ease-out infinite; }
.wa-ring.r2 { animation-delay: .8s; }
.wa-float:hover { animation-play-state: paused; }
.to-top { bottom: 96px; right: 27px; }
@keyframes wa-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } 70% { transform: scale(1); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-ring { animation: none; } .wa-ring { display: none; } }
@media (max-width: 600px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } .to-top { right: 18px; bottom: 82px; } }
/* keep the bottom bar clear of the floating WhatsApp button */
.footer-bottom { padding-right: 84px; }
@media (max-width: 600px) { .footer-bottom { padding-right: 0; padding-bottom: 64px; } }

/* ---- mobile responsive pass (kept last so it wins over earlier desktop rules) ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-width: 0; }
}
@media (max-width: 820px) {
  .demo-body { height: 480px; }
}
@media (max-width: 600px) {
  .nav .brand, .nav .brand span { white-space: nowrap; }
  .nav .brand { flex: none; }
  .hx-kpis { gap: 6px; }
  .hx-kpi { min-width: 0; padding: 8px 8px; }
  .hx-kpi b { font-size: 15px; }
  .hx-kpi em { display: block; margin: 1px 0 0; }
  .hx-kpi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-body { height: 420px; }
  .footer-grid a { white-space: nowrap; }
  .phones { height: 400px; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 380px) {
  .nav-actions .nav-login, .nav .btn-login { padding-left: 14px; padding-right: 14px; }
  .hero-title { font-size: 31px; }
}
/* phone stack: height follows width so the rotated phones are never clipped */
@media (max-width: 1024px) {
  .phones { box-sizing: content-box; width: 100%; max-width: 560px; height: auto; aspect-ratio: 1 / .97; padding-bottom: 90px; margin: 8px auto 0; }
}

/* "launching soon" dialog (public site build only) */
.soon { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 20, 50, .45);
  backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.soon.open { opacity: 1; visibility: visible; }
.soon-card { width: min(420px, 100%); padding: 28px 26px 24px; border-radius: 20px; background: #fff; text-align: center;
  box-shadow: 0 30px 70px -20px rgba(47, 58, 160, .5); transform: translateY(10px) scale(.98); transition: transform .2s; }
.soon.open .soon-card { transform: none; }
.soon-card h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.soon-card p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.soon-actions { display: flex; flex-direction: column; gap: 10px; }
.soon-actions .btn { width: 100%; }
.soon-close { border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.soon-card img { display: block; margin: 0 auto; }

/* hero mock: rendered product shots */
.hx-shot { background: #f6eef1; }
.hx-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
