/* =========================================================
   Gate Connect — corporate website
   Brand: #4831D4 (primary) · #EA2087 (accent) · navy #0A1430
   ========================================================= */

:root {
  --primary: #4831D4;
  --primary-600: #3a25b8;
  --primary-50: #f1effd;
  --accent: #EA2087;
  --navy: #0a1430;
  --navy-2: #101d40;
  --ink: #1c2333;
  --body: #4a5468;
  --muted: #7a8499;
  --line: #e6e9f2;
  --bg-alt: #f6f7fb;
  --ok: #18b26b;
  --warn: #f29a1f;
  --bad: #e5484d;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .06), 0 2px 8px rgba(16, 24, 64, .05);
  --shadow: 0 10px 30px rgba(16, 24, 64, .09);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 64, .28);
  --container: 1200px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--body); background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 2px; }
.section-head p { font-size: 1.1rem; color: var(--body); }
.lead { font-size: 1.15rem; }
.grad-text { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -6px rgba(72, 49, 212, .55); }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(234, 32, 135, .5); }
.btn-accent:hover { background: #d0156f; color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { color: var(--primary-600); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.72); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1.5rem; align-items: center; }
.topbar-links span, .topbar-links a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon { width: 14px; height: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-name b { color: var(--primary); }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .95rem; padding: .55rem .9rem; border-radius: 8px; position: relative;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-50); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-cta .btn { padding: .65rem 1.15rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy);
  padding: 96px 0 120px; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .6;
  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: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 30%, #000 15%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 28rem at 10% 10%, rgba(72,49,212,.55), transparent 70%),
    radial-gradient(32rem 24rem at 95% 85%, rgba(234,32,135,.28), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.05); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #b9adff, #ff8cc6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(226,232,255,.78); max-width: 34rem; margin-bottom: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .45rem; border-radius: 99px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 1.5rem;
}
.hero-badge b { background: var(--accent); color: #fff; padding: .15rem .55rem; border-radius: 99px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .9rem; color: rgba(226,232,255,.78); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: #2fd68b; width: 18px; height: 18px; }

/* Page hero (inner pages) */
.page-hero { padding: 80px 0 88px; }
.page-hero .container { max-width: 860px; text-align: center; }
.page-hero .lead { margin: 0 auto 1.5rem; }
.page-hero .btn-group { justify-content: center; }
.breadcrumb { display: inline-flex; gap: .5rem; font-size: .85rem; color: rgba(226,232,255,.65); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(226,232,255,.85); }

/* ---------- Dashboard mockup ---------- */
.mockup { position: relative; }
.mock-window {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden; color: var(--ink); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s ease;
}
.mockup:hover .mock-window { transform: perspective(1600px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #f4f5fa; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: .8rem; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .15rem .7rem; flex: 1; max-width: 260px; }
.mock-body { display: grid; grid-template-columns: 54px 1fr; min-height: 340px; }
.mock-side { background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1rem 0; }
.mock-side i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.12); }
.mock-side i:first-child { background: var(--primary); }
.mock-main { padding: 1.1rem; }
.mock-greet { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-radius: 12px; background: linear-gradient(110deg, var(--primary), #7a3ff0 60%, var(--accent)); color: #fff; margin-bottom: .9rem; }
.mock-greet b { display: block; font-size: .95rem; }
.mock-greet small { font-size: .68rem; opacity: .8; }
.mock-greet em { font-style: normal; font-size: .66rem; font-weight: 700; background: rgba(255,255,255,.18); padding: .3rem .6rem; border-radius: 6px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .9rem; }
.mock-kpi { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; }
.mock-kpi small { display: block; font-size: .62rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mock-kpi b { font-size: 1.1rem; }
.mock-kpi span { font-size: .6rem; color: var(--ok); font-weight: 700; }
.mock-kpi span.down { color: var(--bad); }
.mock-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; }
.mock-card { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; }
.mock-card h5 { margin: 0 0 .6rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.mock-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.mock-bars b { display: block; border-radius: 3px 3px 0 0; background: #d9d4fb; }
.mock-bars b + b { background: var(--primary); border-radius: 0; }
.mock-feed li { display: flex; align-items: center; gap: .45rem; font-size: .66rem; padding: .32rem 0; border-bottom: 1px dashed var(--line); }
.mock-feed li:last-child { border-bottom: 0; }
.mock-feed i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.mock-feed i.w { background: var(--warn); }
.mock-feed i.r { background: var(--accent); }
.mock-feed em { margin-left: auto; font-style: normal; color: var(--muted); }

.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .75rem; font-size: .8rem; animation: bob 5s ease-in-out infinite;
}
.float-card b { display: block; font-size: .85rem; }
.float-card small { color: var(--muted); }
.float-card .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.float-card.fc-1 { left: -36px; bottom: 34px; }
.float-card.fc-2 { right: -18px; top: -26px; animation-delay: -2.5s; }
.float-card.fc-2 .fi { background: #ffe8f3; color: var(--accent); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Trust strip ---------- */
.trust { padding: 34px 0; border-bottom: 1px solid var(--line); }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.trust p { margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }
.trust ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }
.trust li .icon { color: var(--primary); width: 16px; height: 16px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin-bottom: 0; font-size: .96rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--primary-50); color: var(--primary);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-icon.pink { background: #ffe8f3; color: var(--accent); }
.card-icon.green { background: #e3f8ee; color: var(--ok); }
.card-icon.amber { background: #fff3e0; color: var(--warn); }
.card-icon.navy { background: #e7eaf4; color: var(--navy); }
.card-icon.red { background: #fde8e9; color: var(--bad); }
.card .more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem; font-weight: 700; font-size: .9rem; }
.card .more .icon { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more .icon { transform: translateX(4px); }

.pillar { overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.pillar:hover::before { transform: scaleX(1); }

.check-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .4rem 0; color: var(--ink); font-weight: 500; }
.check-list .icon { color: #fff; background: var(--primary); border-radius: 50%; padding: 4px; width: 22px; height: 22px; margin-top: .15rem; stroke-width: 3; }
.check-list.sm li { font-size: .92rem; padding: .25rem 0; font-weight: 500; color: var(--body); }
.check-list.sm .icon { width: 18px; height: 18px; padding: 3px; background: var(--primary-50); color: var(--primary); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.reverse .split-media { order: -1; }
.split-text p { font-size: 1.05rem; }
.split-text .check-list { margin: 1.5rem 0 2rem; }

.panel-visual {
  background: linear-gradient(145deg, var(--primary-50), #fff 55%, #fff0f7); border-radius: 28px; padding: 36px;
  border: 1px solid var(--line); position: relative;
}
.ui-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line); }
.ui-card + .ui-card { margin-top: 16px; }
.ui-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ui-head h4 { margin: 0; font-size: .95rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 99px; background: var(--primary-50); color: var(--primary); }
.pill.ok { background: #e3f8ee; color: var(--ok); }
.pill.warn { background: #fff3e0; color: #c47500; }
.pill.bad { background: #fde8e9; color: var(--bad); }
.pill.pink { background: #ffe8f3; color: var(--accent); }

/* Visitor pass */
.pass { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.qr { width: 120px; height: 120px; border-radius: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; }
.pass dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .85rem; }
.pass dt { color: var(--muted); }
.pass dd { margin: 0; font-weight: 700; color: var(--ink); }
.timeline li { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; font-size: .86rem; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .t-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #e3f8ee; color: var(--ok); }
.timeline .t-ico.out { background: #fde8e9; color: var(--bad); }
.timeline .t-ico.dl { background: #fff3e0; color: var(--warn); }
.timeline .t-ico .icon { width: 16px; height: 16px; }
.timeline b { color: var(--ink); display: block; line-height: 1.2; }
.timeline small { color: var(--muted); }
.timeline time { margin-left: auto; font-size: .78rem; color: var(--muted); font-weight: 600; }

/* AI triage */
.ai-input { border: 1.5px dashed #cfc8fa; border-radius: 12px; padding: 14px 16px; background: #fbfaff; font-size: .92rem; color: var(--ink); font-style: italic; }
.ai-arrow { display: flex; align-items: center; gap: .5rem; justify-content: center; margin: 14px 0; color: var(--primary); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ai-arrow .icon { width: 18px; height: 18px; }
.ai-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-result div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ai-result small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ai-result b { color: var(--ink); font-size: .92rem; }
.ai-result .full { grid-column: 1 / -1; }

/* Billing visual */
.bill-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.bill-row:last-child { border-bottom: 0; }
.bill-row b { color: var(--ink); }
.progress { height: 10px; background: #ece9fd; border-radius: 99px; overflow: hidden; margin: .6rem 0 .3rem; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.big-num { font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

/* ---------- Workflow steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, #cfc8fa 0 8px, transparent 8px 16px); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step-ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1.1rem; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--primary-50); color: var(--primary); box-shadow: var(--shadow-sm); position: relative;
}
.step-ico .icon { width: 26px; height: 26px; }
.step-ico::after {
  counter-increment: step; content: counter(step); position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.step h4 { margin-bottom: .3rem; }
.step p { font-size: .88rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.stats-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(36rem 20rem at 0% 0%, rgba(72,49,212,.5), transparent 70%), radial-gradient(30rem 20rem at 100% 100%, rgba(234,32,135,.3), transparent 70%); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(90deg, #fff, #c9c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: .6rem; color: rgba(226,232,255,.72); font-weight: 600; font-size: .95rem; }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.role h4 { display: flex; align-items: center; gap: .55rem; font-size: .95rem; margin-bottom: .8rem; }
.role h4 .icon { color: var(--primary); }
.role ul li { font-size: .85rem; padding: .22rem 0; color: var(--body); border-bottom: 1px dashed var(--line); }
.role ul li:last-child { border-bottom: 0; }

/* ---------- Module catalogue (features page) ---------- */
.cat-nav { position: sticky; top: 78px; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav .container { display: flex; gap: .4rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; scrollbar-width: none; }
.cat-nav .container::-webkit-scrollbar { display: none; }
.cat-nav a { flex-shrink: 0; padding: .5rem 1rem; border-radius: 99px; font-weight: 600; font-size: .88rem; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.cat-nav a:hover, .cat-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.module-group { padding: 80px 0; border-bottom: 1px solid var(--line); }
.module-group:nth-of-type(even) { background: var(--bg-alt); }
.module-group-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; margin-bottom: 40px; align-items: end; }
.module-group-head h2 { margin: 0; }
.module-group-head p { margin: 0; font-size: 1.05rem; }
.module { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow .3s ease, transform .3s ease; }
.module:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.module-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.module-top .card-icon { margin: 0; width: 46px; height: 46px; }
.module-top h3 { margin: 0; font-size: 1.08rem; }
.module p { font-size: .93rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag { font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--body); }

/* ---------- Audience (solutions) ---------- */
.audience { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.audience:last-child { border-bottom: 0; }
.audience:nth-child(even) .audience-media { order: -1; }
.audience-media { border-radius: 28px; padding: 40px; position: relative; overflow: hidden; color: #fff; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; }
.audience-media.v1 { background: linear-gradient(140deg, #2b1a9e, var(--primary) 55%, #7c4dff); }
.audience-media.v2 { background: linear-gradient(140deg, var(--navy), #1b2c66); }
.audience-media.v3 { background: linear-gradient(140deg, #b0105f, var(--accent) 60%, #ff6fb0); }
.audience-media.v4 { background: linear-gradient(140deg, #0c5a3e, #18b26b); }
.audience-media.v5 { background: linear-gradient(140deg, #3b2a00, #c47500 60%, #f2a93b); }
.audience-media::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); right: -110px; bottom: -130px; }
.audience-media .big-ico { width: 72px; height: 72px; border-radius: 20px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.audience-media .big-ico .icon { width: 34px; height: 34px; }
.audience-media h3 { color: #fff; font-size: 1.6rem; margin: 1.5rem 0 .4rem; }
.audience-media p { color: rgba(255,255,255,.82); margin: 0; }
.audience-media .mini-stats { display: flex; gap: 2rem; margin-top: 2rem; position: relative; z-index: 1; }
.audience-media .mini-stats b { display: block; font-size: 1.6rem; line-height: 1; }
.audience-media .mini-stats small { color: rgba(255,255,255,.75); font-size: .8rem; }
.audience h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.audience .check-list { columns: 2; column-gap: 2rem; margin-top: 1.4rem; }
.audience .check-list li { break-inside: avoid; }

/* ---------- Security / trust blocks ---------- */
.sec-item { display: flex; gap: 1rem; align-items: flex-start; }
.sec-item .card-icon { margin: 0; width: 46px; height: 46px; flex-shrink: 0; }
.sec-item h4 { margin-bottom: .3rem; }
.sec-item p { font-size: .92rem; margin: 0; }

/* ---------- About ---------- */
.values .card { text-align: left; }
.timeline-v { position: relative; padding-left: 36px; }
.timeline-v::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); border-radius: 2px; }
.timeline-v li { position: relative; padding-bottom: 32px; }
.timeline-v li:last-child { padding-bottom: 0; }
.timeline-v li::before { content: ""; position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline-v .phase { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.timeline-v h4 { margin: .2rem 0 .3rem; font-size: 1.1rem; }
.timeline-v p { margin: 0; font-size: .95rem; }
.quote-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 44px; position: relative; overflow: hidden; }
.quote-card::before { content: "\201C"; position: absolute; top: -30px; right: 24px; font-size: 12rem; line-height: 1; color: rgba(255,255,255,.07); font-family: Georgia, serif; }
.quote-card p { font-size: 1.3rem; font-weight: 600; line-height: 1.5; color: #fff; }
.quote-card small { color: rgba(226,232,255,.7); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #d6d0fb; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--primary); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-of-type { border-bottom: 0; }
.contact-info .card-icon { margin: 0; width: 48px; height: 48px; flex-shrink: 0; }
.contact-info h4 { margin-bottom: .15rem; }
.contact-info p { margin: 0; font-size: .95rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .86rem; color: var(--ink); margin-bottom: .4rem; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink); padding: .8rem 1rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(72,49,212,.12); }
.field .err { display: none; font-size: .8rem; color: var(--bad); margin-top: .3rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; margin-bottom: 22px; }
.consent input { margin-top: .3rem; accent-color: var(--primary); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success .card-icon { margin: 0 auto 1rem; width: 64px; height: 64px; border-radius: 50%; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }
.checks-inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks-inline label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .85rem; padding: .45rem .8rem; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; margin: 0; color: var(--body); }
.checks-inline input { accent-color: var(--primary); }
.checks-inline label:has(input:checked) { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px; padding: 64px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, var(--primary) 0%, #6a35e6 50%, var(--accent) 100%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(226,232,255,.65); padding: 80px 0 0; font-size: .93rem; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(226,232,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer li { padding: .3rem 0; }
.site-footer .brand { color: #fff; margin-bottom: 1.2rem; }
.site-footer .brand-sub { color: rgba(226,232,255,.55); }
.site-footer .brand-name b { color: #b9adff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: #b9adff; margin-top: .25rem; width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 24px 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 1.5rem; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer; z-index: 90;
  background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-600); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .float-card.fc-1 { left: -10px; }
}
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; padding: 1rem 24px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: .85rem 1rem; }
  .nav-links.open a.active::after { display: none; }
  .nav-links.open a.active { background: var(--primary-50); }
  .hero { padding: 72px 0 96px; }
  .hero-grid, .split, .contact-grid, .audience, .module-group-head { grid-template-columns: 1fr; gap: 48px; }
  .module-group-head { gap: 12px; }
  .split.reverse .split-media, .audience:nth-child(even) .audience-media { order: 0; }
  .split + .split { margin-top: 80px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
  .mock-window { transform: none; }
  .topbar-links .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .form-row, .roles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .audience .check-list { columns: 1; }
  .float-card { display: none; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-row { grid-template-columns: 1fr; }
  .pass { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .topbar { display: none; }
  .brand-sub { display: none; }
  .nav-cta .btn-primary { display: none; }
  .panel-visual { padding: 20px; }
}

/* 4-step variant (contact page) */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-4 { grid-template-columns: 1fr; } }

/* Let grid children shrink below their content width on small screens */
.hero-grid > *, .split > *, .contact-grid > *, .audience > *, .module-group-head > *, .grid > * { min-width: 0; }
.field .checks-inline input, .field .consent input { width: auto; padding: 0; border: 0; box-shadow: none; }

/* =========================================================
   Real application screenshots
   ========================================================= */
.shot { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,24,64,.08); }
.shot-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: #f4f5fa; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; }
.shot-bar i:nth-child(3) { background: #28c840; }
.shot-bar span { margin-left: .7rem; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .12rem .7rem; flex: 1; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; cursor: zoom-in; }
.shot-caption { font-size: .85rem; color: var(--muted); margin-top: .9rem; text-align: center; }

.hero-shot { position: relative; }
.hero-shot .shot { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transition: transform .6s ease; }
.hero-shot:hover .shot { transform: none; }
.phone {
  position: absolute; right: -28px; bottom: -48px; width: 150px; border-radius: 26px; padding: 7px; background: #0b1020;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.12); animation: bob 6s ease-in-out infinite;
}
.phone img { border-radius: 20px; width: 100%; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 46px; height: 6px; border-radius: 6px; background: #0b1020; z-index: 1; }
.hero-shot .float-card.fc-1 { left: -34px; bottom: 28px; }

.panel-visual .shot { box-shadow: var(--shadow); }
.module-shot { margin: 0 0 40px; }

/* Product tour */
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 32px; }
.tour-tabs button {
  font-family: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; padding: .65rem 1.2rem; border-radius: 99px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: .45rem; transition: all .2s;
}
.tour-tabs button .icon { width: 16px; height: 16px; color: var(--primary); }
.tour-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.tour-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(72,49,212,.6); }
.tour-tabs button.active .icon { color: #fff; }
.tour-panel { max-width: 1040px; margin: 0 auto; }
.tour-panel[hidden] { display: none; }
.tour-panel .shot { animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Audience cards with screenshots */
.audience-media .shot { margin-top: 1.6rem; position: relative; z-index: 1; box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); }
.audience-media .shot-bar { padding: .45rem .7rem; }
.audience-media .phone-inline { margin-top: 1.4rem; display: flex; justify-content: center; position: relative; z-index: 1; }
.audience-media .phone-inline .phone { position: static; width: 170px; animation: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6,10,28,.88); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); cursor: default; }
.lightbox p { color: rgba(255,255,255,.8); margin: 1rem 0 0; font-weight: 600; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* WhatsApp */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 95; display: inline-flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff; font-weight: 700; font-size: .92rem; padding: .8rem 1.15rem .8rem .9rem; border-radius: 99px;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 32px -8px rgba(37,211,102,.75); }
.wa-float .icon { width: 24px; height: 24px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { to { transform: scale(1.25); opacity: 0; } }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px -6px rgba(37,211,102,.55); }
.btn-wa:hover { background: #1ebe5a; color: #fff; transform: translateY(-2px); }
.card-icon.wa { background: #e3f9eb; color: #1ebe5a; }
.form-status { margin: 0 0 16px; padding: .75rem 1rem; border-radius: 10px; background: #fde8e9; color: #b4232a; font-size: .9rem; font-weight: 600; }

@media (max-width: 960px) {
  .hero-shot .shot { transform: none; }
  .phone { right: 8px; bottom: -36px; width: 120px; }
}
@media (max-width: 640px) {
  .phone { display: none; }
  .audience-media .phone-inline .phone { display: block; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; }
}
.field .consent span { color: var(--body); }

/* Contact-form captcha */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { border: 1.5px solid var(--line); border-radius: 10px; background: #f4f6f9; width: 176px; height: 60px; }
.captcha-refresh { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--primary); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.captcha-refresh:hover { border-color: var(--primary); background: var(--primary-50); }
.captcha-refresh.spin .icon { animation: spin .5s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.field .captcha-row input { flex: 1; min-width: 160px; width: auto; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.field .captcha-row input::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }
.field .hint { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); }
