/* =========================================================
   Creataum Unitech — Main Stylesheet (AdminMitra-style SaaS theme)
   ========================================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff4ff;
    --purple: #7c3aed;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --green: #16a34a;
    --ink: #0f172a;
    --heading: #0f172a;
    --text: #475569;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --border: #e5e9f2;
    --navy: #0f172a;
    --amber: #fbbf24;
    --blue: #2563eb;
    --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --grad-hero: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 65%, #4f46e5 100%);
    --grad-text-dark: linear-gradient(90deg, #93c5fd 0%, #c4b5fd 50%, #f9a8d4 100%);
    --grad-blue: linear-gradient(135deg, #0ea5e9, #2563eb);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
    --radius: 14px;
    --ease: cubic-bezier(.25, .8, .25, 1);
    --ease-smooth: cubic-bezier(.25, .8, .25, 1);
    --hover-dur: .5s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text);
    background: var(--bg); line-height: 1.65; font-size: 16px; overflow-x: hidden; overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--heading); line-height: 1.25; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color .25s; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; position: relative; }
.bg-soft { background: var(--bg-soft); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-30 { margin-top: 30px; } .mb-0 { margin-bottom: 0; } .center { text-align: center; }
.big-text { font-size: 17.5px; }

/* Icon colour helpers */
.c-blue { --c: #2563eb; --cb: #eff4ff; } .c-purple { --c: #7c3aed; --cb: #f3efff; } .c-green { --c: #16a34a; --cb: #ecfdf3; }
.c-orange { --c: #f97316; --cb: #fff4eb; } .c-pink { --c: #db2777; --cb: #fdf0f6; } .c-teal { --c: #0d9488; --cb: #ecfdfa; }
.c-red { --c: #dc2626; --cb: #fef2f2; } .c-yellow { --c: #d97706; --cb: #fffbeb; } .c-sky { --c: #0284c7; --cb: #f0f9ff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 26px; border-radius: 10px;
    font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; position: relative; overflow: hidden;
    transition: translate .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; white-space: nowrap;
}
.btn i { transition: transform .3s; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--primary-dark); translate: 0 -2px; box-shadow: 0 12px 24px rgba(37, 99, 235, .35); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(249, 115, 22, .28); }
.btn-orange:hover { background: var(--orange-dark); translate: 0 -2px; }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); translate: 0 -2px; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-light:hover { translate: 0 -2px; color: var(--primary); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* ---------- Preloader & progress ---------- */
#preloader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-logo { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.loader-logo img { width: 62px; animation: pulse 1.4s ease-in-out infinite; }
.loader-logo span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--primary); border-right-color: var(--purple); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.88); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blink { 50% { opacity: .25; } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1100; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.topbar-info, .topbar-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: 6px; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; background: var(--brand); transition: transform .3s var(--ease); }
.topbar-social a i { margin: 0; }
.topbar-social a:hover { transform: translateY(-2px) scale(1.1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.07); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 48px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 21px; font-weight: 800; color: var(--primary); letter-spacing: -.4px; }
.brand small { font-size: 11.5px; color: var(--orange); font-weight: 700; letter-spacing: .3px; }
.brand-light strong { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: flex-end; }
.main-nav > ul { display: flex; gap: 2px; align-items: center; margin-right: auto; margin-left: 30px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 13px; font-weight: 500; font-size: 15px; color: var(--ink); border-radius: 8px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--primary); background: var(--primary-light); }
.drop-toggle i { font-size: 10px; transition: transform .3s; }
.has-drop:hover .drop-toggle i { transform: rotate(180deg); }
.nav-actions { display: flex; gap: 8px; }

