/* CoreDigital.lk — marketing site */
:root {
  --navy: #0a1640;
  --navy2: #0f1f5c;
  --blue: #1d4ed8;
  --blue2: #2563eb;
  --sky: #3b82f6;
  --cyan: #22d3ee;
  --ink: #0b1433;
  --text: #33405e;
  --muted: #6a7896;
  --bg: #f5f8ff;
  --card: #ffffff;
  --line: #e2e9f8;
  --wa: #25d366;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 31, 92, .06), 0 12px 40px -12px rgba(15, 31, 92, .18);
  --shadow-lg: 0 30px 80px -20px rgba(15, 31, 92, .35);
  --grad: linear-gradient(100deg, #1d4ed8 0%, #2563eb 35%, #06b6d4 100%);
  --font: "Plus Jakarta Sans", "Noto Sans Sinhala", system-ui, -apple-system, Segoe UI, sans-serif;
  --si: "Noto Sans Sinhala", "Plus Jakarta Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h1, h2 { font-family: var(--font); font-weight: 800; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 100; box-shadow: 0 0 12px var(--cyan); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.35em; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 0; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.sm { padding: .55em 1em; font-size: .88rem; }
.btn.lg { padding: 1em 1.6em; font-size: 1rem; }
.btn.block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(37, 99, 235, .8); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid #c7d6f8; }
.btn-outline:hover { border-color: var(--blue2); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .8); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.btn-glow { position: relative; background: linear-gradient(100deg, #22d3ee, #3b82f6, #8b5cf6, #22d3ee); background-size: 300% 100%; animation: shimmer 4s linear infinite; color: #fff; padding: 1em 1.6em; box-shadow: 0 0 0 6px rgba(34, 211, 238, .15), 0 15px 40px -10px rgba(34, 211, 238, .8); }
@keyframes shimmer { to { background-position: 300% 0; } }

.chip { display: inline-flex; align-items: center; gap: .55em; padding: .45em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--blue); box-shadow: var(--shadow); font-family: var(--si); }
.chip .dot, .live i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue2); margin-bottom: 14px; }
.eyebrow.light { color: var(--cyan); }
.micro { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .5em; }
.micro .i { color: #10b981; }
.micro.center { justify-content: center; margin-top: 10px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 16px 0; }
.nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(15,31,92,.3); padding: 10px 0; }
.nav-in { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--navy2); letter-spacing: -.03em; }
.brand b { color: var(--blue2); font-weight: 800; }
.brand small { font-size: .7em; font-weight: 700; color: var(--navy2); }
.brand.light, .brand.light small { color: #fff; }
.brand.light b { color: var(--cyan); }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--text); transition: background .2s, color .2s; }
.links a:hover { background: #fff; color: var(--blue); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 140px 0 60px; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, #dbeafe 0%, transparent 60%), radial-gradient(900px 500px at 0% 90%, #e0f7fd 0%, transparent 60%), linear-gradient(#f8fbff, var(--bg)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%); }
.circuits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.circuits path { fill: none; stroke-width: 2; }
.circuits .traces path { stroke: rgba(37, 99, 235, .14); }
.circuits .pulses path { stroke: var(--cyan); stroke-dasharray: 60 1400; stroke-dashoffset: 1460; animation: pulse 6s linear infinite; filter: drop-shadow(0 0 6px var(--cyan)); }
.circuits .pulses path:nth-child(2) { animation-delay: -2s; } .circuits .pulses path:nth-child(3) { animation-delay: -4s; }
.circuits .pulses path:nth-child(4) { animation-delay: -1s; } .circuits .pulses path:nth-child(5) { animation-delay: -3s; }
.circuits .nodes circle { fill: #fff; stroke: rgba(37,99,235,.35); stroke-width: 2.5; }
@keyframes pulse { to { stroke-dashoffset: 0; } }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.orb.o1 { width: 380px; height: 380px; background: #93c5fd; top: 60px; right: -80px; animation: float 12s ease-in-out infinite; }
.orb.o2 { width: 260px; height: 260px; background: #a5f3fc; bottom: 40px; left: 30%; animation: float 14s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-30px, 30px); } }

.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--si); font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 900; margin: 22px 0 18px; letter-spacing: -.01em; line-height: 1.12; }
.hero h1 span { display: block; }
.pain-rotator { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 520px; margin-bottom: 18px; }
.q-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fee2e2; color: #dc2626; font-weight: 800; }
.pain-track { position: relative; height: 1.6em; flex: 1; overflow: hidden; font-family: var(--si); font-weight: 700; color: var(--ink); font-size: .98rem; }
.pain-track span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateY(110%); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s; }
.pain-track span.on { transform: none; opacity: 1; }
.pain-track span.out { transform: translateY(-110%); opacity: 0; }
.lead { font-size: 1.08rem; color: var(--text); max-width: 560px; font-family: var(--si); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

/* hero visual */
.hero-visual { position: relative; perspective: 1400px; }
.mock { display: flex; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,.08); overflow: hidden; transform: rotateY(-10deg) rotateX(6deg); transform-style: preserve-3d; transition: transform .25s ease-out; }
.mock-side { width: 58px; background: linear-gradient(180deg, var(--navy2), var(--navy)); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.mock-side .logo-mark { background: #fff; border-radius: 50%; padding: 2px; margin-bottom: 6px; }
.mock-side i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #8ea6e6; }
.mock-side i.on { background: rgba(255,255,255,.12); color: #fff; }
.mock-main { flex: 1; padding: 16px 18px; min-width: 0; }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-top b { color: var(--ink); font-size: .95rem; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #059669; background: #d1fae5; padding: 3px 10px; border-radius: 99px; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.mock-stats small { display: block; font-size: .64rem; color: var(--muted); }
.mock-stats b { display: block; font-size: 1.05rem; color: var(--ink); transition: color .3s; }
.mock-stats b.bump { color: var(--blue2); }
.mock-stats em { font-style: normal; font-size: .62rem; font-weight: 700; color: #10b981; }
.mock-chart { margin: 10px 0; height: 70px; border-radius: 12px; background: linear-gradient(#f8fbff, #fff); border: 1px solid var(--line); overflow: hidden; }
.mock-chart svg { width: 100%; height: 100%; }
.mock-chart .line { fill: none; stroke: var(--blue2); stroke-width: 2.5; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2.5s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mock-rows { display: flex; flex-direction: column; gap: 6px; }
.mock-rows .r { transition: background 1s; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 8px; font-size: .74rem; padding: 7px 10px; border-radius: 10px; background: #f8faff; }
.mock-rows .r span:first-child { color: var(--blue2); font-weight: 700; }
.mock-rows .r span:nth-child(2) { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-rows .r.enter { animation: rowIn .7s cubic-bezier(.2,.8,.2,1); background: #ecfdf5; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.b-blue { background: #dbeafe; color: #1d4ed8; } .b-amber { background: #fef3c7; color: #b45309; } .b-violet { background: #ede9fe; color: #6d28d9; }
.b-green { background: #d1fae5; color: #047857; } .b-gray { background: #eef1f6; color: #64748b; } .b-red { background: #fee2e2; color: #b91c1c; }

.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid #fff; font-size: .8rem; animation: bob 5s ease-in-out infinite; }
.float-card b { display: block; color: var(--ink); font-size: .82rem; }
.float-card small { color: var(--muted); font-size: .72rem; }
.float-card .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; }
.ic.wa { background: var(--wa); } .ic.ok { background: #10b981; } .ic.ms { background: linear-gradient(135deg, #0084ff, #a033ff); }
.fc1 { top: -22px; left: -34px; }
.fc2 { bottom: 34px; right: -30px; animation-delay: -2.5s; }
.float-card.flash { animation: pop .5s, bob 5s ease-in-out infinite .5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } }
.hand { position: absolute; right: -10px; top: -70px; font-family: "Caveat", cursive; font-size: 1.6rem; line-height: 1; color: var(--blue); transform: rotate(-8deg); }
.hand svg { vertical-align: middle; }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.stats div { background: rgba(255,255,255,.75); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.stats b { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stats span { font-size: 1.4rem; font-weight: 800; color: var(--blue2); }
.stats small { display: block; color: var(--muted); font-size: .85rem; }

/* ---------- section heads ---------- */
section { position: relative; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.sec-head h2 { font-family: var(--si); font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 900; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; font-family: var(--si); }
.sec-head.left { text-align: left; margin: 0; }
.sec-head.light h2 { color: #fff; } .sec-head.light p { color: #a9b8e0; }

/* ---------- hub ---------- */
.hub-sec { padding: 90px 0 70px; }
.hub { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.hub-svg { display: block; width: 100%; height: auto; }
.hub-svg .wire { fill: none; stroke: #e3eafb; stroke-width: 2.5; }
.hub-svg .wire-flow { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 260; animation: flow 3s linear infinite; }
.hub-svg .wire-flow.out { animation-delay: -1.5s; }
.hub-svg .wire-flow:nth-of-type(4n) { animation-duration: 3.6s; }
@keyframes flow { from { stroke-dashoffset: 274; } to { stroke-dashoffset: 0; } }
.hub-svg .node rect { fill: #fff; stroke: #dbe5fb; stroke-width: 1.5; filter: drop-shadow(0 4px 10px rgba(15,31,92,.08)); }
.hub-svg .node text { font: 700 16px var(--font); fill: var(--ink); }
.hub-svg .ring { fill: none; stroke: rgba(37,99,235,.25); stroke-width: 2; transform-origin: 500px 210px; animation: ring 3s ease-out infinite; }
.hub-svg .ring.r2 { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.hub-mobile { display: none; }

/* ---------- pains ---------- */
.pains { padding: 70px 0 100px; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain { position: relative; height: 290px; border: 0; padding: 0; background: none; perspective: 1000px; text-align: left; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); backface-visibility: hidden; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.face.front { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.face.back { background: linear-gradient(150deg, var(--navy2), var(--blue)); color: #c9d6ff; transform: rotateY(180deg); box-shadow: var(--shadow-lg); }
.pain.flipped .front, .pain:hover .front { transform: rotateY(-180deg); }
.pain.flipped .back, .pain:hover .back { transform: rotateY(0); }
.face b { font-family: var(--si); font-size: 1.12rem; color: var(--ink); line-height: 1.35; }
.face.back b { color: #fff; font-family: var(--font); font-size: 1.2rem; }
.face small { font-family: var(--si); font-size: .9rem; color: var(--muted); }
.face.back small { color: #c9d6ff; }
.face em { margin-top: auto; font-style: normal; font-size: .82rem; font-weight: 700; color: var(--blue2); display: flex; align-items: center; gap: 6px; font-family: var(--si); }
.pi { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg, #e0ecff, #f0f9ff); color: var(--blue2); font-size: 1.3rem; }
.pi.ok { background: rgba(255,255,255,.14); color: var(--cyan); }

/* ---------- chaos → order ---------- */
.chaos-sec { padding: 100px 0; background: radial-gradient(900px 500px at 50% 0%, #1e3a8a 0%, transparent 70%), var(--navy); color: #c9d6ff; overflow: hidden; }
.chaos-sec::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; }
.chaos-sec .arrow { color: var(--cyan); }
.chaos { position: relative; display: grid; grid-template-columns: 320px auto 1fr; gap: 28px; align-items: center; }
.phone { background: #0b141a; border-radius: 30px; padding: 10px; box-shadow: 0 0 0 2px #1f2c47, var(--shadow-lg); }
.ph-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1f2c34; border-radius: 22px 22px 6px 6px; color: #e9edef; }
.ph-top .av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e1306c; font-size: .75rem; font-weight: 800; color: #fff; }
.ph-top b { display: block; font-size: .9rem; } .ph-top small { color: #8696a0; font-size: .72rem; }
.ph-top .i { margin-left: auto; color: var(--wa); width: 22px; height: 22px; }
.bubbles { display: flex; flex-direction: column; gap: 8px; padding: 12px 8px 14px; min-height: 380px; background: #0b141a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff10'/%3E%3C/svg%3E"); border-radius: 6px 6px 22px 22px; }
.bubble { position: relative; max-width: 92%; padding: 8px 10px 16px; border-radius: 4px 12px 12px 12px; background: #202c33; color: #e9edef; font-size: .82rem; line-height: 1.4; transition: opacity .4s, transform .4s, filter .4s; }
.bubble b { display: block; font-size: .72rem; color: #53bdeb; margin-bottom: 2px; }
.bubble:nth-child(even) b { color: #f59e0b; }
.bubble time { position: absolute; right: 8px; bottom: 3px; font-size: .62rem; color: #8696a0; }
.bubble.done { opacity: .35; filter: grayscale(1); transform: scale(.97); }
.bubble.done::after { content: "✓ Order created"; position: absolute; right: 8px; top: 6px; font-size: .62rem; font-weight: 700; color: #22c55e; }
.magic { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.col { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 12px; min-height: 380px; }
.col h4 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .9rem; margin-bottom: 10px; }
.col h4 i { width: 10px; height: 10px; border-radius: 50%; }
.col h4 i.b-blue { background: #60a5fa; } .col h4 i.b-amber { background: #fbbf24; } .col h4 i.b-violet { background: #a78bfa; }
.col h4 em { margin-left: auto; font-style: normal; font-size: .75rem; background: rgba(255,255,255,.12); padding: 1px 9px; border-radius: 99px; }
.col-body { display: flex; flex-direction: column; gap: 8px; }
.kcard { background: #fff; color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: .78rem; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.kcard.hide { opacity: 0; }
.kcard.show { animation: pop .45s; }
.kcard b { display: flex; justify-content: space-between; color: var(--ink); font-size: .82rem; }
.kcard b span { color: var(--blue2); font-size: .7rem; }
.kcard small { display: flex; justify-content: space-between; color: var(--muted); margin-top: 3px; }
.kcard small em { font-style: normal; font-weight: 700; color: #059669; }
.flyer { position: fixed; z-index: 80; pointer-events: none; background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 10px; font-size: .78rem; box-shadow: 0 20px 40px -10px rgba(34,211,238,.6), 0 0 0 2px var(--cyan); overflow: hidden; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.step { padding: 24px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step span { font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.5); }
.step b { display: block; color: #fff; font-size: 1.08rem; margin: 6px 0; font-family: var(--si); }
.step p { font-family: var(--si); font-size: .92rem; color: #a9b8e0; }

/* ---------- bento ---------- */
.features { padding: 110px 0 80px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 18px; }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); }
.tile h3 { font-size: 1.12rem; margin: 16px 0 8px; }
.tile p { font-size: .9rem; color: var(--muted); font-family: var(--si); }
.t-big { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #fff 40%, #eef4ff); }
.t-big h3 { font-size: 1.5rem; }
.t-wide { grid-column: span 2; }
.mini-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.mini-list div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: .85rem; font-weight: 600; color: var(--ink); box-shadow: 0 6px 18px -12px rgba(15,31,92,.3); }
.mini-list div:nth-child(2) { margin-left: 18px; } .mini-list div:nth-child(3) { margin-left: 36px; }
.mini-list .badge { margin-left: auto; }
.chan-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.paste-demo { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: #f0fdf4; border: 1px dashed #86efac; font-size: .78rem; color: #166534; font-family: ui-monospace, monospace; overflow: hidden; white-space: nowrap; }
.cursor { display: inline-block; overflow: hidden; vertical-align: bottom; border-right: 2px solid #16a34a; animation: type 4s steps(32) infinite, blink .7s step-end infinite; width: 0; }
@keyframes type { 60%, 100% { width: 32ch; } }
@keyframes blink { 50% { border-color: transparent; } }
.track-mini { display: flex; align-items: center; margin-top: 18px; }
.track-mini i { flex: 1; height: 4px; background: #e2e9f8; position: relative; }
.track-mini i::before { content: ""; position: absolute; left: 0; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #e2e9f8; }
.track-mini i.on { background: var(--blue2); } .track-mini i.on::before { background: var(--blue2); }
.track-mini i.cur::before { box-shadow: 0 0 0 5px rgba(37,99,235,.2); animation: ping 1.8s infinite; }
.track-mini i:last-child { flex: 0 0 14px; }
.stock-bar { margin-top: 18px; height: 8px; border-radius: 99px; background: #fee2e2; position: relative; }
.stock-bar span { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: #ef4444; }
.stock-bar em { position: absolute; top: 14px; font-style: normal; font-size: .75rem; font-weight: 700; color: #dc2626; }
.avatars { display: flex; margin-top: 16px; }
.avatars i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; font-style: normal; font-size: .7rem; font-weight: 800; color: #fff; background: var(--blue2); }
.avatars i:first-child { margin-left: 0; background: #f59e0b; } .avatars i:nth-child(2) { background: #10b981; } .avatars i:nth-child(3) { background: #8b5cf6; } .avatars i:last-child { background: #cbd5e1; color: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-top: 18px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue2)); transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.tile.in .bars i { transform: scaleY(1); }
.bars i:nth-child(2) { transition-delay: .05s; } .bars i:nth-child(3) { transition-delay: .1s; } .bars i:nth-child(4) { transition-delay: .15s; } .bars i:nth-child(5) { transition-delay: .2s; } .bars i:nth-child(6) { transition-delay: .25s; } .bars i:nth-child(7) { transition-delay: .3s; } .bars i:nth-child(8) { transition-delay: .35s; }

/* ---------- ROI ---------- */
.roi-sec { padding: 40px 0 100px; }
.roi { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 44px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.roi h2 { font-family: var(--si); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; margin-bottom: 10px; }
.roi-copy > p { color: var(--muted); margin-bottom: 26px; font-family: var(--si); }
.range { display: block; margin-bottom: 18px; }
.range span { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 8px; font-family: var(--si); }
.range b { color: var(--blue2); }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue2) var(--p, 50%), #e2e9f8 var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--blue2); box-shadow: 0 4px 12px rgba(37,99,235,.4); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--blue2); cursor: grab; }
.roi-out { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 30px; border-radius: 24px; background: linear-gradient(150deg, var(--navy2), var(--blue)); color: #c9d6ff; }
.roi-out .big small { display: block; font-size: .85rem; }
.roi-out .big b { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.roi-out .big span { margin-left: 6px; color: var(--cyan); font-weight: 700; }
.roi-out .note { font-size: .92rem; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); }
.roi-out .note b, .roi-out .note span { color: #fff; }
.roi-out .btn { align-self: flex-start; background: #fff; color: var(--blue); box-shadow: none; }

/* ---------- demo CTA ---------- */
.demo-cta { padding: 20px 0 100px; }
.demo-in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 56px; border-radius: 34px; background: radial-gradient(600px 300px at 100% 0%, rgba(34,211,238,.25), transparent 70%), linear-gradient(140deg, var(--navy), #13308f); color: #c9d6ff; overflow: hidden; position: relative; }
.demo-in h2 { color: #fff; font-family: var(--si); font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 900; margin-bottom: 14px; }
.demo-in h2 .grad { background: linear-gradient(90deg, #67e8f9, #93c5fd); -webkit-background-clip: text; background-clip: text; }
.demo-in > div > p { font-family: var(--si); }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #fff; }
.ticks .i { color: var(--cyan); }
.demo-shot { border-radius: 18px; background: #fff; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); transform: rotate(3deg) translateY(10px); transition: transform .5s; overflow: hidden; }
.demo-in:hover .demo-shot { transform: rotate(0) translateY(0) scale(1.02); }
.ds-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2fb; }
.ds-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .ds-bar i:nth-child(2) { background: #fbbf24; } .ds-bar i:nth-child(3) { background: #34d399; }
.ds-bar span { margin-left: 10px; flex: 1; font-size: .7rem; color: var(--muted); background: #fff; padding: 3px 10px; border-radius: 6px; }
.ds-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ds-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ds-kpis span { height: 46px; border-radius: 10px; background: linear-gradient(135deg, #eff6ff, #f8fafc); border: 1px solid var(--line); }
.ds-row { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.ds-chart { height: 100px; border-radius: 12px; background: var(--navy2); padding: 10px; }
.ds-chart svg { width: 100%; height: 100%; }
.ds-donut { border-radius: 50%; aspect-ratio: 1; align-self: center; background: conic-gradient(#2563eb 0 45%, #22d3ee 45% 70%, #f59e0b 70% 88%, #cbd5e1 88%); mask: radial-gradient(circle, transparent 42%, #000 43%); }
.ds-lines { display: flex; flex-direction: column; gap: 6px; }
.ds-lines i { height: 22px; border-radius: 8px; background: #f1f5fd; }

/* ---------- pricing ---------- */
.pricing { padding: 60px 0 100px; }
.billing { display: inline-flex; gap: 4px; padding: 5px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 10px; }
.billing button { border: 0; padding: 9px 18px; border-radius: 99px; background: none; font-weight: 700; font-size: .9rem; color: var(--muted); }
.billing button.on { background: var(--navy2); color: #fff; }
.billing em { font-style: normal; font-size: .7rem; padding: 2px 7px; border-radius: 99px; background: #d1fae5; color: #047857; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.hot { background: linear-gradient(170deg, var(--navy2), var(--navy)); color: #c9d6ff; border: 0; transform: scale(1.04); box-shadow: var(--shadow-lg), 0 0 0 2px rgba(34,211,238,.4); }
.plan.hot h3 { color: #fff; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #3b82f6); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; }
.plan .tag { font-family: var(--si); font-size: .88rem; color: var(--muted); margin: 6px 0 18px; min-height: 2.6em; }
.plan.hot .tag { color: #a9b8e0; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price small { font-weight: 700; font-size: 1rem; color: var(--ink); }
.price b { font-size: 2.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; }
.price span { font-size: .88rem; color: var(--muted); }
.plan.hot .price small, .plan.hot .price b { color: #fff; } .plan.hot .price span { color: #a9b8e0; }
.yearly-note { font-size: .75rem; font-weight: 700; color: #10b981; height: 1.2em; visibility: hidden; }
.yearly .yearly-note { visibility: visible; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .92rem; font-family: var(--si); }
.plan li .i { color: #10b981; margin-top: 3px; }
.plan.hot li .i { color: var(--cyan); }
.plan.hot .btn-primary { background: linear-gradient(90deg, #22d3ee, #3b82f6); }

/* ---------- testimonials ---------- */
.love { padding: 40px 0 100px; overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; padding: 10px 0 20px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.quote { width: 380px; margin: 0; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.quote blockquote { margin: 0; font-family: var(--si); font-size: .95rem; color: var(--text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote .av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.quote b { display: block; color: var(--ink); font-size: .92rem; } .quote small { color: var(--muted); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq { padding: 40px 0 100px; }
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.faq .sec-head p { margin-bottom: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow); transition: border-color .3s; }
.faq details[open] { border-color: #bfd3fb; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 700; color: var(--ink); cursor: pointer; font-family: var(--si); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: #eef4ff; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--blue2); transition: transform .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-family: var(--si); }

/* ---------- contact ---------- */
.contact { padding: 0 0 100px; }
.contact-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-side { padding: 50px 44px; background: radial-gradient(500px 300px at 0% 100%, rgba(34,211,238,.25), transparent 70%), linear-gradient(160deg, var(--navy2), var(--navy)); color: #a9b8e0; }
.contact-side h2 { color: #fff; font-family: var(--si); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; margin-bottom: 12px; }
.contact-side h2 .grad { background: linear-gradient(90deg, #67e8f9, #93c5fd); -webkit-background-clip: text; background-clip: text; }
.contact-side > p { font-family: var(--si); }
.ways { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.ways a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.ways a:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.ways .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; }
.ways small { display: block; font-size: .75rem; } .ways b { color: #fff; font-size: .95rem; }
.lead-form { padding: 44px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink); font-family: var(--si); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-weight: 500; font-size: .95rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #f8faff; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--blue2); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.lead-form textarea { resize: vertical; }
.form-msg { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-family: var(--si); }
.form-msg.ok { background: #d1fae5; color: #065f46; } .form-msg.err { background: #fee2e2; color: #991b1b; }
.plan-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #eef4ff; color: var(--blue); font-size: .88rem; }
.plan-pill button { margin-left: auto; border: 0; background: none; font-size: 1.2rem; color: var(--muted); }
.lead-form .btn[disabled] { opacity: .7; pointer-events: none; }
.success-box { text-align: center; padding: 40px 10px; }
.success-box .ok-ic { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #d1fae5; color: #059669; font-size: 2rem; margin-bottom: 16px; animation: pop .5s; }
.success-box h3 { font-family: var(--si); font-size: 1.5rem; margin-bottom: 8px; }
.success-box p { color: var(--muted); font-family: var(--si); margin-bottom: 20px; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #8ea0d0; padding: 70px 0 30px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot h5 { color: #fff; font-size: .9rem; margin: 6px 0 14px; }
.foot-in > div:not(:first-child) a { display: block; padding: 4px 0; font-size: .9rem; transition: color .2s; }
.foot a:hover { color: var(--cyan); }
.foot .logo-mark { background: #fff; border-radius: 50%; padding: 2px; }
.script { font-family: "Caveat", cursive; font-size: 1.6rem; color: #fff; margin: 14px 0 6px; }
.muted { font-size: .9rem; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }

/* WhatsApp float */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 99px; background: var(--wa); color: #fff; font-weight: 700; box-shadow: 0 14px 30px -8px rgba(37,211,102,.7); transition: padding .3s; }
.wa-float .i { width: 28px; height: 28px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s; }
.wa-float:hover span, .wa-float.peek span { max-width: 180px; padding-right: 6px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ring2 2.4s infinite; }
@keyframes ring2 { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin: 30px auto 0; width: 100%; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .chaos { grid-template-columns: 1fr; }
  .phone { max-width: 380px; margin: 0 auto; width: 100%; }
  .col { min-height: 220px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .roi, .demo-in, .faq-in, .contact-in { grid-template-columns: 1fr; }
  .demo-shot { max-width: 520px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.hot { transform: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .links { position: fixed; top: 70px; left: 16px; right: 16px; flex-direction: column; gap: 2px; padding: 12px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav.open .links { transform: none; opacity: 1; pointer-events: auto; }
  .links a { padding: 12px 14px; }
  .burger { display: flex; }
  .hide-sm { display: none; }
  .nav-cta { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .hub-svg { display: none; }
  .hub-mobile { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .hub-mobile .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hub-mobile .chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink); }
  .hub-mobile .chips span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
  .hub-core { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 24px; border-radius: 20px; background: #eef4ff; color: var(--ink); position: relative; }
  .hub-core::before, .hub-core::after { content: "↓"; position: absolute; left: 50%; transform: translateX(-50%); color: var(--blue2); font-weight: 800; }
  .hub-core::before { top: -18px; } .hub-core::after { bottom: -20px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 110px; }
  .brand { font-size: 1.15rem; }
  .brand .logo-mark { width: 32px; height: 32px; }
  .nav-cta .btn-primary { padding: .5em .8em; }
  .pain-grid, .bento, .steps, .grid2, .ticks { grid-template-columns: 1fr; }
  .t-big, .t-wide { grid-column: auto; grid-row: auto; }
  .board { grid-template-columns: 1fr; }
  .col { min-height: 0; }
  .col-body:empty::after { content: "—"; color: rgba(255,255,255,.3); font-size: .8rem; }
  .mock { transform: none !important; }
  .mock-side { display: none; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .fc1 { left: -6px; top: -30px; } .fc2 { right: -6px; bottom: -24px; }
  .hand { display: none; }
  .roi, .demo-in { padding: 26px; }
  .contact-side, .lead-form { padding: 28px 22px; }
  .quote { width: 300px; }
  .foot-in { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
