/* Sanalogos Chat — home page. Navy + gold brand, glass, gradient mesh, motion. */
:root {
  --navy: #0b3a5b; --navy2: #0a2740; --ink: #0d1b2a; --text: #22313f; --muted: #5d6b7a; --line: #e5e9f0;
  --gold: #d4a64a; --gold2: #f1c86a; --violet: #7b5cff; --blue: #2f6fc0; --bg: #f6f8fb; --r: 18px;
  --shadow: 0 10px 40px rgba(11, 58, 91, .10); --shadow2: 0 24px 70px rgba(11, 58, 91, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* Decorative glows must never widen the page (iOS Safari zooms out and shows an empty strip on the right). */
main, section, footer { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 860px; }
section { padding: 96px 0; position: relative; }
section.soft { background: var(--bg); }

/* animated background */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-mesh i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: .28; animation: drift 22s ease-in-out infinite alternate; }
.bg-mesh .b1 { background: #8fc4ff; top: -14vw; left: -10vw; }
.bg-mesh .b2 { background: var(--gold2); top: 10vh; right: -16vw; animation-duration: 28s; }
.bg-mesh .b3 { background: #b9a6ff; bottom: -20vw; left: 30vw; animation-duration: 34s; }
@keyframes drift { to { transform: translate(6vw, 8vh) scale(1.15); } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* header */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
.hdr.solid { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); padding: 8px 0; }
.hdr .wrap { display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo img { transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
#nav { display: flex; gap: 24px; margin-left: 12px; }
#nav a { font-weight: 600; font-size: 15px; color: var(--muted); position: relative; }
#nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--gold); transition: right .3s; }
#nav a:hover { color: var(--ink); } #nav a:hover::after { right: 0; }
.acts { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.login { font-weight: 600; font-size: 15px; }
.langs { display: flex; background: rgba(11, 58, 91, .06); border-radius: 999px; padding: 3px; }
.langs a { padding: 4px 10px; font-size: 12.5px; font-weight: 700; border-radius: 999px; color: var(--muted); transition: .2s; }
.langs a.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; position: relative; overflow: hidden; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.big { height: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #2a1d00; box-shadow: 0 8px 24px rgba(212, 166, 74, .38); }
.btn.gold:hover { box-shadow: 0 14px 34px rgba(212, 166, 74, .5); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(11, 58, 91, .18); }
.btn.ghost:hover { background: #fff; }
.btn.line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.wide { width: 100%; }
.btn b { transition: transform .3s; } .btn:hover b { transform: translateX(4px); }
.shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* hero */
.hero { padding: 150px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 10px; font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 0 rgba(47, 179, 107, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(47, 179, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 107, 0); } }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 900; margin: 22px 0 18px; }
.grad { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--violet), var(--blue), var(--gold)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite; }
@keyframes flow { to { background-position: 300% 0; } }
.type { color: var(--navy); position: relative; }
.type::after { content: ''; display: inline-block; width: 3px; height: .9em; background: var(--gold); margin-left: 6px; vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 22px; }
.note { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 500; }

.mock { position: relative; transition: transform .3s ease-out; transform-style: preserve-3d; }
.browser { background: #fff; border-radius: 20px; box-shadow: var(--shadow2); overflow: hidden; border: 1px solid var(--line); position: relative; min-height: 440px; color: var(--text); }
.bar { height: 40px; background: #f2f4f8; display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0e4ea; } .bar i:nth-child(1) { background: #ff6159; } .bar i:nth-child(2) { background: #ffbd2e; } .bar i:nth-child(3) { background: #28c941; }
.bar span { margin-left: 14px; background: #fff; border-radius: 8px; padding: 3px 14px; font-size: 12px; color: var(--muted); }
.page { padding: 24px; display: grid; gap: 12px; }
.ph { height: 12px; background: linear-gradient(90deg, #eef1f6, #f6f8fb, #eef1f6); background-size: 200% 100%; border-radius: 6px; animation: shimmer 2.4s infinite linear; }
.ph.h { height: 90px; border-radius: 12px; } .w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.wdg { position: absolute; right: 18px; bottom: 18px; width: 76%; max-width: 330px; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(11, 58, 91, .25); overflow: hidden; }
.wh { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: linear-gradient(135deg, var(--navy), #164f7a); color: #fff; }
.wh b { display: block; font-size: 14px; } .wh small { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 800; color: #2a1d00; }
.av.ai { background: linear-gradient(135deg, var(--violet), var(--gold2)); color: #fff; font-size: 13px; animation: glowpulse 2.6s infinite; }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 6px rgba(123, 92, 255, .2); } }
.wb { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 210px; background: #f8fafc; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(10px) scale(.96); transition: .35s cubic-bezier(.2, 1.2, .4, 1); }
.msg.show { opacity: 1; transform: none; }
.msg.in { background: #fff; border: 1px solid #e3e8ef; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg small { display: block; margin-top: 5px; font-size: 11px; color: var(--violet); }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b4; animation: bounce 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: .6; } }
.orbit { position: absolute; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); animation: float 6s ease-in-out infinite; }
.orbit svg { width: 26px; height: 26px; }
.o1 { background: #25d366; top: -18px; left: 8%; } .o2 { background: #2aa1da; top: 22%; left: -26px; animation-delay: -1.2s; }
.o3 { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); top: -10px; right: 18%; animation-delay: -2.4s; }
.o4 { background: #7b3ff2; bottom: 34%; left: -20px; animation-delay: -3.6s; } .o5 { background: #0077ff; top: 30%; right: -22px; animation-delay: -4.8s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }
.notif { position: absolute; left: -30px; bottom: 26px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow2); font-size: 13px; opacity: 0; transform: translateX(-20px); transition: .5s cubic-bezier(.2, 1.3, .4, 1); }
.notif.show { opacity: 1; transform: none; }
.notif b { display: block; color: var(--ink); } .notif .ic { width: 38px; height: 38px; border-radius: 10px; background: #e9f8ef; display: grid; place-items: center; font-size: 19px; }

.marquee { margin-top: 70px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.mq { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mq i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; } .mq svg { width: 18px; height: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats */
.stats { padding: 30px 0 60px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: rgba(255, 255, 255, .75); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat b { font-size: 40px; font-weight: 900; color: var(--navy); } .stat small { font-weight: 700; color: var(--gold); margin-left: 4px; }
.stat span { display: block; color: var(--muted); font-size: 14px; }

/* sections */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: rgba(212, 166, 74, .12); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; }
.sec-head p { font-size: 18px; color: var(--muted); margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .3s ease-out, box-shadow .3s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 166, 74, .14), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover { box-shadow: var(--shadow2); } .card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; margin-top: 18px; } .card p { color: var(--muted); margin: 0; font-size: 15px; }
.fi { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(11, 58, 91, .08), rgba(212, 166, 74, .18)); color: var(--navy); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.fi svg { width: 26px; height: 26px; } .card:hover .fi { transform: rotate(-8deg) scale(1.1); }
.glow { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(123, 92, 255, .5), rgba(212, 166, 74, .6)) border-box; border: 1.5px solid transparent; }

/* AI flow */
.ai { background: radial-gradient(1200px 500px at 50% 0%, rgba(123, 92, 255, .08), transparent 70%); }
.ai-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin: -20px auto 48px; flex-wrap: wrap; }
.node { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.node span { font-size: 18px; }
.beam { width: 70px; height: 3px; background: linear-gradient(90deg, transparent, var(--violet), var(--gold), transparent); background-size: 200% 100%; animation: beam 1.6s linear infinite; border-radius: 3px; }
@keyframes beam { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* channels */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ch { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .3s ease-out, box-shadow .3s; }
.ch:hover { box-shadow: var(--shadow2); }
.lg { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.lg svg { width: 26px; height: 26px; } .ch:hover .lg { transform: scale(1.12) rotate(6deg); }
.ch h3 { font-size: 17px; margin-bottom: 6px; } .ch p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* steps */
.dark { background: linear-gradient(160deg, var(--navy2), var(--navy) 60%, #164f7a); color: #c9d6e3; overflow: hidden; }
.dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(212, 166, 74, .2), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(123, 92, 255, .22), transparent 60%); }
.dark h2, .dark h3 { color: #fff; } .dark .sec-head p { color: #b8c6d4; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.step { background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 28px; position: relative; transition: transform .3s, border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: rgba(212, 166, 74, .45); }
.num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #2a1d00; background: linear-gradient(135deg, var(--gold2), var(--gold)); margin-bottom: 16px; }
.step p { margin: 0; } .step code { display: block; margin-top: 14px; background: rgba(0, 0, 0, .3); padding: 10px 12px; border-radius: 10px; font-size: 12px; color: var(--gold2); word-break: break-all; }

/* pricing */
.cur { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: -20px 0 34px; }
.cur button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted); transition: .2s; }
.cur button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; position: relative; }
.plan.pro { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--gold), var(--violet), var(--gold)) border-box; border: 2px solid transparent; box-shadow: var(--shadow2); }
.plan .tag { position: absolute; top: -13px; right: 24px; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #2a1d00; font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px; }
.price { font-size: 42px; font-weight: 900; color: var(--ink); margin: 10px 0 22px; } .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.price .pop { display: inline-block; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.7); opacity: .3; } }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.plan li { padding-left: 28px; position: relative; font-size: 14.5px; }
.plan li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: #e4f6ec; color: #1c7a45; font-size: 11px; display: grid; place-items: center; font-weight: 900; }
.plan li.off { color: #a3adb8; text-decoration: line-through; } .plan li.off::before { content: '–'; background: #f0f2f5; color: #a3adb8; }
.disc { text-align: center; color: var(--muted); margin-top: 26px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 24px; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--muted); animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }

/* CTA */
.cta-box { text-align: center; padding: 64px 30px; border-radius: 28px; background: linear-gradient(135deg, var(--navy), #164f7a 50%, #3a2f7a); color: #d7e3ee; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 166, 74, .35), transparent 60%); top: -250px; right: -150px; animation: drift 12s ease-in-out infinite alternate; }
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); position: relative; } .cta-box p { position: relative; font-size: 18px; margin: 0 0 28px; }

/* footer */
footer { background: var(--navy2); color: #9fb2c4; padding: 60px 0 30px; }
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 30px; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
footer a:not(.logo) { display: block; padding: 3px 0; font-size: 14.5px; } footer a:hover { color: #fff; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; font-size: 13.5px; }
.foot-l { display: inline-flex; margin-top: 14px; background: rgba(255, 255, 255, .08); }
.foot-l { gap: 2px; padding: 4px; }
.foot-l a { display: inline-block !important; color: #c9d6e3; padding: 6px 12px !important; font-size: 13px; white-space: nowrap; } .foot-l a.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

/* cookie */
.cookie { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 70; display: flex; align-items: center; gap: 14px; background: rgba(13, 27, 42, .94); color: #dfe7ef; backdrop-filter: blur(12px); border-radius: 18px; padding: 14px 16px 14px 18px; width: min(720px, calc(100% - 28px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1); }
.cookie.show { transform: translate(-50%, 0); }
.cookie p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1; } .cookie a { color: var(--gold2); text-decoration: underline; }
.cookie .ck { font-size: 26px; animation: float 4s ease-in-out infinite; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* mobile */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 120px; }
  .grid3, .channels { grid-template-columns: 1fr 1fr; } .stats .wrap { grid-template-columns: 1fr 1fr; }
  .steps, .plans { grid-template-columns: 1fr; }
  #nav, .acts .login { display: none; }
  .burger { display: flex; }
  .acts { margin-left: auto; } .acts .btn { display: none; }
  .hdr .wrap { gap: 14px; }
  .logo span { white-space: nowrap; }
}
@media (max-width: 560px) {
  /* Languages move into the menu so the logo and the menu button always fit. */
  .acts .langs { display: none; }
  .hdr .logo { font-size: 17px; } .hdr .logo img { width: 30px; height: 30px; }
}

/* Mobile menu: burger -> panel sliding in from the right */
.burger { flex: 0 0 44px; width: 44px; height: 44px; align-items: center; border-radius: 13px; background: rgba(11, 58, 91, .06); position: relative; z-index: 2; }
.burger span { width: 20px; }
.burger span:nth-child(2) { width: 14px; margin-left: 6px; }
.burger:active { transform: scale(.94); }
.scrim { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(6, 26, 43, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.drawer { display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(86vw, 360px); flex-direction: column; gap: 22px; padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 60% at 100% 0, rgba(123, 92, 255, .10), transparent 60%), radial-gradient(90% 50% at 0 100%, rgba(212, 166, 74, .14), transparent 60%), #fff;
  box-shadow: -24px 0 60px rgba(6, 26, 43, .22); border-radius: 26px 0 0 26px;
  transform: translateX(105%); visibility: hidden; transition: transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s; }
.dr-top { display: flex; align-items: center; justify-content: space-between; }
.dr-top .logo { font-size: 17px; }
.dr-x { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(11, 58, 91, .06); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; transition: transform .35s, background .2s; }
.dr-x:hover { background: rgba(11, 58, 91, .12); transform: rotate(90deg); }
.dr-nav { display: flex; flex-direction: column; }
.dr-nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-size: 19px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.dr-nav a::after { content: '→'; color: var(--gold); font-weight: 800; transition: transform .25s; }
.dr-nav a:active::after, .dr-nav a:hover::after { transform: translateX(5px); }
.dr-langs { align-self: flex-start; }
.dr-langs a { padding: 7px 16px; font-size: 14px; }
.dr-acts { margin-top: auto; display: grid; gap: 10px; }
.dr-acts .btn { height: 52px; font-size: 16px; }
/* staggered entrance of the contents */
.drawer > *, .dr-nav a { opacity: 0; transform: translateX(28px); transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
body.menu-open { overflow: hidden; }
body.menu-open #sanalogos-chat, body.menu-open .cookie { visibility: hidden; opacity: 0; }
body.menu-open .scrim { opacity: 1; visibility: visible; }
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open .drawer > *, body.menu-open .dr-nav a { opacity: 1; transform: none; }
body.menu-open .dr-top { transition-delay: .08s; }
body.menu-open .dr-nav a:nth-child(1) { transition-delay: .12s; } body.menu-open .dr-nav a:nth-child(2) { transition-delay: .16s; }
body.menu-open .dr-nav a:nth-child(3) { transition-delay: .20s; } body.menu-open .dr-nav a:nth-child(4) { transition-delay: .24s; }
body.menu-open .dr-nav a:nth-child(5) { transition-delay: .28s; }
body.menu-open .dr-langs { transition-delay: .32s; } body.menu-open .dr-acts { transition-delay: .36s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(8px); }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  .drawer, .scrim { display: flex; }
  .notif { left: 0; }
  .orbit { width: 40px; height: 40px; } .orbit svg { width: 20px; height: 20px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid3, .channels { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .cookie { flex-wrap: wrap; } .cookie .btn { width: 100%; }
  .beam { width: 26px; }
  .browser { min-height: 400px; } .wdg { width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; } .msg { opacity: 1; transform: none; }
}

/* richer section backgrounds */
section { isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(11, 58, 91, .09) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.ai::after { content: ''; position: absolute; inset: 0; z-index: -1; background: conic-gradient(from 200deg at 15% 20%, rgba(123, 92, 255, .10), transparent 25%), conic-gradient(from 20deg at 85% 80%, rgba(212, 166, 74, .14), transparent 25%); }
#channels::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 0, rgba(246, 248, 251, .7) 40%, transparent 100%), repeating-linear-gradient(90deg, rgba(11, 58, 91, .035) 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, rgba(11, 58, 91, .035) 0 1px, transparent 1px 80px); }
section.soft { background: radial-gradient(900px 400px at 100% 0%, rgba(212, 166, 74, .10), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(47, 111, 192, .08), transparent 60%), var(--bg); }
.dark::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; z-index: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C 240 20 480 140 720 80 S 1200 20 1440 80 V140 H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3Cpath d='M0 100 C 300 60 600 150 900 100 S 1300 60 1440 100 V140 H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; animation: wave 12s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(-3%) scaleY(1.15); } }
.dark .wrap { position: relative; z-index: 1; }
#pricing::before { content: ''; position: absolute; left: 50%; top: 40%; width: 700px; height: 700px; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, .10), rgba(212, 166, 74, .08) 40%, transparent 70%); filter: blur(10px); animation: drift 16s ease-in-out infinite alternate; }
.stats .stat { position: relative; overflow: hidden; }
.stats .stat::after { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(212, 166, 74, .18), transparent 30%); animation: spin 8s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* documents and contacts */
.doc-main { padding: 130px 0 80px; min-height: 60vh; }
.doc-head { text-align: center; margin-bottom: 30px; } .doc-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.doc-card { padding: 34px 38px; }
.doc-body h2 { font-size: 20px; margin: 26px 0 8px; } .doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--text); font-size: 15.5px; } .doc-body ul { padding-left: 20px; }
.doc-body a { color: var(--blue); text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contact-list li > span { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; }
.contact-list a { color: var(--navy); font-weight: 600; }
.cform { display: grid; gap: 12px; }
.cform label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cform input, .cform textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; background: #fff; color: var(--ink); }
.cform input:focus, .cform textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 166, 74, .15); }
.cform .small { font-size: 12.5px; margin: 0; text-align: center; } .cform .small a { color: var(--muted); }
.ok-box { background: #e9f8ef; color: #1c7a45; padding: 16px; border-radius: 12px; font-weight: 600; }
.err-box { background: #fdeaea; color: #b4282d; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.map { margin-top: 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); } .map iframe { width: 100%; height: 360px; border: 0; display: block; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer .wrap { grid-template-columns: 1fr; } .doc-card { padding: 24px 20px; } }
/* ============ 3.8: AI site check, devices, AI invitations, team ============ */
.muted { color: var(--muted); }
.hidden { display: none !important; }
/* AI check of your site */
.audit { background: radial-gradient(900px 400px at 50% 0%, rgba(123,92,255,.10), transparent 70%), linear-gradient(180deg, #fff, var(--bg)); }
.au-form { max-width: 680px; margin: -18px auto 0; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 8px 8px 8px 18px; box-shadow: 0 20px 50px rgba(11,58,91,.14), inset 0 0 0 1.5px rgba(11,58,91,.08); transition: box-shadow .3s; }
.au-form:focus-within { box-shadow: 0 24px 60px rgba(123,92,255,.22), inset 0 0 0 2px var(--violet); }
.au-ic { font-size: 22px; }
.au-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; height: 48px; }
.au-form .btn { height: 52px; white-space: nowrap; }
.au-wait { max-width: 680px; margin: 28px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.au-wait b { color: var(--ink); font-size: 17px; }
.au-scan { width: 220px; height: 6px; border-radius: 99px; background: #e7ebf3; overflow: hidden; }
.au-scan i { display: block; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--gold)); animation: auscan 1.2s ease-in-out infinite; }
@keyframes auscan { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.au-err { text-align: center; color: #d23c45; font-weight: 600; margin: 20px 0 0; }
.au-res { margin-top: 44px; display: grid; grid-template-columns: 1.25fr .85fr; gap: 28px; align-items: start; animation: auin .6s cubic-bezier(.2,.9,.3,1); }
@keyframes auin { from { opacity: 0; transform: translateY(24px); } }
.au-col { display: grid; gap: 16px; }
.au-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 10px 30px rgba(11,58,91,.06); }
.au-card h3 { font-size: 17px; margin: 0 0 10px; }
.au-card p { margin: 0 0 4px; } .au-card ol, .au-card ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.au-card li { animation: auin .5s both; }
.au-phone { display: flex; flex-direction: column; align-items: center; position: sticky; top: 90px; }
.au-cap { font-size: 14px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.au-cta { grid-column: 1 / -1; text-align: center; }
/* device frames */
.phone { position: relative; width: 270px; height: 550px; border-radius: 46px; background: #0f141b; padding: 12px; box-shadow: 0 30px 70px rgba(10,30,60,.35), inset 0 0 0 2px #2b333f; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.phone.and { border-radius: 30px; } .phone .cam { position: absolute; top: 20px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #000; z-index: 3; box-shadow: 0 0 0 2px #1b222c; }
.phone .scr { width: 100%; height: 100%; border-radius: 36px; background: #f5f7fa; overflow: hidden; display: flex; flex-direction: column; }
.phone.and .scr { border-radius: 22px; }
.mc-h { display: flex; align-items: center; gap: 10px; padding: 44px 14px 12px; background: linear-gradient(135deg, var(--navy), #164f7a); color: #fff; flex: none; }
.mc-h .av { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold)); flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.mc-h b { display: block; font-size: 14px; line-height: 1.2; } .mc-h small { font-size: 11px; color: #8ff0b5; }
.mc-b { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: auto; font-size: 13.5px; line-height: 1.4; }
.mc-b p { margin: 0; padding: 9px 12px; border-radius: 16px; max-width: 86%; animation: auin .45s both; }
.mc-b .in { background: #fff; box-shadow: 0 1px 2px rgba(16,40,70,.08); border-bottom-left-radius: 5px; align-self: flex-start; }
.mc-b .out { background: linear-gradient(135deg, var(--navy), #164f7a); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.mc-b .out.st { background: none; font-size: 40px; padding: 0; }
.mc-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mc-r span { border: 1.5px solid #1e9e57; color: #1e9e57; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.mc-f { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; background: #fff; border-top: 1px solid #e6ebf0; }
.mc-f span { flex: 1; height: 30px; border-radius: 15px; background: #f1f4f8; } .mc-f i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; }
/* devices stage */
.dv-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -20px 0 34px; }
.dv-tabs button { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .25s; }
.dv-tabs button.on { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(11,58,91,.25); }
.dv-stage { position: relative; height: 600px; }
.dv { position: absolute; transition: transform .7s cubic-bezier(.2,.9,.3,1), opacity .5s, filter .5s; transform-origin: 50% 100%; }
.dv-pc { left: 50%; top: 0; width: 760px; margin-left: -380px; }
.dv-tab { left: 0; bottom: 0; } .dv-ph { right: 7%; bottom: 0; } .dv-and { right: -1%; bottom: 10px; }
.mon { position: relative; height: 450px; border-radius: 18px; background: #fff; border: 12px solid #141a22; overflow: hidden; box-shadow: 0 30px 70px rgba(10,30,60,.28); }
.mon .bar { height: 30px; background: #eef1f5; display: flex; align-items: center; gap: 6px; padding: 0 12px; } .mon .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .mon .bar i:nth-child(2) { background: #febc2e; } .mon .bar i:nth-child(3) { background: #28c840; }
.mon .bar span { margin-left: 14px; font-size: 12px; color: #7b8794; background: #fff; border-radius: 8px; padding: 3px 14px; }
.stand { width: 160px; height: 70px; margin: 0 auto; background: linear-gradient(#cfd6df, #a9b3bf); clip-path: polygon(38% 0, 62% 0, 70% 85%, 100% 88%, 100% 100%, 0 100%, 0 88%, 30% 85%); }
.site { padding: 18px 22px; } .s-nav { height: 14px; width: 70%; border-radius: 8px; background: #eef1f5; margin-bottom: 26px; }
.s-hero i { display: block; height: 22px; border-radius: 8px; background: #dfe6ef; margin-bottom: 12px; } .s-hero i.w60 { width: 60%; height: 30px; background: linear-gradient(90deg, #c9d6e6, #e3e9f1); } .s-hero i.w40 { width: 40%; }
.s-hero em { display: block; width: 130px; height: 34px; border-radius: 10px; background: var(--gold); margin: 18px 0 26px; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .s-grid i { height: 110px; border-radius: 12px; background: #eef1f5; }
.mc { position: absolute; display: flex; flex-direction: column; overflow: hidden; background: #f5f7fa; }
.mc-pc { right: 18px; bottom: 16px; width: 250px; height: 330px; border-radius: 18px; box-shadow: 0 18px 44px rgba(10,30,60,.3); } .mc-pc .mc-h, .mc-tab .mc-h { padding-top: 12px; }
.tabl { position: relative; width: 400px; height: 300px; border-radius: 26px; background: #fff; border: 12px solid #141a22; overflow: hidden; box-shadow: 0 30px 60px rgba(10,30,60,.28); }
.tabl .s-grid { grid-template-columns: 1fr 1fr; } .tabl .s-grid i { height: 70px; }
.mc-tab { right: 10px; bottom: 10px; width: 190px; height: 250px; border-radius: 16px; box-shadow: 0 14px 34px rgba(10,30,60,.3); font-size: 12px; }
.mc-tab .mc-b { font-size: 11.5px; } .mc-ph { position: static; height: 100%; }
.dv-ph .phone, .dv-and .phone { width: 230px; height: 470px; }
.dv-and { opacity: 0; transform: translateX(40px) scale(.9); pointer-events: none; }
.dv-stage[data-d="pc"] .dv-tab { transform: translateX(-10px) scale(.8); filter: saturate(.8); } .dv-stage[data-d="pc"] .dv-ph { transform: scale(.82); }
.dv-stage[data-d="tab"] .dv-pc { transform: scale(.78); opacity: .45; filter: blur(1px); } .dv-stage[data-d="tab"] .dv-tab { transform: translate(180px, -30px) scale(1.25); z-index: 5; } .dv-stage[data-d="tab"] .dv-ph { transform: scale(.75); opacity: .6; }
.dv-stage[data-d="ph"] .dv-pc { transform: scale(.78); opacity: .45; filter: blur(1px); } .dv-stage[data-d="ph"] .dv-ph { transform: translateX(-240px) scale(1.18); z-index: 5; } .dv-stage[data-d="ph"] .dv-tab { transform: scale(.75); opacity: .6; }
.dv-stage[data-d="and"] .dv-pc { transform: scale(.78); opacity: .45; filter: blur(1px); } .dv-stage[data-d="and"] .dv-and { opacity: 1; transform: translateX(-280px) scale(1.18); z-index: 5; pointer-events: auto; } .dv-stage[data-d="and"] .dv-ph { opacity: 0; } .dv-stage[data-d="and"] .dv-tab { transform: scale(.75); opacity: .6; }
/* AI invitations */
.invite { background: linear-gradient(160deg, #f3efff, #eef6ff 60%, #fff); overflow: hidden; }
.iv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.iv-text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; } .iv-text .lead { font-size: 18px; color: var(--muted); }
.iv-trig { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.iv-trig span { background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; box-shadow: 0 6px 18px rgba(80,60,180,.1); animation: ivf 4s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes ivf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.iv-demo { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.iv-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,255,.35), rgba(47,111,192,.15) 50%, transparent 70%); filter: blur(10px); animation: ivg 6s ease-in-out infinite; }
@keyframes ivg { 50% { transform: scale(1.12); } }
.iv-card { position: relative; width: min(400px, 100%); background: rgba(255,255,255,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; padding: 22px; box-shadow: 0 30px 70px rgba(60,40,160,.2); }
.iv-op { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .iv-op .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.iv-msg { background: #fff; border-radius: 20px 20px 20px 6px; padding: 16px 18px 10px; font-size: 19px; line-height: 1.4; color: var(--ink); min-height: 96px; box-shadow: 0 6px 20px rgba(16,40,70,.08); }
.iv-msg small { display: block; text-align: right; color: #a0aab5; font-size: 12px; margin-top: 6px; }
.iv-typed::after { content: '|'; animation: blinkc 1s steps(1) infinite; color: var(--violet); } .iv-typed.done::after { display: none; }
@keyframes blinkc { 50% { opacity: 0; } }
.iv-r { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; margin-top: 14px; }
.iv-r span { border: 2px solid #1e9e57; color: #1e9e57; background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 15px; opacity: 0; transform: translateY(8px); transition: all .4s; transition-delay: calc(var(--i) * .15s); }
.iv-card.show .iv-r span { opacity: 1; transform: none; }
.iv-bot { position: absolute; left: 4%; bottom: 8%; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #8b7bff, #5b8cff); display: grid; place-items: center; font-size: 30px; box-shadow: 0 14px 30px rgba(91,92,255,.4); animation: ivf 3s ease-in-out infinite; }
/* team scoreboard */
.tm-box { background: #fff; border-radius: 24px; padding: 26px 0 8px 26px; box-shadow: 0 30px 70px rgba(11,58,91,.12); overflow-x: auto; }
.tm { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14.5px; }
.tm th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 12px 14px; vertical-align: bottom; }
.tm td { padding: 14px 12px; white-space: nowrap; }
.tm tbody tr { animation: auin .5s both; animation-delay: calc(var(--i) * .08s); } .tm tbody tr:nth-child(even) td { background: #f6f9fd; }
.tm td:first-child { display: flex; align-items: center; gap: 12px; } .tm td small { display: block; font-size: 12px; color: var(--muted); text-decoration: underline; }
.tm b { text-decoration: underline; text-underline-offset: 3px; }
.tm-av { width: 38px; height: 38px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; }
.tm i { font-style: normal; } .tm i.g { color: #1e8e4a; } .tm i.o { color: #e08e1a; } .tm i.r { color: #e5484d; }
.tm .rt { position: sticky; right: 0; text-align: center; background: #fff !important; box-shadow: -14px 0 24px -14px rgba(11,58,91,.25); font-size: 17px; min-width: 120px; }
.tm .rt b { text-decoration: none; font-weight: 800; }
@media (max-width: 980px) {
  .au-res, .iv-grid { grid-template-columns: 1fr; } .au-phone { position: static; }
  .dv-stage { height: auto; display: flex; justify-content: center; }
  .dv-stage .dv { position: static; display: none; transform: none !important; opacity: 1 !important; filter: none !important; margin: 0 auto; }
  .dv-stage[data-d="pc"] .dv-pc, .dv-stage[data-d="tab"] .dv-tab, .dv-stage[data-d="ph"] .dv-ph, .dv-stage[data-d="and"] .dv-and { display: block; }
  .dv-pc { width: 100%; max-width: 620px; margin: 0; } .mon { height: 380px; } .mc-pc { width: 210px; height: 290px; }
}
@media (max-width: 640px) {
  .au-form { flex-wrap: wrap; padding: 10px; } .au-form input { width: calc(100% - 40px); } .au-form .btn { width: 100%; }
  .mon { height: 330px; border-width: 8px; } .s-grid i { height: 60px; } .mc-pc { width: 180px; height: 250px; right: 8px; bottom: 8px; font-size: 11px; }
  .tabl { width: 320px; height: 250px; } .iv-msg { font-size: 17px; } .iv-bot { display: none; }
}

/* ============ 3.8: new first screen ============ */
.hx { position: relative; padding: 140px 0 30px; overflow: hidden; isolation: isolate; }
.hx-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: hxa 18s ease-in-out infinite; }
.hx-aurora .a1 { width: 560px; height: 560px; background: #b9a8ff; top: -120px; right: -80px; }
.hx-aurora .a2 { width: 480px; height: 480px; background: #ffd98a; top: 180px; right: 28%; animation-delay: -6s; opacity: .45; }
.hx-aurora .a3 { width: 520px; height: 520px; background: #9fd4ff; top: 260px; left: -180px; animation-delay: -12s; opacity: .45; }
@keyframes hxa { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
.hx .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hx-pre { font-size: clamp(18px, 1.7vw, 23px); font-weight: 700; color: var(--muted); margin: 22px 0 6px; }
.hx h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; }
.hx-w { display: inline-block; min-width: 4ch; transition: opacity .35s, transform .35s, filter .35s; }
.hx-w.out { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.hx .lead { font-size: 18.5px; max-width: 540px; }
.hx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hx-pills span { background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border: 1px solid rgba(11,58,91,.08); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: 0 6px 16px rgba(11,58,91,.06); }
.hx-stage { position: relative; height: 560px; }
.hx-laptop { position: absolute; top: 10px; right: 0; width: 92%; height: 440px; background: #fff; border-radius: 18px; border: 10px solid #141a22; box-shadow: 0 40px 90px rgba(11,40,80,.28); overflow: hidden; }
.hx-laptop::after { content: ''; position: absolute; left: -10px; right: -10px; bottom: -10px; height: 10px; background: #141a22; }
.hx-laptop .bar { height: 28px; background: #eef1f5; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.hx-laptop .bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .hx-laptop .bar i:nth-child(2) { background: #febc2e; } .hx-laptop .bar i:nth-child(3) { background: #28c840; }
.hx-laptop .bar span { margin-left: 12px; font-size: 11.5px; color: #7b8794; background: #fff; border-radius: 7px; padding: 2px 12px; }
.hx-laptop .wdg { right: 14px; bottom: 14px; width: 62%; max-width: 300px; }
.hx-laptop .wb { min-height: 230px; }
.hx-phone { position: absolute; left: -2%; bottom: -6px; z-index: 3; transform: rotate(-4deg); animation: hxp 7s ease-in-out infinite; }
.hx-phone .phone { width: 210px; height: 420px; border-radius: 38px; padding: 9px; }
.hx-phone .phone .scr { border-radius: 30px; } .hx-phone .notch { top: 15px; width: 74px; height: 20px; }
.hx-phone .mc-h { padding-top: 34px; } .hx-phone .mc-b { font-size: 12.5px; justify-content: flex-end; }
@keyframes hxp { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
.hx-f { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; padding: 10px 16px 10px 10px; box-shadow: 0 18px 40px rgba(11,40,80,.16); font-size: 13px; animation: float 6s ease-in-out infinite; }
.hx-f span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: #fff3e3; }
.hx-f b { display: block; color: var(--ink); font-size: 13.5px; } .hx-f small { color: var(--muted); }
.hx-f.f1 { top: -8px; left: 6%; }
.hx-f.f2 { right: -14px; bottom: 70px; animation-delay: -2s; opacity: 1; transform: none; } .hx-f.f2 span { background: #e9f8ef; }
.hx-f.f3 { left: 30%; bottom: -14px; animation-delay: -4s; } .hx-f.f3 span { background: #fff8d9; }
.hx-f.f2:not(.show) { animation: float 6s ease-in-out infinite, hxpulse 2.4s ease-in-out infinite; }
@keyframes hxpulse { 50% { box-shadow: 0 18px 40px rgba(11,40,80,.16), 0 0 0 6px rgba(47,179,107,.15); } }
.hx .orbit.o1 { top: 34%; right: -22px; } .hx .orbit.o2 { top: 4%; right: 18%; } .hx .orbit.o3 { top: 46%; left: 14%; }
.hx .marquee { margin-top: 50px; }
@media (max-width: 1100px) { .hx-phone { left: -6%; } .hx-f.f2 { right: 0; } }
@media (max-width: 980px) {
  .hx { padding-top: 110px; } .hx .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hx-stage { height: 470px; max-width: 620px; width: 100%; margin: 0 auto; }
  .hx-laptop { height: 360px; }
}
@media (max-width: 640px) {
  .hx h1 { font-size: 38px; } .hx .lead { font-size: 16.5px; }
  .hx .cta .btn { width: 100%; }
  .hx-stage { height: 420px; }
  .hx-laptop { width: 100%; height: 300px; border-width: 7px; } .hx-laptop .s-grid { display: none; }
  .hx-laptop .wdg { width: 70%; right: 8px; bottom: 8px; } .hx-laptop .wb { min-height: 170px; font-size: 12px; }
  .hx-phone { left: 0; bottom: 0; } .hx-phone .phone { width: 150px; height: 300px; border-radius: 28px; padding: 6px; } .hx-phone .phone .scr { border-radius: 23px; }
  .hx-phone .mc-h { padding: 26px 8px 8px; } .hx-phone .mc-h b { font-size: 11px; } .hx-phone .mc-b { font-size: 10.5px; padding: 8px; } .hx-phone .mc-r span { font-size: 10px; padding: 3px 8px; } .hx-phone .mc-f { padding: 6px 8px 10px; }
  .hx-f { font-size: 11.5px; padding: 7px 12px 7px 7px; } .hx-f span { width: 30px; height: 30px; font-size: 15px; } .hx-f b { font-size: 12px; }
  .hx-f.f1 { left: auto; right: 0; top: -20px; } .hx-f.f3 { display: none; } .hx-f.f2 { right: 0; bottom: 20px; }
  .hx .orbit { display: none; }
}

/* header: one line on every width */
.logo, #nav a, header .btn { white-space: nowrap; }
#nav { gap: 20px; }
@media (max-width: 1320px) { #nav { gap: 16px; } #nav a { font-size: 14.5px; } }
@media (max-width: 1220px) { #nav a[href$="#guard"] { display: none; } }

/* ============ 3.9: devices fix, AI guide, sales guard ============ */
.mc-tab .mc-h { padding-top: 10px; } .mc-tab .mc-h b { font-size: 12px; } .mc-tab .mc-r span { font-size: 11px; padding: 4px 10px; }
.dv-stage { height: 580px; }
.dv-tab { left: 2%; bottom: 10px; } .dv-ph { right: 4%; bottom: 0; }
.dv-stage[data-d="ph"] .dv-ph { transform: translateX(-300px) scale(1.15); z-index: 5; }
.iv-free { display: inline-flex; gap: 8px; align-items: center; margin: 4px 0 0; padding: 8px 14px; border-radius: 12px; background: rgba(34,197,94,.1); color: #137a3d; font-weight: 600; font-size: 14.5px; }
/* AI guide */
.guide { background: linear-gradient(180deg, #fff, #f3f7ff); overflow: hidden; }
.gu-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.gu-text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; } .gu-text .lead { font-size: 18px; color: var(--muted); }
.gu-browser { position: relative; height: 420px; border-radius: 18px; background: #fff; border: 10px solid #141a22; overflow: hidden; box-shadow: 0 34px 80px rgba(11,40,80,.25); }
.gu-browser .bar { height: 28px; background: #eef1f5; display: flex; align-items: center; gap: 6px; padding: 0 12px; } .gu-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .gu-browser .bar i:nth-child(2) { background: #febc2e; } .gu-browser .bar i:nth-child(3) { background: #28c840; }
.gu-browser .bar span { margin-left: 12px; font-size: 11.5px; color: #7b8794; background: #fff; border-radius: 7px; padding: 2px 12px; }
.gu-page { padding: 20px 22px; width: 56%; transition: transform 1s cubic-bezier(.3,.8,.3,1); }
.gu-l { height: 14px; border-radius: 7px; background: #e9eef5; margin-bottom: 12px; } .gu-l.w50 { width: 50%; height: 22px; background: #d6e0ec; } .gu-l.w80 { width: 80%; } .gu-l.w70 { width: 70%; } .gu-l.w60 { width: 60%; } .gu-l.w40 { width: 40%; }
.gu-blk { margin: 22px 0; padding: 14px; border-radius: 12px; background: #f6f8fb; display: grid; gap: 8px; transition: box-shadow .4s, background .4s; }
.gu-blk b { font-size: 14px; color: var(--ink); } .gu-blk span { height: 10px; border-radius: 5px; background: #e1e7ef; } .gu-blk .s2 { width: 70%; }
.gu-chat { position: absolute; right: 12px; bottom: 12px; width: 42%; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.gu-chat p { margin: 0; padding: 9px 12px; border-radius: 14px; opacity: 0; transform: translateY(8px); transition: all .4s; }
.gu-chat .out { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.gu-chat .in { background: #fff; box-shadow: 0 6px 18px rgba(16,40,70,.12); border-bottom-left-radius: 4px; }
.gu-ask { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 10px 26px rgba(16,40,70,.16); display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; transform: translateY(8px); transition: all .4s; }
.gu-ask b { flex: 1 1 100%; font-size: 12.5px; } .gu-ask span { border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 12px; } .gu-ask .y { background: var(--gold); color: #2a1d00; transition: transform .2s; } .gu-ask .n { color: var(--muted); background: #f1f4f8; }
.gu-cursor { position: absolute; width: 22px; height: 22px; right: 30%; bottom: -30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2 4 8-3 1-4-8-6 5z' fill='%23111' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; opacity: 0; transition: all .9s cubic-bezier(.3,.8,.3,1); z-index: 3; }
#guDemo.s1 .gu-chat .out, #guDemo.s2 .gu-chat .in, #guDemo.s3 .gu-ask { opacity: 1; transform: none; }
#guDemo.s2 .gu-chat .out, #guDemo.s3 .gu-chat .out, #guDemo.s3 .gu-chat .in, #guDemo.s4 .gu-chat .out, #guDemo.s4 .gu-chat .in, #guDemo.s4 .gu-ask { opacity: 1; transform: none; }
#guDemo.s3 .gu-cursor { opacity: 1; right: 33%; bottom: 40px; }
#guDemo.s4 .gu-cursor { opacity: 1; right: 33%; bottom: 40px; transform: scale(.85); }
#guDemo.s4 .gu-ask .y { transform: scale(.94); }
#guDemo.s5 .gu-page { transform: translateY(-40px); }
#guDemo.s5 .gu-blk { background: #fff8e8; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(212,166,74,.25); animation: gublk 1.1s ease-in-out 3; }
#guDemo.s5 .gu-chat { opacity: .25; transition: opacity .4s; }
@keyframes gublk { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 0 16px rgba(212,166,74,0); } }
/* sales guard */
.guard { position: relative; }
.gd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.gd-text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; } .gd-text .lead { font-size: 18px; color: #b8c6d4; }
.gd-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.gd-list li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 16px; color: #e6eef6; font-weight: 500; }
.guard .rv.in .gd-list li, .guard .gd-list li { animation: auin .6s both; animation-delay: calc(var(--i) * .12s + .2s); }
.gd-demo { position: relative; min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.gd-push { width: min(400px, 100%); display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 50px rgba(0,0,0,.35); animation: gdpush 5s ease-in-out infinite; }
.gd-push small { display: block; font-size: 11.5px; color: #e5484d; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .gd-push b { display: block; font-size: 15px; } .gd-push em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.gd-ico { width: 44px; height: 44px; border-radius: 12px; background: #ffe9ea; display: grid; place-items: center; font-size: 22px; flex: none; animation: gdshake 5s ease-in-out infinite; }
@keyframes gdpush { 0% { transform: translateY(-30px); opacity: 0; } 8%, 80% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes gdshake { 10%, 14% { transform: rotate(-12deg); } 12%, 16% { transform: rotate(12deg); } 18% { transform: none; } }
.gd-card { width: min(400px, 100%); background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.gd-ch { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.gd-ring { position: relative; width: 64px; height: 64px; } .gd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gd-ring circle { fill: none; stroke: #edf1f6; stroke-width: 3.2; } .gd-ring circle.v { stroke: #2fb36b; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: gdring 1.6s .4s cubic-bezier(.3,.8,.3,1) forwards; }
@keyframes gdring { to { stroke-dashoffset: calc(100 - var(--v) * 10); } }
.gd-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; } .gd-ring small { font-size: 10px; color: var(--muted); }
.gd-name { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 6px 0 12px; } .gd-name i { width: 34px; height: 34px; border-radius: 50%; background: #2f6fc0; color: #fff; display: grid; place-items: center; font-style: normal; }
.gd-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.gd-checks li { display: flex; gap: 10px; align-items: center; animation: auin .5s both; animation-delay: calc(var(--i) * .15s + .6s); }
.gd-checks li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #e6f7ee; color: #1e8e4a; flex: none; }
.gd-checks li.no::before { content: '✕'; background: #ffe9ea; color: #e5484d; } .gd-checks li.no { color: #b23a3f; }
@media (max-width: 980px) {
  .gu-grid, .gd-grid { grid-template-columns: 1fr; gap: 30px; } .gu-text { order: -1; }
  .dv-stage { height: auto; }
}
@media (max-width: 640px) {
  .gu-browser { height: 360px; } .gu-page { width: 100%; } .gu-chat { width: 70%; } .gd-demo { min-height: 0; }
}

.gu-browser .bar { position: relative; z-index: 2; }
