/* SenticGen public site — trang chủ + các trang pháp lý tiếng Anh (Meta App Review). */
:root{--ink:#0f172a;--body:#334155;--muted:#64748b;--line:#e2e8f0;--soft:#f8fafc;--brand:#2563eb;--brand-ink:#1e40af;--brand-soft:#eff6ff}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.65 Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;color:var(--ink);background:#fff}
a{color:var(--brand)}a:hover{color:var(--brand-ink)}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.top{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:14px;height:62px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:800;font-size:18px;letter-spacing:-.01em}
.mark{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:800}
.nav{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:15px}
.nav a{color:var(--muted);text-decoration:none}.nav a:hover{color:var(--ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:10px 18px;font-weight:600;text-decoration:none;border:1px solid transparent;font-size:15px}
.btn.primary{background:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-ink);color:#fff}
.btn.ghost{border-color:var(--line);color:var(--ink);background:#fff}.btn.ghost:hover{border-color:#cbd5e1;color:var(--ink)}
.nav .btn{padding:8px 14px;color:#fff}
.hero{padding:72px 0 56px;background:radial-gradient(1200px 400px at 70% -10%,#e0e7ff 0,rgba(224,231,255,0) 60%),linear-gradient(#fff,#fff)}
.eyebrow{display:inline-block;font-size:13px;font-weight:700;color:var(--brand-ink);background:var(--brand-soft);border:1px solid #dbeafe;border-radius:999px;padding:4px 12px;margin-bottom:18px}
.hero h1{font-size:clamp(32px,5vw,50px);line-height:1.1;letter-spacing:-.025em;margin:0 0 16px;max-width:760px}
.hero p.lead{font-size:clamp(17px,2.2vw,19px);color:var(--body);max-width:680px;margin:0 0 28px}
.cta{display:flex;gap:12px;flex-wrap:wrap}
.section{padding:64px 0;border-top:1px solid var(--line)}.section.alt{background:var(--soft)}
.section h2{font-size:clamp(24px,3.2vw,32px);letter-spacing:-.02em;margin:0 0 10px}
.section p.sub{color:var(--muted);margin:0 0 32px;max-width:640px}
.grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}
.card h3{margin:10px 0 6px;font-size:17px}.card p{margin:0;color:var(--body);font-size:15px}
.ico{width:38px;height:38px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.ico svg{width:20px;height:20px}
.steps{counter-reset:s;display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.step{position:relative;padding:22px 22px 22px 62px;border:1px solid var(--line);border-radius:14px;background:#fff}
.step:before{counter-increment:s;content:counter(s);position:absolute;left:20px;top:20px;width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}
.step h3{margin:0 0 4px;font-size:16px}.step p{margin:0;color:var(--body);font-size:15px}
.trust{display:grid;gap:18px;grid-template-columns:1.2fr 1fr;align-items:start}
.trust ul{margin:0;padding-left:20px;color:var(--body)}.trust li{margin:6px 0}
/* trang pháp lý */
.doc{max-width:820px;margin:0 auto;padding:48px 20px 64px}
.doc h1{font-size:clamp(28px,4vw,38px);letter-spacing:-.02em;margin:0 0 6px}
.doc .meta{color:var(--muted);font-size:14px;margin:0 0 28px}
.doc h2{font-size:21px;margin:36px 0 8px;letter-spacing:-.01em}
.doc h3{font-size:17px;margin:22px 0 6px}
.doc p,.doc li{color:var(--body)}.doc li{margin:5px 0}
.doc table{width:100%;border-collapse:collapse;margin:12px 0;font-size:15px}
.doc th,.doc td{border:1px solid var(--line);padding:9px 12px;text-align:left;vertical-align:top}.doc th{background:var(--soft);font-weight:600}
.note{background:var(--brand-soft);border:1px solid #dbeafe;border-radius:12px;padding:14px 18px;color:var(--brand-ink)}
.toc{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:14px 20px;margin:0 0 8px}.toc ol{margin:6px 0 0;padding-left:20px}
.contact-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin-top:10px}
#status:empty{display:none}#status{margin:0 0 18px}
/* chân trang */
.foot{border-top:1px solid var(--line);background:var(--soft);padding:40px 0 28px;font-size:14px;color:var(--muted)}
.foot .cols{display:grid;gap:28px;grid-template-columns:1.6fr 1fr 1fr}
.foot h4{margin:0 0 10px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}
.foot a{color:var(--muted);text-decoration:none}.foot a:hover{color:var(--ink)}
.foot ul{list-style:none;margin:0;padding:0}.foot li{margin:6px 0}
.foot .legal{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:space-between}
@media (max-width:760px){.nav a:not(.btn){display:none}.trust{grid-template-columns:1fr}.foot .cols{grid-template-columns:1fr}.hero{padding:48px 0 40px}.section{padding:48px 0}}

/* ===== 26/09: logo + trang chủ sinh động (màn inbox mô phỏng + sơ đồ luồng) ===== */
.logo-img{display:block;border-radius:0}
.hero{overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.02fr 1fr;gap:48px;align-items:center}
.hero h1{font-size:clamp(32px,4.4vw,52px)}
.proof{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:28px;font-size:14px;color:var(--muted)}
.proof span{display:flex;align-items:center;gap:8px}.proof span:before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#7c3aed)}
.proof b{color:var(--ink)}
.demo{position:relative;padding:18px 8px 30px}
.win{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 60px -20px rgba(30,64,175,.28),0 12px 24px -12px rgba(15,23,42,.18);overflow:hidden;transform:perspective(1400px) rotateY(-6deg) rotateX(2deg);animation:rise .9s ease-out both}
.win-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line);background:#f8fafc;font-size:12px;color:var(--muted)}
.win-bar i{width:9px;height:9px;border-radius:50%;background:#e2e8f0}.win-bar i:nth-child(1){background:#fca5a5}.win-bar i:nth-child(2){background:#fcd34d}.win-bar i:nth-child(3){background:#86efac}.win-bar span{margin-left:8px}
.win-body{display:grid;grid-template-columns:46px 1fr 1.35fr;height:330px;font-size:12.5px}
.pages{background:#0f172a;display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 0}
.pg{position:relative;opacity:.55}.pg.on{opacity:1}.pg b{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:#fff;font-size:12px}
.pg.on b{box-shadow:0 0 0 2px #0f172a,0 0 0 4px #60a5fa}
.pg em{position:absolute;top:-5px;right:-6px;background:#ef4444;color:#fff;font-style:normal;font-size:9px;font-weight:700;border-radius:9px;padding:0 4px;line-height:14px}
.convs{border-right:1px solid var(--line);padding:8px 6px;display:flex;flex-direction:column;gap:4px;overflow:hidden}
.cv{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:10px;position:relative}
.cv.on{background:var(--brand-soft)}.cv div{min-width:0;flex:1}.cv b{display:block;font-size:12.5px}
.cv small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px}
.av{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700;color:#334155}
.cv .dot{width:8px;height:8px;border-radius:50%;background:var(--brand)}
.cv .badge{font-style:normal;font-size:10px;font-weight:700;color:#fff;background:#ef4444;border-radius:8px;padding:1px 6px}
.cv.new{animation:slidein 9s ease-out infinite}
.chat{display:flex;flex-direction:column;min-width:0}
.chat-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 12px;border-bottom:1px solid var(--line)}
.tag{font-size:10.5px;font-weight:600;border-radius:999px;padding:2px 8px;animation:pop 9s ease-out infinite both}
.tag.t1{background:#fee2e2;color:#b91c1c;animation-delay:4.6s}.tag.t2{background:#e0e7ff;color:#3730a3;animation-delay:5.2s}
.msgs{flex:1;display:flex;flex-direction:column;gap:7px;padding:12px;background:linear-gradient(#fff,#f8fafc)}
.m{margin:0;max-width:86%;padding:8px 11px;border-radius:14px;line-height:1.4;animation:pop 9s ease-out infinite both}
.m.in{background:#f1f5f9;color:#0f172a;border-bottom-left-radius:4px}
.m.out{align-self:flex-end;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;border-bottom-right-radius:4px}
.d1{animation-delay:.4s}.d2{animation-delay:1.3s}.d3{animation-delay:3.8s}
.typing{margin:0;align-self:flex-end;display:flex;gap:4px;padding:9px 12px;background:#eef2ff;border-radius:14px;animation:typing 9s infinite both;animation-delay:2.2s}
.typing i{width:6px;height:6px;border-radius:50%;background:#6366f1;animation:blink 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
.chat-input{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 10px 10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:11.5px}
.chat-input em{font-style:normal;background:var(--brand);color:#fff;border-radius:7px;padding:3px 10px;font-weight:600}
.float{position:absolute;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 12px;box-shadow:0 14px 30px -12px rgba(15,23,42,.25);font-size:12.5px}
.float b{display:block}.float small{color:var(--muted)}
.float.f1{top:-4px;right:-6px;animation:bob 5s ease-in-out infinite}.float.f2{bottom:0;left:-10px;animation:bob 5s ease-in-out infinite 2.5s}
.fb,.fbp{width:26px;height:26px;border-radius:50%;background:#1877f2;color:#fff;display:grid;place-items:center;font:800 15px/1 Arial,sans-serif}
.ok{width:26px;height:26px;border-radius:50%;background:#dcfce7;color:#15803d;display:grid;place-items:center;font-weight:800}
/* sơ đồ luồng */
.flow-sec .wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}
.flow{position:relative;height:260px;display:grid;grid-template-columns:110px 1fr 170px;grid-template-rows:repeat(3,1fr);align-items:center}
.src{grid-column:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px;font-size:13px;box-shadow:0 6px 16px -10px rgba(15,23,42,.3);z-index:1}
.lines{grid-column:2;grid-row:1/4;width:100%;height:100%;overflow:visible}
.lines path{fill:none;stroke:#c7d2fe;stroke-width:2;stroke-dasharray:5 6}.lines circle{fill:#4f46e5}
.hub{grid-column:3;grid-row:1/4;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 10px;box-shadow:0 20px 40px -20px rgba(79,70,229,.45)}
.hub small{color:var(--muted);font-size:12px}
.team{position:absolute;right:30px;bottom:-26px;display:flex;align-items:center}
.team span{width:26px;height:26px;border-radius:50%;border:2px solid #fff;margin-left:-6px;display:grid;place-items:center;font-size:11px;font-weight:700;color:#334155}
.team small{margin-left:8px;color:var(--muted);font-size:12px}
@keyframes pop{0%{opacity:0;transform:translateY(8px) scale(.98)}5%{opacity:1;transform:none}88%{opacity:1}95%,100%{opacity:0}}
@keyframes typing{0%{opacity:0}4%{opacity:1}16%{opacity:1}19%,100%{opacity:0}}
@keyframes blink{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes rise{from{opacity:0;transform:perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(24px)}}
@keyframes slidein{0%,40%{opacity:0;transform:translateX(-10px)}46%,92%{opacity:1;transform:none}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important}.m,.tag,.cv.new{opacity:1}.typing{display:none}.lines circle{display:none}}
@media (max-width:900px){.hero-grid,.flow-sec .wrap{grid-template-columns:1fr}.win{transform:none}.demo{padding:10px 0 30px}.float.f1{right:0}.float.f2{left:0}}
@media (max-width:520px){.win-body{grid-template-columns:40px 1fr;height:auto}.convs{display:none}.flow{grid-template-columns:92px 1fr 128px;height:220px}.src b{font-size:12px}}