.dropdown {
    position: absolute; top: calc(100% + 12px); left: 0; min-width: 300px; background: #fff; border-radius: 14px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 14px;
    opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity .3s var(--ease), translate .3s var(--ease), visibility .3s;
}
.dropdown.mega { min-width: 560px; }
.has-drop:hover .dropdown { opacity: 1; visibility: visible; translate: 0 0; }
.dropdown::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.mega-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 2px 10px 10px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; transition: background .25s, translate .25s var(--ease); }
.mega-item:hover, .mega-item.active { background: var(--bg-soft); translate: 3px 0; }
.mi-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--cb); color: var(--c); font-size: 16px; transition: all .3s; }
.mega-item:hover .mi-icon { background: var(--c); color: #fff; }
.mega-item strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mega-item small { display: block; font-size: 12.5px; color: var(--muted); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer-head, .drawer-foot, .nav-backdrop { display: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 100px; right: 20px; z-index: 2000; max-width: 380px; background: #fff; padding: 16px 44px 16px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-weight: 500; animation: slideIn .5s var(--ease); border-left: 4px solid var(--green); }
.toast-error { border-left-color: #ef4444; }
.toast-success i { color: var(--green); } .toast-error i { color: #ef4444; }
.toast button { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.8px; }
.section-head p { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto; }
.section-head.light h2 { color: #fff; } .section-head.light p { color: #cbd5e1; } .section-head.light .eyebrow { color: #93c5fd; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 50px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px; backdrop-filter: blur(6px); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #dbeafe; padding: 80px 0 0; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-glow.g1 { width: 420px; height: 420px; background: #a855f7; top: -160px; right: -60px; animation: floaty 10s infinite; }
.hero-glow.g2 { width: 380px; height: 380px; background: #38bdf8; bottom: 60px; left: -140px; animation: floaty 12s infinite; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 18px; }
.hero .h1-top { display: block; }
.hero .typed-line { display: block; white-space: nowrap; font-size: clamp(34px, 5.6vw, 66px); letter-spacing: -1.8px; min-height: 1.15em; line-height: 1.15; margin-top: 4px; }
.hero .text-grad { background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; }
.hero h1 .cursor { display: inline-block; width: 4px; height: .85em; background: #f9a8d4; margin-left: 4px; vertical-align: -4px; animation: blink 1s steps(1) infinite; }
.hero-lead { font-size: 18px; max-width: 720px; margin: 0 auto 30px; color: #dbeafe; }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin: 44px 0 0; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; color: #fff; font-size: 32px; font-weight: 800; line-height: 1.1; }
.hero-stats span { font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #bfdbfe; }
.hero-showcase { position: relative; z-index: 2; max-width: 1080px; margin: 56px auto 0; height: 360px; }
.hs-card { position: absolute; border-radius: 18px 18px 0 0; overflow: hidden; background: #fff; box-shadow: 0 -10px 50px rgba(15,23,42,.35); border: 6px solid rgba(255,255,255,.9); border-bottom: 0; }
.hs-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hs-card:hover img { transform: scale(1.05); }
.hs-main { left: 22%; right: 22%; top: 0; bottom: 0; z-index: 2; background: #f8fafc; }
.hs-main img { object-fit: contain; object-position: center bottom; }
.hs-bar { height: 34px; background: #f1f5f9; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.hs-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .hs-bar span:nth-child(2) { background: #fbbf24; } .hs-bar span:nth-child(3) { background: #34d399; }
.hs-main .hs-body { height: calc(100% - 34px); }
.hs-left { left: 0; width: 30%; top: 70px; bottom: 0; transform: rotate(-3deg); transform-origin: bottom right; }
.hs-right { right: 0; width: 30%; top: 70px; bottom: 0; transform: rotate(3deg); transform-origin: bottom left; }
.hs-chip { position: absolute; z-index: 3; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; text-align: left; }
.hs-chip i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.hs-chip strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.2; } .hs-chip small { color: var(--muted); font-size: 12px; }
.hs-chip.k1 { left: 14%; top: 30px; animation: floaty 6s infinite; } .hs-chip.k1 i { background: var(--green); }
.hs-chip.k2 { right: 13%; top: 110px; animation: floaty 7s infinite 1s; } .hs-chip.k2 i { background: var(--purple); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livepulse 1.8s infinite; display: inline-block; }
@keyframes livepulse { to { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 76px 0 84px; background: var(--grad-hero); color: #dbeafe; }
.page-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.hero-blob.b1 { width: 380px; height: 380px; background: #a855f7; top: -140px; right: -80px; animation: floaty 9s infinite; }
.hero-blob.b2 { width: 320px; height: 320px; background: #38bdf8; bottom: -160px; left: -60px; animation: floaty 11s infinite; }
.page-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.page-hero-grid.center { grid-template-columns: minmax(0, 1fr); text-align: center; max-width: 820px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -1.2px; }
.page-hero .text-grad { background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; }
.page-hero p { font-size: 18px; max-width: 620px; color: #dbeafe; }
.page-hero-grid.center p { margin-left: auto; margin-right: auto; }
.page-hero .eyebrow { display: inline-flex; padding: 7px 16px; border-radius: 50px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 12px; }
.crumbs { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 16px; border-radius: 50px; background: rgba(255,255,255,.1); font-size: 14px; }
.crumbs a:hover { color: #fff; } .crumbs span { color: #fff; font-weight: 600; }
.page-hero-img { position: relative; }
.page-hero-img > img { border-radius: 20px; margin: 0 auto; max-height: 380px; object-fit: cover; box-shadow: 0 30px 60px rgba(15,23,42,.35); border: 6px solid rgba(255,255,255,.9); background: #fff; }
.float-chip { position: absolute; background: #fff; color: var(--ink); padding: 9px 15px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; }
.float-chip i { color: var(--primary); }
.float-chip.c1 { top: 6%; left: -2%; animation: floaty 5s infinite; }
.float-chip.c2 { bottom: 10%; left: 4%; animation: floaty 6s infinite .7s; }
.float-chip.c3 { top: 42%; right: -2%; animation: floaty 5.5s infinite 1.2s; }
.product-logo { background: #fff; padding: 10px 18px; border-radius: 12px; display: inline-block; margin-bottom: 14px; }
.product-logo img { height: 44px; width: auto; }

/* ---------- Module / service tiles ---------- */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.module { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); display: block; position: relative; overflow: hidden; }
.module i.m-ic { font-size: 34px; color: var(--c); margin-bottom: 16px; display: block; transition: transform .5s var(--ease); }
.module h4 { font-size: 18px; margin-bottom: 8px; }
.module p { font-size: 14.5px; color: var(--muted); margin: 0; }
.module:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); border-color: transparent; }
.module:hover i.m-ic { transform: scale(1.15) rotate(-6deg); }
.module::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); transform: scaleX(0); transition: transform .5s var(--ease); }
.module:hover::before { transform: scaleX(1); }

.tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 12px; text-align: center; display: block; }
.tile .t-ic { width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-size: 18px; transition: all .4s var(--ease); }
.tile h6 { font-size: 15px; margin: 0 0 2px; }
.tile small { font-size: 12.5px; color: var(--muted); }
.tile:hover { translate: 0 -6px; box-shadow: var(--shadow); border-color: #c7d7fe; }
.tile:hover .t-ic { background: var(--primary); color: #fff; }

/* ---------- Trusted stats band ---------- */
.trust-band { background: linear-gradient(135deg, #f8fbff 0%, #e8efff 100%); border: 1px solid #dbe5ff; border-radius: 20px; padding: 46px 30px; text-align: center; }
.trust-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 30px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-grid strong { display: block; font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; color: var(--primary); line-height: 1.1; }
.trust-grid > div > span { font-size: 15px; color: var(--text); }

/* ---------- Solution cards ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.solution { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.solution .s-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; box-shadow: 0 10px 20px rgba(79,70,229,.3); transition: transform .5s var(--ease); }
.solution h4 { font-size: 19px; }
.solution > p { font-size: 14.5px; color: var(--muted); }
.solution ul { margin: 6px 0 22px; flex: 1; }
.solution li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 14.5px; }
.solution li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--green); font-size: 13px; }
.solution:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); }
.solution:hover .s-ic { transform: rotate(-8deg) scale(1.08); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 66px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #c7d7fe 0 10px, transparent 10px 20px); }
.process-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.process-card:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); border-color: transparent; }
.step-no { position: absolute; top: 14px; right: 18px; font-size: 40px; font-weight: 800; color: #eef2fb; line-height: 1; transition: color .4s; }
.process-card:hover .step-no { color: #dbe5ff; }
.step-icon { width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 26px; position: relative; z-index: 1; box-shadow: 0 12px 24px rgba(79,70,229,.28); transition: transform .6s var(--ease); }
.process-card:nth-child(2) .step-icon { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.process-card:nth-child(3) .step-icon { background: linear-gradient(135deg, #16a34a, #0d9488); box-shadow: 0 12px 24px rgba(22,163,74,.25); }
.process-card:nth-child(4) .step-icon { background: linear-gradient(135deg, #f97316, #db2777); box-shadow: 0 12px 24px rgba(249,115,22,.25); }
.process-card:hover .step-icon { transform: rotateY(360deg); }
.process-card h4 { font-size: 18px; }
.process-card p { font-size: 14.5px; margin: 0; color: var(--muted); }

/* ---------- Split / image stacks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.6px; }
.img-stack { position: relative; }
.img-stack .main { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.img-stack:hover .main { transform: scale(1.02); }
.img-stack .badge-exp { position: absolute; bottom: -22px; right: -10px; background: var(--grad); color: #fff; padding: 20px 24px; border-radius: 16px; box-shadow: 0 18px 40px rgba(79,70,229,.35); text-align: center; animation: floaty 5s infinite; font-size: 14px; }
.img-stack .badge-exp strong { display: block; font-size: 36px; line-height: 1; }
.img-stack .dots { position: absolute; top: -22px; left: -22px; width: 130px; height: 130px; z-index: -1; background-image: radial-gradient(var(--primary) 2px, transparent 2px); background-size: 16px 16px; opacity: .25; }
.photo-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-frame:hover img { transform: scale(1.05); }

.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.why-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.why-card:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.why-card img { width: 42px; height: 42px; animation: spin 12s linear infinite; }
.why-card small { display: block; font-size: 11px; color: var(--primary); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.why-card h5 { font-size: 15px; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: var(--green); font-size: 11px; display: grid; place-items: center; }
.check-list strong { color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.values div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; transition: all .4s var(--ease); }
.values div:hover { background: #fff; box-shadow: var(--shadow); translate: 0 -4px; }
.values strong { display: block; font-size: 26px; color: var(--primary); font-weight: 800; }
.values span { font-size: 13px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pill { padding: 7px 14px; border-radius: 50px; background: var(--primary-light); font-weight: 600; color: var(--primary); font-size: 13.5px; transition: all .3s; }
.pill i { margin-right: 6px; }

/* ---------- Counters (inner pages) ---------- */
.counters { padding: 30px 0 70px; }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: linear-gradient(135deg, #f8fbff 0%, #e8efff 100%); border: 1px solid #dbe5ff; border-radius: 20px; padding: 40px 24px; }
.counter { text-align: center; padding: 6px; }
.counter i { font-size: 24px; color: var(--primary); margin-bottom: 8px; opacity: .85; }
.counter h3 { color: var(--primary); font-size: 40px; font-weight: 800; margin: 0; }
.counter p { margin: 0; font-weight: 500; font-size: 15px; }

/* ---------- App section ---------- */
.app-promo { background: var(--bg-soft); overflow: hidden; }
.app-label { display: inline-block; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.app-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 22px 0 28px; }
.app-features div { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.app-features i { color: #fff; background: var(--green); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.app-mock { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.app-mock img { width: 100%; transition: transform 1s var(--ease); }
.app-mock:hover img { transform: scale(1.04); }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 10px; background: #000; color: #fff; transition: all .35s var(--ease); }
.store-badge i { font-size: 24px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 16px; }
.store-badge small { font-size: 10px; font-weight: 500; letter-spacing: .4px; opacity: .8; }
.store-badge:hover { translate: 0 -3px; box-shadow: var(--shadow); }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.industry-card { border-radius: 16px; background: #fff; border: 1px solid var(--border); overflow: hidden; display: block; box-shadow: var(--shadow-sm); position: relative; }
.industry-card .ic-img { aspect-ratio: 4 / 3; overflow: hidden; }
.industry-card .ic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.industry-card .ic-body { padding: 20px 22px 24px; }
.industry-card .ic-body i { color: var(--primary); font-size: 20px; margin-bottom: 8px; display: block; }
.industry-card h4 { font-size: 17px; margin-bottom: 6px; }
.industry-card p { font-size: 14.5px; margin: 0; color: var(--muted); }
.industry-card:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); }
.industry-card:hover .ic-img img { transform: scale(1.08); }

/* ---------- Portfolio ---------- */
.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.pf-filter { border: 1px solid var(--border); background: #fff; padding: 9px 20px; border-radius: 50px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink); transition: all .3s var(--ease); }
.pf-filter:hover { border-color: var(--primary); color: var(--primary); }
.pf-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 18px rgba(37,99,235,.28); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: block; }
.portfolio-card.is-hidden { display: none; }
.portfolio-card.is-fading { opacity: 0; scale: .95; }
.portfolio-card:hover { translate: 0 -8px; box-shadow: 0 26px 56px rgba(15,23,42,.15); border-color: transparent; }
.portfolio-card .pc-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #f1f5f9; }
.portfolio-card .pc-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: translateY(0); transition: transform var(--scroll-dur, 4s) cubic-bezier(.45, .05, .35, 1); will-change: transform; }
.portfolio-card .pc-img.tall img { height: auto; object-fit: initial; }
.portfolio-card:hover .pc-img.tall img { transform: translateY(var(--scroll-y, 0)); }
.portfolio-card .pc-img:not(.tall) img { transition: transform 1.2s var(--ease); }
.portfolio-card:hover .pc-img:not(.tall) img { transform: scale(1.07); }
.portfolio-card:not(:hover) .pc-img img { transition-duration: 1s; }
.pc-overlay { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; z-index: 2; background: linear-gradient(to top, rgba(15,23,42,.7), transparent); opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease) .1s, transform .45s var(--ease) .1s; }
.pc-visit { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; background: #fff; color: var(--primary); padding: 7px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.portfolio-card:hover .pc-overlay { opacity: 1; transform: none; }
.pc-scroll-hint { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(15,23,42,.72); color: #fff; font-size: 12px; padding: 5px 11px; border-radius: 50px; transition: opacity .4s; display: none; }
.pc-img.tall .pc-scroll-hint { display: inline-block; }
.portfolio-card:hover .pc-scroll-hint { opacity: 0; }
.portfolio-card .pc-body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pc-cat { display: block; color: var(--primary); font-weight: 700; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.portfolio-card h4 { margin: 0; font-size: 17px; transition: color .3s; }
.portfolio-card:hover h4 { color: var(--primary); }
.pc-desc { font-size: 13.5px; line-height: 1.55; margin: 6px 0 0; color: var(--muted); }
.pc-arrow { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--primary); transition: all .35s; flex-shrink: 0; }
.portfolio-card:hover .pc-arrow { background: var(--primary); color: #fff; transform: rotate(-45deg); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); overflow: hidden; }
.testimonials .section-head.light h2 { color: var(--ink); } .testimonials .section-head.light .eyebrow { color: var(--primary); }
.testi-swiper { padding: 10px 4px 56px !important; }
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; color: var(--text); height: 100%; position: relative; box-shadow: var(--shadow-sm); }
.testi-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.testi-card .quote { width: 40px; position: absolute; top: 24px; right: 24px; opacity: .25; }
.stars { color: #f59e0b; margin-bottom: 14px; font-size: 14px; letter-spacing: 2px; }
.testi-card p { font-size: 15.5px; min-height: 130px; }
.testi-author { display: flex; gap: 14px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.testi-author h4 { margin: 0; font-size: 15.5px; } .testi-author span { font-size: 13px; color: var(--primary); }
.swiper-pagination-bullet { background: #94a3b8; opacity: .5; width: 9px; height: 9px; transition: all .3s; }
.swiper-pagination-bullet-active { background: var(--primary); opacity: 1; width: 28px; border-radius: 6px; }

/* ---------- Clients marquee ---------- */
.clients { overflow: hidden; }
.marquee { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo { width: 170px; height: 92px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; padding: 12px; }
.client-logo img {
    max-height: 46px;
    max-width: 130px;
    object-fit: contain;
}
.client-logo:hover { box-shadow: var(--shadow); translate: 0 -4px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.faq-list .section-head { text-align: left; margin: 0 0 28px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: #fff; transition: all .3s; overflow: hidden; }
.faq-item.open { box-shadow: var(--shadow); border-color: #c7d7fe; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 17px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; font-family: inherit; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.faq-q i { width: 28px; height: 28px; border-radius: 8px; background: var(--primary-light); display: grid; place-items: center; flex-shrink: 0; transition: all .35s; font-size: 12px; color: var(--primary); }
.faq-item.open .faq-q { color: var(--primary); }
.faq-item.open .faq-q i { transform: rotate(135deg); background: var(--primary); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; padding: 0 20px; font-size: 15px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > div { padding-bottom: 18px; }
.faq-a ul { padding-left: 4px; } .faq-a li { margin-bottom: 4px; }
.faq-img img { animation: floaty 6s infinite; }

/* ---------- Generic cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden; z-index: 0; box-shadow: var(--shadow-sm); }
.card::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity var(--hover-dur) var(--ease); z-index: -1; }
.card.hover-fill:hover::before { opacity: 1; }
.card.hover-fill:hover, .card.hover-fill:hover h4, .card.hover-fill:hover p { color: #fff; }
.card.hover-fill:hover .card-icon { background: rgba(255,255,255,.18); color: #fff; }
.card:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; background: var(--primary-light); color: var(--primary); transition: all .45s var(--ease); }
.card-icon img { width: 34px; height: 34px; object-fit: contain; }
.card h4 { font-size: 18px; transition: color .3s; }
.card p { margin: 0; font-size: 15px; color: var(--muted); transition: color .3s; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); }
.mv-card { text-align: center; padding: 40px 28px; }
.mv-card .card-icon { margin: 0 auto 20px; width: 78px; height: 78px; border-radius: 50%; }
.mv-card .card-icon img { width: 44px; height: 44px; }

.feature-list { display: grid; gap: 18px; }
.feature-list.cols-2 { grid-template-columns: 1fr 1fr; }
.feature-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-item { position: relative; overflow: hidden; display: flex; gap: 16px; padding: 22px; background: #fff; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.feature-item:hover { translate: 0 -5px; box-shadow: var(--shadow); border-color: #c7d7fe; }
.fi-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 18px; transition: transform .45s var(--ease); }
.feature-item:nth-child(3n+2) .fi-icon { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.feature-item:nth-child(3n+3) .fi-icon { background: linear-gradient(135deg, #16a34a, #0d9488); }
.feature-item:hover .fi-icon { transform: rotate(-8deg) scale(1.08); }
.feature-item h4 { font-size: 16.5px; margin-bottom: 4px; }
.feature-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

.lead-box { background: #fff; border-radius: 18px; padding: 40px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--primary); font-size: 17px; margin-top: -56px; position: relative; z-index: 3; }
.lead-box h3 { font-size: 23px; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
.design-tile { position: relative; overflow: hidden; background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 20px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.design-tile img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 10px; transition: transform .45s var(--ease); }
.design-tile h6 { font-size: 14px; margin: 0; }
.design-tile:hover { translate: 0 -6px; box-shadow: var(--shadow); border-color: #c7d7fe; }
.design-tile:hover img { transform: scale(1.12) rotate(-5deg); }
.tech-box { background: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border); }
.tech-box img { margin: 0 auto; }

/* Light sweep on hover */
.card, .feature-item, .process-card, .team-card, .design-tile, .industry-card, .module, .solution, .tile { isolation: isolate; }
.card::after, .feature-item::after, .process-card::after, .team-card::after, .design-tile::after, .industry-card::after, .module::after, .solution::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: 2; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); transition: left .9s var(--ease);
}
.card:hover::after, .feature-item:hover::after, .process-card:hover::after, .team-card:hover::after, .design-tile:hover::after, .industry-card:hover::after, .module:hover::after, .solution:hover::after { left: 130%; }

/* Smooth hover transitions (translate keeps working with scroll-reveal) */
.card, .feature-item, .process-card, .team-card, .why-card, .design-tile, .portfolio-card, .testi-card, .client-logo, .counter, .policy-item, .industry-card, .module, .solution, .tile {
    transition: translate var(--hover-dur) var(--ease), transform .8s var(--ease), opacity .8s var(--ease), scale .45s var(--ease),
                box-shadow var(--hover-dur) var(--ease), border-color var(--hover-dur) var(--ease), background-color var(--hover-dur) var(--ease) !important;
}

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 90px; }
.cta-inner { background: linear-gradient(120deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%); border-radius: 22px; padding: 56px 40px; color: #fff; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-inner::before, .cta-inner::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-inner::before { width: 300px; height: 300px; right: -90px; top: -150px; }
.cta-inner::after { width: 220px; height: 220px; left: -60px; bottom: -120px; }
.cta-inner h3 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 8px; }
.cta-inner p { margin: 0; font-size: 17.5px; color: #e0e7ff; }
.cta-inner a:not(.btn) { color: #fff; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); text-align: center; position: relative; box-shadow: var(--shadow-sm); }
.team-card .tc-top { height: 100px; background: var(--grad); }
.team-card:nth-child(3n+2) .tc-top { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.team-card:nth-child(3n+3) .tc-top { background: linear-gradient(135deg, #7c3aed, #db2777); }
.team-card .tc-img { width: 120px; height: 120px; border-radius: 50%; border: 5px solid #fff; margin: -60px auto 12px; overflow: hidden; box-shadow: var(--shadow); background: #f1f5f9; position: relative; }
.team-card .tc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .tc-img img { transform: scale(1.1); }
.team-card .tc-body { padding: 0 24px 28px; }
.team-card h3 { font-size: 19px; margin-bottom: 6px; }
.team-card .role { display: inline-block; font-size: 12.5px; color: var(--primary); font-weight: 600; background: var(--primary-light); padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.team-card p { font-size: 14.5px; margin: 0; color: var(--muted); }
.team-card:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 18px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 14px; }
.form-control { width: 100%; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 15px; font-family: inherit; background: #f8fafc; transition: all .25s; color: var(--ink); }
.form-control:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
textarea.form-control { resize: vertical; min-height: 120px; }
.file-drop { border: 2px dashed var(--border); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; transition: all .3s; background: #f8fafc; display: block; font-weight: 500 !important; }
.file-drop:hover, .file-drop.has-file { border-color: var(--primary); background: var(--primary-light); }
.file-drop i { font-size: 28px; color: var(--primary); display: block; margin-bottom: 8px; }
.file-drop input { display: none; }
.form-note { font-size: 13px; color: var(--muted); }
.contact-info-card { background: var(--grad-hero); color: #dbeafe; border-radius: 18px; padding: 40px; position: relative; overflow: hidden; height: 100%; }
.contact-info-card h3 { color: #fff; }
.contact-info-card::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: #a855f7; filter: blur(90px); opacity: .45; bottom: -100px; right: -80px; }
.ci-item { display: flex; gap: 14px; margin-top: 22px; position: relative; z-index: 1; }
.ci-item i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; font-size: 18px; }
.ci-item h5 { color: #fff; margin: 0 0 2px; font-size: 15.5px; }
.ci-item a:hover { color: #fff; }
.map-wrap { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); line-height: 0; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 440px; border: 0; }

/* ---------- Policy ---------- */
.policy-box { background: #fff; border-radius: 18px; padding: 48px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; border: 1px solid var(--border); }
.policy-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px dashed var(--border); }
.policy-item:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; padding-top: 70px; font-size: 14.5px; }
.footer-wave { display: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr 1.8fr; gap: 40px; padding-bottom: 46px; }
.site-footer h5 { color: #fff; font-size: 14px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { transition: all .3s; display: inline-block; }
.site-footer ul li a:hover { color: #fff; translate: 4px 0; }
.footer-about p { margin: 18px 0; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--brand); transition: all .3s var(--ease); }
.social a:hover { translate: 0 -4px; filter: brightness(1.12); box-shadow: 0 10px 22px rgba(0,0,0,.3); }
.contact-list li { display: flex; gap: 12px; }
.contact-list i { color: #60a5fa; margin-top: 5px; }
.contact-list a { word-break: break-all; }
/* keep the email on one line wherever the column is wide enough (it can still wrap on small phones) */
@media (min-width: 1100px), (min-width: 768px) and (max-width: 991px) { .contact-list a[href^="mailto:"] { white-space: nowrap; word-break: normal; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Brand-coloured socials */
.s-fb { --brand: #1877f2; } .s-in { --brand: #0a66c2; } .s-x { --brand: #000000; } .s-ig { --brand: #e4405f; }
.topbar-social a.s-ig, .social a.s-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.topbar-social a.s-x, .social a.s-x { box-shadow: 0 0 0 1px rgba(255,255,255,.3); }

/* ---------- Floating buttons ---------- */
.float-whatsapp, .float-call, .back-to-top { position: fixed; right: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 25px; z-index: 900; box-shadow: var(--shadow-lg); border: 0; cursor: pointer; transition: transform .3s; }
.float-whatsapp { bottom: 22px; background: #25d366; }
.float-whatsapp::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: ripple 2s infinite; z-index: -1; }
@keyframes ripple { to { transform: scale(1.7); opacity: 0; } }
.float-call { bottom: 86px; background: var(--primary); font-size: 19px; }
.back-to-top { bottom: 150px; background: var(--ink); font-size: 17px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.float-whatsapp:hover, .float-call:hover { transform: scale(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .nav-actions .btn-orange { display: none; }
    .main-nav > ul { margin-left: 14px; }
    .main-nav > ul > li > a { padding: 10px 9px; font-size: 14.5px; }
    .topbar-addr { display: none; }
}
@media (max-width: 991px) {
    .nav-toggle { display: block; position: relative; z-index: 1002; margin-right: -6px; }
    .main-nav {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(340px, 86vw); background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 0 22px 26px; gap: 0; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 1000;
        clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s linear .5s;
    }
    .main-nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
    .main-nav > * { opacity: 0; transition: opacity .4s; }
    .main-nav.open > * { opacity: 1; transition-delay: .15s; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
    .main-nav > ul > li > a { padding: 14px 6px; border-bottom: 1px solid var(--border); justify-content: space-between; border-radius: 0; }
    .main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { background: none; }
    .dropdown, .dropdown.mega { position: static; opacity: 1; visibility: visible; translate: none; box-shadow: none; border: 0; padding: 6px 0; display: none; min-width: 0; }
    .has-drop.open .dropdown { display: block; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-title { display: none; }
    .has-drop:hover .drop-toggle i { transform: none; }
    .has-drop.open .drop-toggle i { transform: rotate(180deg); }
    .nav-actions { flex-direction: column; margin-top: 20px; }
    .nav-actions .btn-orange { display: inline-flex; }
    .drawer-head { display: flex; align-items: center; height: 76px; border-bottom: 1px solid var(--border); margin: 0 -22px 8px; padding: 0 22px; background: #fff; position: sticky; top: 0; z-index: 2; }
    .drawer-head .brand img { width: 44px; } .drawer-head .brand strong { font-size: 19px; }
    .drawer-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14.5px; }
    .drawer-foot > a { color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 10px; }
    .drawer-foot > a i { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; }
    .drawer-foot > a .fa-whatsapp { background: #25d366; color: #fff; }
    .drawer-foot .social { margin-top: 6px; }
    .site-header .nav-toggle.open { position: fixed; top: 16px; right: 20px; }
    .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: all .4s var(--ease); z-index: 999; }
    .nav-backdrop.show { opacity: 1; visibility: visible; }

    .page-hero-grid, .split, .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .split.reverse > :first-child { order: 0; }
    .process-grid, .card-grid.cols-4, .module-grid, .solution-grid, .industry-grid, .trust-grid, .counters-grid { grid-template-columns: repeat(2, 1fr); }
    .tile-grid { grid-template-columns: repeat(3, 1fr); }
    .process-grid::before { display: none; }
    .card-grid, .team-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .faq-img { max-width: 360px; margin: 0 auto; }
    .section { padding: 72px 0; }
    .topbar-info a:nth-child(2) { display: none; }
    .hero-showcase { height: 300px; }
    .hs-chip { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .process-grid, .card-grid, .card-grid.cols-2, .card-grid.cols-4, .team-grid, .portfolio-grid, .feature-list.cols-2, .feature-list.cols-3, .why-cards, .form-row, .footer-grid, .module-grid, .solution-grid, .industry-grid, .values, .app-features { grid-template-columns: 1fr; }
    .counters-grid, .trust-grid, .tile-grid { grid-template-columns: 1fr 1fr; }
    .counter h3 { font-size: 32px; }
    .topbar-social { display: none; }
    .hero { padding-top: 56px; }
    .hero h1 { font-size: clamp(20px, 6.2vw, 28px); }
    .hero .typed-line { font-size: clamp(28px, 9vw, 40px); }
    .hero-stats { gap: 26px; } .hero-stats strong { font-size: 26px; }
    .hero-showcase { height: 210px; margin-top: 40px; }
    .hs-left, .hs-right { display: none; }
    .hs-main { left: 0; right: 0; }
    .form-card, .contact-info-card, .policy-box, .lead-box { padding: 26px 20px; }
    .float-chip { display: none; }
    .section { padding: 60px 0; }
    .brand strong { font-size: 19px; } .brand img { width: 42px; }
    .cta-inner { padding: 44px 22px; }
    .trust-band { padding: 34px 18px; }
}
@media (hover: none) and (pointer: coarse) { .pc-overlay { opacity: 1; transform: none; } .pc-scroll-hint { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 640px) { .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 10px; } }
/* On phones the header is solid: a backdrop-filter would make the fixed drawer position relative to the header */
@media (max-width: 991px) { .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; } }

/* =========================================================
   Left-edge contact tabs (slide out on hover to show number)
   ========================================================= */
.float-whatsapp, .float-call { display: none; }
.side-contact { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 950; display: flex; flex-direction: column; gap: 10px; }
.sc-item {
    display: flex; align-items: center; height: 54px; max-width: 54px; overflow: hidden; color: #fff;
    border-radius: 0 12px 12px 0; box-shadow: 0 10px 24px rgba(15,23,42,.22);
    transition: max-width .5s var(--ease), box-shadow .3s, filter .3s;
}
.sc-call { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.sc-wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.sc-icon { width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; }
.sc-wa .sc-icon { font-size: 26px; }
.sc-text { white-space: nowrap; padding-right: 20px; font-weight: 700; font-size: 15.5px; line-height: 1.2; opacity: 0; transform: translateX(-10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.sc-text small { display: block; font-size: 11.5px; font-weight: 500; opacity: .85; letter-spacing: .3px; }
.sc-item:hover, .sc-item:focus-visible { max-width: 260px; box-shadow: 0 16px 32px rgba(15,23,42,.3); }
.sc-item:hover .sc-text, .sc-item:focus-visible .sc-text { opacity: 1; transform: none; transition-delay: .12s; }
.sc-item:hover .sc-icon i { animation: ring .6s ease-in-out; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }

/* Back to top — distinct orange, rounded square */
.back-to-top { bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 10px 24px rgba(249,115,22,.4); font-size: 17px; }
.back-to-top:hover { box-shadow: 0 14px 30px rgba(249,115,22,.55); }
.back-to-top.show:hover { transform: translateY(-3px); }

@media (max-width: 640px) {
    .side-contact { top: auto; bottom: 90px; transform: none; }
    .sc-item, .sc-icon { height: 46px; } .sc-item { max-width: 46px; } .sc-icon { width: 46px; font-size: 19px; }
    .back-to-top { bottom: 18px; right: 16px; width: 44px; height: 44px; }
}

/* ---------- Mobile header & drawer polish ---------- */
@media (max-width: 991px) {
    .nav-wrap { height: 68px; }
    .site-header .brand img { width: 42px; }
    .site-header .brand strong { font-size: 19px; }
    .site-header .brand small { font-size: 10.5px; }
    .nav-toggle {
        width: 44px; height: 44px; padding: 0; border-radius: 12px; background: var(--primary-light); border: 1px solid #dbe5ff;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-right: 0;
    }
    .nav-toggle span { width: 20px; margin: 0; background: var(--primary); }
    .nav-toggle span:nth-child(2) { width: 14px; align-self: center; translate: 3px 0; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle.open { background: #fff; }
    .site-header .nav-toggle.open { position: fixed; top: 12px; right: 18px; }
    /* drawer: never squash the logo bar */
    .main-nav > * { flex-shrink: 0; }
    .drawer-head { height: 68px; padding-right: 74px; }
    .drawer-head .brand img { width: 42px; }
}
@media (max-width: 380px) {
    .site-header .brand small { display: none; }
}

/* =========================================================
   Hero v3 — split layout with app composition
   ========================================================= */
.hero-v3 { text-align: left; padding: 70px 0 110px; }
.hero-v3::before { display: none; }
.hero-grid-bg {
    position: absolute; inset: 0; opacity: .55;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hv3-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.02fr; gap: 56px; align-items: center; }
.hero-v3 .hero-badge { text-transform: none; letter-spacing: .2px; font-size: 13.5px; }
.hero-v3 h1 { font-size: clamp(26px, 2.6vw, 38px); }
.hero-v3 .typed-line { font-size: clamp(34px, 4.4vw, 60px); }
.hero-v3 .hero-lead { margin: 0 0 28px; max-width: 560px; font-size: 17.5px; }
.hero-v3 .hero-stats { justify-content: flex-start; gap: 0; margin-top: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; max-width: 540px; backdrop-filter: blur(6px); }
.hero-v3 .hero-stats div { flex: 1; padding: 16px 8px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-v3 .hero-stats div:last-child { border-right: 0; }
.hero-v3 .hero-stats strong { font-size: 26px; }
.hero-v3 .hero-stats span { font-size: 11.5px; }

.hv3-art { position: relative; height: 520px; }
.art-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); left: 50%; top: 50%; translate: -50% -50%; }
.art-ring.r1 { width: 440px; height: 440px; animation: spin 60s linear infinite; }
.art-ring.r2 { width: 580px; height: 580px; border-style: solid; border-color: rgba(255,255,255,.08); }
.art-window {
    position: absolute; top: 40px; right: 0; width: 88%; border-radius: 18px; overflow: hidden; background: #f8fafc;
    box-shadow: 0 40px 80px rgba(15,23,42,.45); border: 1px solid rgba(255,255,255,.6); animation: floaty 8s ease-in-out infinite;
}
.art-window .hs-bar em { margin-left: auto; margin-right: auto; font-style: normal; font-size: 12px; color: var(--muted); background: #fff; padding: 3px 16px; border-radius: 6px; border: 1px solid var(--border); }
.art-window img { width: 100%; display: block; }
.art-photo {
    position: absolute; left: 0; bottom: 20px; width: 210px; height: 210px; border-radius: 22px; overflow: hidden;
    border: 6px solid #fff; box-shadow: 0 30px 60px rgba(15,23,42,.4); z-index: 3; animation: floaty 7s ease-in-out infinite 1s;
}
.art-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.art-photo:hover img { transform: scale(1.08); }
.art-card {
    position: absolute; z-index: 4; background: #fff; border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: center;
    box-shadow: 0 20px 40px rgba(15,23,42,.25); transition: translate .4s var(--ease);
}
.art-card:hover { translate: 0 -6px; }
.art-card strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.2; }
.art-card small { color: var(--muted); font-size: 12px; }
.art-card > i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a); }
.ac-fee { left: -10px; top: 70px; animation: floaty 6s ease-in-out infinite; }
.ac-live { right: -14px; top: 0; animation: floaty 6.5s ease-in-out infinite .6s; }
.ac-chart { right: 10px; bottom: 30px; animation: floaty 5.5s ease-in-out infinite 1.2s; }
.ac-chart strong { color: var(--green); font-size: 20px; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.mini-bars span { width: 7px; height: var(--h); border-radius: 3px; background: var(--grad); animation: grow 2.4s ease-in-out infinite alternate; transform-origin: bottom; }
.mini-bars span:nth-child(2) { animation-delay: .3s; } .mini-bars span:nth-child(3) { animation-delay: .6s; } .mini-bars span:nth-child(4) { animation-delay: .9s; }
@keyframes grow { from { transform: scaleY(.55); } }
.art-stack { position: absolute; z-index: 4; left: 240px; bottom: 0; display: flex; gap: 8px; background: var(--ink); padding: 9px 12px; border-radius: 50px; box-shadow: var(--shadow-lg); }
.art-stack span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 15px; transition: transform .35s var(--ease); }
.art-stack span:nth-child(1) { color: #ff2d20; } .art-stack span:nth-child(2) { color: #61dafb; } .art-stack span:nth-child(3) { color: #3ddc84; } .art-stack span:nth-child(4) { color: #fff; } .art-stack span:nth-child(5) { color: #f24e1e; }
.art-stack span:hover { transform: translateY(-4px) scale(1.12); }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; line-height: 0; z-index: 3; }
.hero-curve svg { width: 100%; height: 100%; fill: #fff; }

@media (max-width: 1100px) {
    .hv3-art { height: 470px; } .art-photo { width: 170px; height: 170px; } .art-stack { left: 190px; }
}
@media (max-width: 991px) {
    .hv3-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hv3-text { text-align: center; }
    .hero-v3 .hero-lead, .hero-v3 .hero-stats { margin-left: auto; margin-right: auto; }
    .hv3-art { max-width: 560px; width: 100%; margin: 0 auto; height: 460px; }
}
@media (max-width: 640px) {
    .hero-v3 { padding: 46px 0 80px; }
    .hero-v3 .hero-stats { display: flex; }
    .hero-v3 .hero-stats div { padding: 12px 4px; }
    .hero-v3 .hero-stats strong { font-size: 20px; }
    .hero-v3 .hero-stats span { font-size: 10px; letter-spacing: .6px; }
    .hv3-art { height: 330px; }
    .art-window { width: 100%; top: 30px; }
    .art-photo { width: 110px; height: 110px; border-width: 4px; bottom: 10px; border-radius: 16px; }
    .art-ring, .art-stack, .ac-chart { display: none; }
    .ac-fee { top: auto; bottom: 20px; left: auto; right: 0; }
    .ac-live { top: 0; right: 0; }
    .art-card { padding: 9px 12px; } .art-card strong { font-size: 13px; } .art-card small { font-size: 11px; }
}

/* =========================================================
   AI chat assistant
   ========================================================= */
.back-to-top { bottom: 100px; }
.ai-chat { position: fixed; right: 24px; bottom: 24px; z-index: 1050; }
.ai-launcher {
    width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 26px; position: relative;
    background: var(--grad); box-shadow: 0 14px 30px rgba(79,70,229,.45); display: grid; place-items: center; transition: transform .35s var(--ease);
}
.ai-launcher::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--grad); animation: ripple 2.4s infinite; z-index: -1; }
.ai-launcher:hover { transform: scale(1.07); }
.ai-launcher i { position: absolute; transition: transform .35s var(--ease), opacity .3s; }
.ai-close-ic { opacity: 0; transform: rotate(-90deg); }
.ai-chat.open .ai-open-ic { opacity: 0; transform: rotate(90deg); }
.ai-chat.open .ai-close-ic { opacity: 1; transform: none; }
.ai-chat.open .ai-launcher::before { animation: none; }
.ai-badge { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.ai-chat.open .ai-badge { display: none; }
.ai-teaser {
    position: absolute; right: 74px; bottom: 8px; width: 240px; background: #fff; color: var(--ink); padding: 12px 30px 12px 14px; border-radius: 14px 14px 4px 14px;
    box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; cursor: pointer; opacity: 0; visibility: hidden; translate: 10px 0; transition: all .45s var(--ease);
}
.ai-teaser.show { opacity: 1; visibility: visible; translate: 0 0; }
.ai-teaser button { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.ai-panel {
    position: absolute; right: 0; bottom: 78px; width: 380px; height: min(600px, calc(100vh - 130px)); background: #fff; border-radius: 20px;
    box-shadow: 0 30px 70px rgba(15,23,42,.28); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: all .35s var(--ease);
}
.ai-chat.open .ai-panel { opacity: 1; visibility: visible; transform: none; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px; background: var(--grad-hero); color: #fff; }
.ai-avatar { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ai-avatar img { width: 32px; }
.ai-head strong { display: block; font-size: 15.5px; }
.ai-head small { font-size: 12px; color: #dbeafe; display: flex; align-items: center; gap: 6px; }
.ai-head button { margin-left: auto; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; transition: background .25s; }
.ai-head .ai-x { margin-left: 6px; }
.ai-head button:hover { background: rgba(255,255,255,.26); }
.ai-body { flex: 1; overflow-y: auto; padding: 18px 14px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.ai-msg { display: flex; }
.ai-msg.me { justify-content: flex-end; }
.ai-bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; animation: msgIn .35s var(--ease); word-wrap: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.ai-msg.bot .ai-bubble { background: #fff; color: var(--ink); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-msg.me .ai-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ai-bubble p { margin: 0 0 6px; } .ai-bubble p:last-child { margin: 0; }
.ai-bubble ul { margin: 4px 0 6px; padding-left: 18px; list-style: disc; } .ai-bubble li { margin-bottom: 3px; }
.ai-bubble a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.ai-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: dot 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--bg-soft); }
.ai-chips button { border: 1px solid #c7d7fe; background: #fff; color: var(--primary); border-radius: 50px; padding: 6px 12px; font-size: 13px; font-family: inherit; font-weight: 500; cursor: pointer; transition: all .25s; }
.ai-chips button:hover { background: var(--primary); color: #fff; }
.ai-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.ai-input textarea { flex: 1; resize: none; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14.5px; outline: 0; max-height: 110px; background: #f8fafc; transition: border-color .25s, background .25s; }
.ai-input textarea:focus { border-color: var(--primary); background: #fff; }
.ai-input button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; cursor: pointer; flex-shrink: 0; transition: transform .25s, opacity .25s; }
.ai-input button:hover { transform: scale(1.06); }
.ai-input button:disabled { opacity: .5; cursor: wait; }
.ai-foot { text-align: center; font-size: 11.5px; color: var(--muted); padding: 0 12px 10px; background: #fff; }
.ai-foot a { color: var(--primary); font-weight: 600; }
@media (max-width: 640px) {
    .ai-chat { right: 14px; bottom: 16px; }
    .ai-launcher { width: 54px; height: 54px; font-size: 23px; }
    .back-to-top { bottom: 82px; right: 19px; }
    .ai-panel { position: fixed; inset: auto 10px 82px 10px; width: auto; height: min(560px, calc(100vh - 110px)); }
    .ai-teaser { width: 200px; right: 64px; font-size: 13px; }
}
/* Guided chat: quick-reply buttons inside the conversation */
.ai-avatar { background: rgba(255,255,255,.18); color: #fff; font-size: 20px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; animation: msgIn .35s var(--ease); }
.ai-actions button {
    border: 1.5px solid var(--primary); background: #fff; color: var(--primary); border-radius: 50px; padding: 7px 14px;
    font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, translate .25s var(--ease), box-shadow .25s;
}
.ai-actions button:hover { background: var(--primary); color: #fff; translate: 0 -2px; box-shadow: 0 6px 14px rgba(37,99,235,.28); }
.ai-actions button[data-act="main"], .ai-actions button[data-act="cancel"] { border-color: #cbd5e1; color: var(--text); }
.ai-actions button[data-act="main"]:hover, .ai-actions button[data-act="cancel"]:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ai-actions button[data-act^="wa:"] { border-color: #25d366; color: #128c7e; }
.ai-actions button[data-act^="wa:"]:hover { background: #25d366; color: #fff; box-shadow: 0 6px 14px rgba(37,211,102,.3); }
.ai-msg + .ai-msg.bot .ai-bubble { margin-top: -4px; }
