:root{--bg:#08090a;--panel:#101114;--surface:#171920;--text:#f7f8f8;--muted:#aeb7c4;--line:rgba(255,255,255,.10);--accent:#7170ff;--accent2:#36d399;--warm:#f59e0b;--blue:#38bdf8;--rose:#fb7185;--radius:24px;--msg-in-bg:#1b1e27;--msg-out-bg:linear-gradient(135deg,#5450e8,#3b4fd6)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;font-feature-settings:"cv01","ss03";overflow-x:hidden}

/* ── Background ── */
.bg-grid{position:fixed;inset:0;z-index:-2;background:radial-gradient(900px 500px at 55% -10%,rgba(113,112,255,.28),transparent 60%),radial-gradient(600px 400px at 0 20%,rgba(54,211,153,.09),transparent 50%),linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:auto,auto,48px 48px,48px 48px}
.wrap{max-width:1180px;margin:auto;padding:0 22px}

/* ── Header ── */
.topbar{position:sticky;top:0;z-index:30;height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(8,9,10,.72);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.06)}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;font-weight:700}.mark{width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--blue));box-shadow:0 0 40px rgba(113,112,255,.4)}nav{display:flex;gap:18px}nav a{color:#d8dee8;text-decoration:none;font-size:14px;transition:.18s color}.nav-cta{border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:rgba(255,255,255,.05)}nav a:hover{color:#fff}

/* ── Hero ── */
.hero{min-height:calc(100vh - 70px);display:grid;grid-template-columns:1.02fr .98fr;gap:34px;align-items:center;padding-top:48px;padding-bottom:52px}
.eyebrow,.kicker{display:inline-flex;align-items:center;gap:10px;color:#cbd2dd;border:1px solid var(--line);background:rgba(255,255,255,.04);padding:8px 12px;border-radius:999px;font-size:13px}
.kicker{color:#a8adff;text-transform:uppercase;letter-spacing:.12em;font-size:12px}.pulse{width:8px;height:8px;background:var(--accent2);border-radius:50%;box-shadow:0 0 20px var(--accent2)}
h1{font-size:clamp(44px,6vw,78px);line-height:.94;letter-spacing:-1.8px;margin:22px 0 18px;font-weight:700;background:linear-gradient(135deg,#fff 30%,#a8adff 80%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
h2{font-size:clamp(30px,4vw,52px);line-height:1;letter-spacing:-1px;margin:0 0 14px}h3{font-size:23px;margin:0 0 10px}
.lead{font-size:20px;line-height:1.6;color:#b2bac7;max-width:720px}.muted{color:#a6aebb;line-height:1.7}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}
.btn{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:0 18px;border-radius:13px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:white;text-decoration:none;font-weight:700;cursor:pointer;transition:.2s transform,.2s box-shadow}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(135deg,#6462ff,#3b82f6);border-color:rgba(255,255,255,.15);box-shadow:0 0 0 0 rgba(100,98,255,.4);animation:btn-glow 3s ease-in-out infinite}
.btn.primary:hover{box-shadow:0 8px 32px rgba(100,98,255,.5)}.btn.outline{background:transparent;border-color:rgba(255,255,255,.25)}
@keyframes btn-glow{0%,100%{box-shadow:0 0 0 0 rgba(100,98,255,.3)}50%{box-shadow:0 0 20px 4px rgba(100,98,255,.15)}}
.hero-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px}
.hero-metrics div,.price,.security-grid div,.testimonial-card{border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:18px;padding:16px}
.hero-metrics b{display:block;font-size:22px}.hero-metrics span,.security-grid span{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.hero-panel{border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.025));border-radius:30px;padding:16px;box-shadow:0 30px 120px rgba(0,0,0,.45);animation:float-panel 6s ease-in-out infinite}
@keyframes float-panel{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.window-bar{height:42px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;color:#828b99;font:12px 'JetBrains Mono',monospace}
.window-bar span{width:10px;height:10px;border-radius:50%;background:#ff5f57}.window-bar span:nth-child(2){background:#ffbd2e}.window-bar span:nth-child(3){background:#28c840}.window-bar em{margin-left:auto;font-style:normal}
.mini-chat{padding:22px;display:grid;gap:12px}.mini-chat p{max-width:80%;margin:0;padding:14px 16px;border-radius:18px;line-height:1.45}.bot{background:#20232b}.user{background:#403eb8;justify-self:end}
.lead-card{margin:10px;border:1px solid var(--line);border-radius:18px;padding:16px;background:#0d0f14}.lead-card strong,.lead-card span{display:block}.lead-card span{color:var(--muted);font-size:13px;margin-top:4px}meter{width:100%;margin-top:14px}

/* ── Sections ── */
.section{padding:76px 0}.section-head{max-width:760px;margin-bottom:26px}.section-head p{color:#a8adff;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:700}.section-head span{color:var(--muted);font-size:18px}

/* ── Niche cards ── */
.niche-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.niche-card{min-height:310px;border-radius:26px;padding:22px;text-decoration:none;color:white;display:flex;flex-direction:column;overflow:hidden;position:relative;border:1px solid var(--line);transition:.25s transform,.25s border-color,.25s box-shadow}
.niche-card:hover{transform:translateY(-6px);border-color:rgba(255,255,255,.3);box-shadow:0 20px 60px rgba(0,0,0,.4)}
.niche-card:after{content:"";position:absolute;inset:auto -40% -35% -40%;height:180px;filter:blur(30px);opacity:.75;transition:.4s opacity}.niche-card:hover:after{opacity:1}
.niche-card small{text-transform:uppercase;letter-spacing:.14em;color:rgba(255,255,255,.68);font-weight:800;font-size:11px;position:relative;z-index:1}
.niche-card h3{position:relative;z-index:1}.niche-card p{color:rgba(255,255,255,.78);line-height:1.55;position:relative;z-index:1}
.niche-card b{margin-top:auto;align-self:flex-start;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);padding:9px 11px;border-radius:999px;color:#fff;font-size:13px;position:relative;z-index:1}
.clinic{background:linear-gradient(145deg,#0f2f2c,#143f38)}.clinic:after{background:#36d399}
.legal{background:linear-gradient(145deg,#101114,#2a2545)}.legal:after{background:#7170ff}
.estate{background:linear-gradient(145deg,#15100a,#4b2e14)}.estate:after{background:#f59e0b}
.school{background:linear-gradient(145deg,#0a1830,#193e6d)}.school:after{background:#38bdf8}

/* ── Split layouts ── */
.split{display:grid;grid-template-columns:1fr 460px;gap:28px;align-items:start}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;margin:22px 0;list-style:none}
.checks li{border:1px solid var(--line);border-radius:14px;padding:12px;color:#dbe1ea;background:rgba(255,255,255,.035)}

/* ═══════════════════════════════════════════════
   MESSENGER-STYLE CHAT (mobile-first) 
   ═══════════════════════════════════════════════ */
.chatbox{border:1px solid var(--line);background:var(--surface);border-radius:24px;overflow:hidden;box-shadow:0 24px 90px rgba(0,0,0,.36)}
.chat-head{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,rgba(113,112,255,.12),rgba(56,189,248,.06))}
.chat-head strong{font-size:14px}.chat-head span{color:var(--accent2);font-size:11px}
.chat-log{height:390px;overflow-y:auto;overflow-x:hidden;padding:12px;display:flex;flex-direction:column;scroll-behavior:smooth}
.chat-log::-webkit-scrollbar{width:4px}.chat-log::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:4px}

/* Message bubbles — messenger style */
.msg-thread{display:flex;flex-direction:column;gap:4px;margin-top:auto}
.msg-row{display:flex;flex-direction:column;max-width:88%;margin-bottom:6px;animation:msg-pop .25s ease-out}
.msg-in{align-self:flex-start;align-items:flex-start}.msg-out{align-self:flex-end;align-items:flex-end}
.msg{padding:10px 14px;border-radius:18px;line-height:1.5;font-size:14px;word-wrap:break-word;position:relative}
.msg-row.msg-in .msg{background:var(--msg-in-bg);border-bottom-left-radius:6px;color:#e8eaef}
.msg-row.msg-out .msg{background:var(--msg-out-bg);border-bottom-right-radius:6px;color:#fff}
.msg.blocked{border:1px solid rgba(251,113,133,.35)!important;background:rgba(251,113,133,.10)!important}
.msg-meta{font-size:10px;color:rgba(255,255,255,.25);margin-top:3px;padding:0 6px}
.msg-row.msg-out .msg-meta{text-align:right}

/* Typing indicator */
.msg.typing{display:flex;align-items:center;gap:4px;min-width:120px;background:var(--msg-in-bg);border-bottom-left-radius:6px;color:#8b93a5;font-size:13px;animation:typing-pulse 1.8s ease-in-out infinite}
.msg.typing::after{content:'';display:inline-flex;gap:3px;margin-left:3px}
.msg.typing::after{content:'●';animation:typing-dot 1.4s infinite;opacity:.3}
@keyframes typing-dot{0%,20%{opacity:.2}50%{opacity:1}80%,100%{opacity:.2}}
@keyframes msg-pop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes typing-pulse{0%,100%{opacity:.7}50%{opacity:1}}

/* Quick reply buttons */
.quick-row{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0}
.quick-btn{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#d8dee8;border-radius:999px;padding:7px 12px;cursor:pointer;font-size:12px;white-space:nowrap;transition:.15s all}.quick-btn:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}

/* Chat input */
.chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line);background:rgba(0,0,0,.2)}
.chat-form input{flex:1;background:#090a0d;border:1px solid var(--line);color:white;border-radius:999px;padding:0 16px;min-width:0;min-height:44px;font-size:14px;outline:none;transition:.2s border-color}.chat-form input:focus{border-color:var(--accent)}
.chat-form button{border:0;border-radius:50%;background:var(--accent);color:white;font-weight:800;width:44px;height:44px;min-width:44px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.2s transform,.2s box-shadow}.chat-form button:hover{transform:scale(1.05);box-shadow:0 4px 16px rgba(100,98,255,.4)}

/* ── Pricing, comparison, etc ── */
.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.price strong{font-size:34px;display:block;margin:14px 0}
.price p{color:#aab2bf;line-height:1.6}.price ul{list-style:none;padding:0;margin:16px 0}
.price ul li{padding:6px 0;color:#cbd2dd;font-size:14px;border-bottom:1px solid rgba(255,255,255,.05)}.price ul li:last-child{border-bottom:0}
.featured{border-color:rgba(113,112,255,.55);box-shadow:0 0 0 1px rgba(113,112,255,.18),0 24px 100px rgba(113,112,255,.18)}
.compare-wrap{overflow-x:auto;margin-top:24px}.compare{min-width:700px;width:100%;border-collapse:collapse}
.compare th,.compare td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line)}
.compare th{color:var(--muted);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.compare td{font-size:14px}.compare .check{color:var(--accent2);font-weight:700}.compare .dash{color:rgba(255,255,255,.2)}
.compare tr:hover td{background:rgba(255,255,255,.015)}
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.testimonial-card{padding:22px}.testimonial-card .quote{font-size:15px;line-height:1.6;color:#d8dee8;margin-bottom:16px}
.testimonial-card .author{display:flex;align-items:center;gap:12px}
.testimonial-card .author-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--blue))}
.testimonial-card .author-name{font-weight:600;font-size:14px}.testimonial-card .author-role{color:var(--muted);font-size:12px}

/* ── FAQ, Trust bar, Process ── */
.faq-grid{display:grid;gap:1px;background:var(--line);border-radius:20px;overflow:hidden}
.faq-item{padding:22px;background:rgba(255,255,255,.02);cursor:pointer;transition:.2s background}.faq-item:hover{background:rgba(255,255,255,.04)}
.faq-item h4{font-size:16px;margin:0;font-weight:600}.faq-item p{margin:12px 0 0;color:var(--muted);line-height:1.6;display:none}.faq-item.open p{display:block}
.trust-bar{display:flex;gap:24px;flex-wrap:wrap;justify-content:center;align-items:center;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:40px 0}
.trust-item{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.trust-icon{width:8px;height:8px;border-radius:50%;background:var(--accent2)}
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.process-grid div{border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:20px;padding:22px;transition:.3s border-color,.3s background}
.process-grid div:hover{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.05)}
.process-grid b{font-family:'JetBrains Mono',monospace;color:#9f9dff;font-size:26px}.process-grid p{color:var(--muted);line-height:1.55}

/* ── Security, CTA, Footer ── */
.security{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px}.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cta{text-align:center;border:1px solid var(--line);background:linear-gradient(135deg,rgba(113,112,255,.16),rgba(56,189,248,.09));border-radius:30px;padding-top:56px;padding-bottom:56px}.cta p{color:var(--muted);font-size:18px}
.footer{padding:34px 22px;color:#7e8795}

/* ── Niche page themes ── */
.legal-theme{--accent:#7c5cff;--bg:#06070a}.estate-theme{--accent:#c88736;--bg:#110c07}.school-theme{--accent:#2563eb;--bg:#071427}
.niche-hero{padding:70px 0 40px;display:grid;grid-template-columns:1fr 450px;gap:30px;align-items:center}
.demo-card{border:1px solid var(--line);background:rgba(255,255,255,.04);border-radius:24px;padding:22px}
.flow{display:grid;gap:10px;margin-top:16px}.flow div{display:flex;gap:12px;align-items:center;padding:13px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.flow b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--accent);font-size:13px}

/* ═══════════════════════════════════════════════
   FLOATING MESSENGER WIDGET (mobile-first)
   ═══════════════════════════════════════════════ */
#floating-widget-root{position:fixed;bottom:20px;right:20px;z-index:9999;font-family:Inter,system-ui,sans-serif}
#fw-bubble{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#6462ff,#3b82f6);border:0;color:white;cursor:pointer;box-shadow:0 8px 32px rgba(100,98,255,.45);display:flex;align-items:center;justify-content:center;transition:.2s transform,.2s box-shadow;position:relative;z-index:2}
#fw-bubble:hover{transform:scale(1.08);box-shadow:0 12px 40px rgba(100,98,255,.6)}
#fw-bubble::after{content:'';position:absolute;inset:-3px;border-radius:50%;border:2px solid rgba(100,98,255,.3);animation:fw-pulse 2s ease-out infinite}
.fw-dot{position:absolute;top:2px;right:2px;width:12px;height:12px;background:var(--accent2);border-radius:50%;border:2px solid var(--bg)}
@keyframes fw-pulse{0%{transform:scale(1);opacity:1}100%{transform:scale(1.5);opacity:0}}
#fw-panel{position:absolute;bottom:72px;right:0;width:380px;max-height:580px;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 24px 100px rgba(0,0,0,.55);display:flex;flex-direction:column;transition:.25s opacity,.25s transform}
.fw-hidden{opacity:0;transform:translateY(12px) scale(.96);pointer-events:none}
.fw-visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
#fw-panel .fw-head{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:linear-gradient(135deg,rgba(100,98,255,.15),rgba(59,130,246,.08));border-bottom:1px solid var(--line)}
.fw-head-left{display:flex;align-items:center;gap:10px}.fw-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--blue))}
.fw-head strong{font-size:14px}.fw-status{color:var(--accent2);font-size:10px;display:block}
#fw-minimize{background:0;border:0;color:var(--muted);font-size:22px;cursor:pointer;padding:0;line-height:1}
#fw-panel .fw-body{flex:1;overflow:hidden;display:flex;flex-direction:column}
#fw-panel .chat-log{flex:1;height:auto;max-height:400px}

/* ═══════════════════════════════════════════════
   MODERN ANIMATIONS 
   ═══════════════════════════════════════════════ */
.reveal{opacity:0;transform:translateY(30px);transition:.7s cubic-bezier(.22,1,.36,1) opacity,.7s cubic-bezier(.22,1,.36,1) transform}
.reveal.visible{opacity:1;transform:translateY(0)}
.reveal-delay-1{transition-delay:.1s}.reveal-delay-2{transition-delay:.2s}.reveal-delay-3{transition-delay:.3s}.reveal-delay-4{transition-delay:.4s}

/* Animated gradient border for hero panel */
@keyframes border-glow{0%,100%{border-color:rgba(113,112,255,.1)}50%{border-color:rgba(113,112,255,.25)}}

/* Cursor glow effect on desktop */
@media(hover:hover){
  body::before{content:'';position:fixed;pointer-events:none;z-index:9998;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(113,112,255,.07),transparent 70%);transform:translate(-50%,-50%);transition:opacity .3s;opacity:0}
}

/* ═══════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE 
   ═══════════════════════════════════════════════ */
@media(max-width:960px){
  nav{display:none}.hero,.split,.security,.niche-hero{grid-template-columns:1fr}.hero{min-height:auto;padding-top:24px;padding-bottom:32px}
  .niche-grid,.price-grid,.testimonials-grid{grid-template-columns:1fr 1fr}.chat-log{height:340px}.compare-wrap{font-size:13px}.process-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:640px){
  .wrap{padding:0 14px}.topbar{padding:0 14px}
  h1{font-size:36px;letter-spacing:-1px}.lead{font-size:16px}
  .hero-metrics,.niche-grid,.price-grid,.security-grid,.checks,.process-grid,.testimonials-grid{grid-template-columns:1fr}
  .chat-form{flex-direction:row}.chat-form input,.chat-form button{min-height:44px}
  .niche-hero{padding-top:24px}
  
  /* Messenger takes full screen on mobile */
  .chatbox{border-radius:0;border:0}
  .chat-log{height:calc(100vh - 130px)}
  
  /* Floating widget adapts */
  #floating-widget-root{bottom:12px;right:12px}
  #fw-bubble{width:50px;height:50px}
  #fw-panel{width:calc(100vw - 20px);right:-4px;max-height:75vh;bottom:68px;border-radius:18px}
  
  .compare{min-width:500px;font-size:11px}.compare th,.compare td{padding:10px 8px}
  .section{padding:44px 0}
}
