/* Kenscio KenSuite HUB: homepage v2 (dark-first, light supported) */
:root {
  --bg: #05080f;
  --bg-2: #0a1020;
  --surface: rgba(255,255,255,.045);
  --surface-solid: #0f1830;
  --surface-hi: rgba(255,255,255,.075);
  --line: rgba(160,180,255,.14);
  --line-hi: rgba(160,180,255,.3);
  --text: #eef2fb;
  --muted: #9aa6c0;
  --faint: #7f8aa6;
  --blue: #6d8bff;
  --violet: #8b5cf6;
  --magenta: #e050d9;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --grad: linear-gradient(90deg, #38bdf8, #6d8bff 40%, #a855f7 70%, #f43f5e);
  --grad-soft: linear-gradient(135deg, rgba(56,189,248,.18), rgba(168,85,247,.18));
  --shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  --nav-bg: rgba(12,18,36,.62);
  --orb-op: .7;
  --heading: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1220px;
  --r: 22px;
}
[data-theme="light"] {
  --bg: #f3f6fc;
  --bg-2: #e9eef9;
  --surface: rgba(255,255,255,.75);
  --surface-solid: #ffffff;
  --surface-hi: #ffffff;
  --line: rgba(30,50,110,.12);
  --line-hi: rgba(60,80,200,.35);
  --text: #0f1730;
  --muted: #53607e;
  --faint: #6b7692;
  --blue: #2f55e0;
  --shadow: 0 24px 50px -28px rgba(30,50,120,.35);
  --nav-bg: rgba(255,255,255,.78);
  --orb-op: .55;
  --teal: #0b8f86;
  --amber: #b45309;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .35s, color .35s;
}
h1, h2, h3, h4 { font-family: var(--heading); letter-spacing: -.02em; line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg, img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--grad); vertical-align: middle; margin-right: 12px; }

/* ===== Navigation (floating pill + mega menu) ===== */
.nav-shell { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 20px; pointer-events: none; }
.nav {
  pointer-events: auto; max-width: 1180px; margin: 0 auto; height: 62px; padding: 0 12px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--nav-bg); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,.6); position: relative;
}
.logo { font-family: var(--heading); font-weight: 700; letter-spacing: .38em; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.logo img { width: 38px; height: 38px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > li > a, .menu > li > button {
  background: none; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li.open > button { color: var(--text); background: var(--surface); }
.menu button svg { width: 12px; height: 12px; transition: transform .2s; }
.menu li.open button svg { transform: rotate(180deg); }
.mega {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 10px); padding: 22px; border-radius: 20px; display: none;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  grid-template-columns: 1.1fr 1.1fr .8fr; gap: 24px;
}
.mega.services { grid-template-columns: 1fr 1fr 1fr; }
li.open > .mega { display: grid; animation: drop .18s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega h5 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--faint); font-weight: 500; }
.mega a { display: flex; gap: 12px; padding: 10px; border-radius: 12px; align-items: flex-start; }
.mega a:hover { background: var(--surface-hi); }
.mega b { display: block; font-size: 14px; font-family: var(--heading); font-weight: 600; }
.mega small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }
.mi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.mi svg { width: 17px; height: 17px; }
.c-mail { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.c-pulse { background: linear-gradient(135deg, #10b981, #f59e0b); }
.c-grow { background: linear-gradient(135deg, #a855f7, #ec4899); }
.c-eng { background: linear-gradient(135deg, #14b8a6, #22d3ee); }
.c-api { background: linear-gradient(135deg, #475569, #94a3b8); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--line-hi); }
.icon-btn svg { width: 18px; height: 18px; }
.t-sun { display: none; } [data-theme="dark"] .t-sun, :root:not([data-theme]) .t-sun { display: block; } [data-theme="dark"] .t-moon { display: none; }
.burger { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 13px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .18s, box-shadow .25s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #5b5bf0, #8b5cf6 55%, #c026d3); color: #fff; box-shadow: 0 14px 30px -12px rgba(139,92,246,.75); }
.btn-primary:hover { box-shadow: 0 18px 38px -10px rgba(139,92,246,.95); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-hi); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }
.btn svg { width: 16px; height: 16px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 480px at 50% 0%, rgba(80,100,255,.22), transparent 70%), radial-gradient(700px 360px at 85% 30%, rgba(224,80,217,.14), transparent 70%); }
.grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); }
.hero h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 600; letter-spacing: -.035em; margin-top: 20px; }
.rot { display: inline-block; position: relative; min-width: 1ch; vertical-align: bottom; height: 1.12em; overflow: hidden; }
.rot span { display: block; transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .3s; }
.rot span.leave { transform: translateY(-60%); opacity: 0; }
.rot span.below { transform: translateY(60%); opacity: 0; }
.rot span.out { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-110%); opacity: 0; }
.rot span.in-start { transform: translateY(110%); opacity: 0; }
.hero-sub { max-width: 680px; margin: 24px auto 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.stage { position: relative; height: 380px; margin-top: 36px; }
.orb { position: absolute; left: 50%; top: -30px; width: 560px; height: 560px; transform: translateX(-50%); z-index: -1; opacity: var(--orb-op); pointer-events: none; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; filter: blur(48px); }
.orb::before { background: conic-gradient(from 0deg, #38bdf8, #6d8bff, #a855f7, #f43f5e, #38bdf8); animation: spin 24s linear infinite; opacity: .55; }
.orb::after { inset: 18%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); animation: breathe 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
.arc { position: absolute; left: 0; top: 24px; width: 100%; height: 260px; overflow: visible; }
.arc path { fill: none; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(139,92,246,.7)); stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.2s .3s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 14px #8fb0ff; }
.dot::after { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(143,176,255,.5), transparent 68%); animation: breathe 3.6s ease-in-out infinite; }
.hub {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(350px, 82%); padding: 22px 24px 20px;
  background: var(--nav-bg); border: 1px solid var(--line-hi); border-radius: 24px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 70px -10px rgba(120,120,255,.45), var(--shadow);
}
.hub svg { width: 30px; height: 30px; margin: 0 auto 6px; color: var(--teal); }
.hub b { display: block; font-family: var(--heading); font-size: 26px; letter-spacing: -.01em; }
.hub small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .24em; color: var(--muted); margin-top: 3px; }
.tag { position: absolute; top: 290px; font-family: var(--heading); font-weight: 600; font-size: clamp(16px, 2.1vw, 24px); }
.tag-l { left: 5%; background: linear-gradient(90deg, #38bdf8, #8fb0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag-r { right: 5%; background: linear-gradient(90deg, #e879f9, #fb7185); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .tag-l { background: linear-gradient(90deg, #0369a1, #2f55e0); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .tag-r { background: linear-gradient(90deg, #a21caf, #be123c); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .dot { background: #4f46e5; }

/* Ticker */
.ticker { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; }
.ticker .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { padding: 16px 34px; font-family: var(--heading); font-size: 17px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; }
.ticker span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.ticker b { color: var(--text); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
section { padding: 56px 0; position: relative; }
.sec-head { max-width: 780px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin-top: 16px; }
.sec-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Trusted by */
.trusted { padding: 40px 0 8px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.chip { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--heading); font-size: clamp(38px, 5vw, 60px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* HUB explorer */
.hubx { display: grid; grid-template-columns: 340px 1fr; gap: 28px; margin-top: 52px; align-items: stretch; }
.tabs { display: grid; gap: 8px; align-content: start; }
.tab {
  text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: none; cursor: pointer; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; transition: background .25s, border-color .25s;
}
.tab:hover { background: var(--surface); }
.tab[aria-selected="true"] { background: var(--surface-hi); border-color: var(--line-hi); }
.tab .mi { width: 38px; height: 38px; }
.tab b { display: block; font-family: var(--heading); font-size: 17px; font-weight: 600; }
.tab small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.tab[aria-selected="true"].auto::after { animation: prog 6.5s linear forwards; }
@keyframes prog { to { width: 100%; } }
.soon { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(251,191,36,.45); background: rgba(251,191,36,.1); vertical-align: middle; }
.panel { display: none; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); padding: 32px; position: relative; overflow: hidden; min-height: 520px; }
.panel.active { display: grid; grid-template-columns: 1fr; gap: 26px; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.28), transparent 68%); pointer-events: none; }
.panel h3 { font-size: clamp(26px, 3vw, 36px); }
.panel .lead { color: var(--muted); margin-top: 10px; max-width: 560px; font-size: 16.5px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.metric b { display: block; font-family: var(--heading); font-size: 28px; font-weight: 600; }
.metric span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; margin-top: 4px; }
.fine { font-size: 12px; color: var(--faint); }
.panel .row-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Illustrative product visuals */
.viz { border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.viz-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); font-family: var(--mono); }
.viz-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-hi); }
.viz-bar em { margin-left: auto; font-style: normal; letter-spacing: .1em; font-size: 11.5px; text-transform: uppercase; }
.viz-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi small { color: var(--faint); font-size: 12px; display: block; }
.kpi b { font-family: var(--heading); font-size: 20px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 6px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #6d8bff, rgba(109,139,255,.2)); height: var(--h); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes grow { from { transform: scaleY(0); } }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: center; }
.ring { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .bg { stroke: var(--line); } .ring .fg { stroke: url(#rg); stroke-dasharray: 0 300; animation: ringfill 1.4s .2s ease forwards; }
@keyframes ringfill { to { stroke-dasharray: var(--v) 300; } }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--heading); font-size: 22px; }
.line-chart { width: 100%; height: 130px; }
.line-chart .ln { fill: none; stroke: url(#lg); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .2s ease forwards; }
.isp { display: grid; gap: 8px; }
.isp div { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.isp i { display: block; height: 7px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.isp i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--grad); border-radius: 99px; animation: wfill 1.2s ease both; }
@keyframes wfill { from { width: 0; } }
.journey { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.node { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-hi); background: var(--surface); font-size: 13px; font-weight: 600; }
.node small { display: block; color: var(--faint); font-weight: 500; font-size: 12px; }
.arrow { color: var(--faint); font-family: var(--mono); }
.chs { display: flex; gap: 8px; flex-wrap: wrap; }
.ch { padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.ch.e { border-color: #38bdf8; color: #38bdf8; } .ch.w { border-color: #34d399; color: #34d399; } .ch.s { border-color: #fbbf24; color: #fbbf24; } .ch.r { border-color: #c084fc; color: #c084fc; } .ch.p { border-color: #fb7185; color: #fb7185; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; }
.stack i { display: block; width: var(--w); }
.stack i:nth-child(1) { background: #34d399; } .stack i:nth-child(2) { background: #fbbf24; } .stack i:nth-child(3) { background: #fb7185; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend em { font-style: normal; } .legend b { color: var(--text); }
.rows { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; }
.rows div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ok { color: #34d399; } .warn { color: #fbbf24; } .bad { color: #fb7185; }
.lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 74px 1fr 64px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.lane i { height: 9px; border-radius: 99px; background: repeating-linear-gradient(90deg, #6d8bff 0 10px, transparent 10px 14px); background-size: 14px 100%; animation: flow 1s linear infinite; width: var(--w); opacity: .9; }
@keyframes flow { to { background-position: 14px 0; } }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid rgba(45,212,191,.4); color: var(--teal); background: rgba(45,212,191,.08); }
.ghostform { display: grid; gap: 10px; filter: blur(.4px); opacity: .85; }
.ghostform div { height: 38px; border-radius: 10px; border: 1px dashed var(--line-hi); display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.dia { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 8px; }
.dia .col { display: grid; gap: 8px; }
.dia .box { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; text-align: center; }
.dia .mid { height: 100%; min-height: 150px; border: 1.5px dashed rgba(109,139,255,.6); border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--blue); background: rgba(109,139,255,.08); writing-mode: vertical-rl; text-orientation: mixed; }

/* Why / services / cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 28px; position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { border-color: var(--line-hi); background: var(--surface-hi); transform: translateY(-4px); }
.card .num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--blue); }
.card h3 { font-size: 22px; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card ul { margin-top: 16px; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; }
.card li { padding-left: 20px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); }
.glow-card::after { content: ""; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(ellipse, rgba(139,92,246,.22), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.glow-card:hover::after { opacity: 1; }
.svc-grid { margin-top: 48px; }
.mgd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.pillbar { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.pillbar a { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); }
.pillbar a:hover { color: var(--text); border-color: var(--line-hi); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.trust-item { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.trust-item svg { width: 28px; height: 28px; color: var(--amber); margin-bottom: 14px; }
.trust-item b { font-family: var(--heading); font-size: 18px; display: block; }
.trust-item span { color: var(--muted); font-size: 14px; display: block; margin-top: 6px; }

/* Case studies */
.case .tagline { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.case .big { font-family: var(--heading); font-size: 52px; font-weight: 600; letter-spacing: -.03em; margin: 16px 0 6px; line-height: 1; }
.case .cap { color: var(--muted); font-size: 15px; min-height: 48px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.kv div { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.kv b { display: block; font-family: var(--heading); font-size: 20px; color: var(--text); }
.note { text-align: center; margin-top: 22px; font-size: 12px; color: var(--faint); }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.award { text-align: center; padding: 30px 20px; }
.award b { font-family: var(--heading); font-size: 30px; display: block; }
.award span { color: var(--muted); font-size: 14px; display: block; margin-top: 6px; }

/* Resources */
.res .tagline { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.res h3 { font-size: 21px; margin: 14px 0 10px; }
.res .meta { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* FAQ */
.faq { max-width: 860px; margin: 44px auto 0; display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 22px; transition: border-color .2s; }
details[open] { border-color: var(--line-hi); background: var(--surface-hi); }
summary { cursor: pointer; padding: 20px 0; font-family: var(--heading); font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; color: var(--blue); line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; font-size: 15.5px; }

/* CTA + footer */
.cta { border-radius: 32px; padding: 72px 28px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line-hi); background: radial-gradient(700px 300px at 15% 0%, rgba(56,189,248,.28), transparent 70%), radial-gradient(700px 320px at 90% 110%, rgba(224,80,217,.32), transparent 70%), linear-gradient(135deg, #131c55, #3b1b82); color: #fff; }
.cta h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 800px; margin: 0 auto; }
.cta p { margin: 18px auto 30px; max-width: 540px; color: rgba(255,255,255,.82); font-size: 18px; }
.cta .btn-light { background: #fff; color: #2b1670; }
.cta .btn-line { border-color: rgba(255,255,255,.5); color: #fff; }
footer { border-top: 1px solid var(--line); padding: 64px 0 36px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.foot h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--text); font-weight: 500; margin-bottom: 14px; }
.foot a { display: block; padding: 4px 0; } .foot a:hover { color: var(--text); }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .arc path { stroke-dashoffset: 0; } .ticker .track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1040px) {
  .hubx { grid-template-columns: 1fr; }
  .tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .tab { flex: none; scroll-snap-align: start; border-color: var(--line); grid-template-columns: 34px auto; gap: 10px; padding: 10px 16px 10px 12px; }
  .tab .mi { width: 34px; height: 34px; } .tab small { display: none; } .tab b { font-size: 15px; white-space: nowrap; }
  .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mgd { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid, .awards { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); max-height: 78vh; overflow: auto; }
  .menu.open { display: flex; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; padding: 14px; }
  .mega, .mega.services { position: static; display: none; grid-template-columns: 1fr; padding: 6px 6px 10px; border: 0; box-shadow: none; background: transparent; }
  li.open > .mega { display: grid; }
  .burger { display: grid; } .nav-demo { display: none; }
  .grid3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 40px 0; } .wrap { padding: 0 20px; }
  .hero { padding-top: 120px; }
  .stage { height: 330px; } .arc { height: 190px; top: 30px; } .hub { padding: 16px; } .hub b { font-size: 21px; } .tag { top: 222px; font-size: 17px; left: 0; right: 0; text-align: center; }
  .tag-r { top: 254px; } .orb { width: 380px; height: 380px; }
  .hero-cta .btn { width: min(100%, 280px); }
  .panel { padding: 20px; min-height: 0; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; } .two { grid-template-columns: 1fr; }
  .trust-grid, .awards, .foot { grid-template-columns: 1fr; }
  .stat { padding: 24px 18px; }
}

/* ===== Inner pages ===== */
.menu > li > a[aria-current="page"] { color: var(--text); background: var(--surface); }
.more-row { display: flex; justify-content: center; margin-top: 36px; }
.page-hero { position: relative; padding: 150px 0 56px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(800px 380px at 20% 0%, rgba(80,100,255,.22), transparent 70%), radial-gradient(600px 300px at 90% 20%, rgba(224,80,217,.14), transparent 70%); }
.page-hero .grid-bg { z-index: -1; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000, transparent 75%); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 600; letter-spacing: -.03em; max-width: 920px; }
.page-hero .lead { margin-top: 22px; max-width: 700px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.page-hero .hero-cta { justify-content: flex-start; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.fchip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.fchip:hover { border-color: var(--line-hi); color: var(--text); }
.fchip[aria-pressed="true"] { background: linear-gradient(135deg, #5b5bf0, #8b5cf6); border-color: transparent; color: #fff; }
[hidden] { display: none !important; }
.stories { display: grid; gap: 22px; }
.story { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding: 34px; }
.story:hover { transform: none; }
.story .who { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.story .prod { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--blue); border: 1px solid var(--line-hi); }
.story .big { font-family: var(--heading); font-size: 56px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 22px 0 8px; }
.story .cap { color: var(--muted); font-size: 15px; }
.story h3 { font-size: 15px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin: 0 0 8px; }
.story .body p { color: var(--muted); font-size: 15.5px; }
.story .body section { padding: 0; margin-bottom: 20px; }
.story .body section:last-child { margin-bottom: 0; }
.story .body ul { margin-top: 0; }
.story .kv { margin-top: 18px; }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.ind { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font-family: var(--heading); font-size: 18px; font-weight: 500; }
.ind small { display: block; color: var(--muted); font-family: var(--body); font-size: 13px; margin-top: 4px; font-weight: 400; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res-grid .card h3 { font-size: 20px; }
.res-feature { grid-column: span 2; }
.link-list { display: grid; gap: 10px; margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s; }
.link-list a:hover { border-color: var(--line-hi); background: var(--surface-hi); }
.link-list b { font-family: var(--heading); font-size: 18px; font-weight: 500; display: block; }
.link-list span { color: var(--muted); font-size: 14px; }
.link-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.values { display: grid; gap: 14px; }
.value { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.value b { font-family: var(--heading); font-size: 19px; display: block; }
.value span { color: var(--muted); font-size: 15px; display: block; margin-top: 6px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.person { text-align: center; padding: 34px 24px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-family: var(--heading); font-size: 28px; font-weight: 600; color: #fff; background: var(--grad); }
.person b { font-family: var(--heading); font-size: 20px; display: block; }
.person span { color: var(--muted); font-size: 14.5px; display: block; margin-top: 4px; }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.office h3 { font-size: 20px; margin-bottom: 10px; }
.office p { font-size: 15px; }
.office a { color: var(--blue); font-weight: 600; }
.timeline { display: grid; gap: 0; margin-top: 40px; border-left: 1px solid var(--line-hi); padding-left: 28px; }
.tl { position: relative; padding: 0 0 30px; }
.tl::before { content: ""; position: absolute; left: -35px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg); }
.tl b { font-family: var(--heading); font-size: 19px; }
.tl span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 1040px) {
  .story { grid-template-columns: 1fr; gap: 24px; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); } .res-feature { grid-column: span 2; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .team, .offices, .perks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 120px 0 40px; }
  .story { padding: 22px; } .story .big { font-size: 44px; }
  .ind-grid, .res-grid, .link-list { grid-template-columns: 1fr; } .res-feature { grid-column: auto; }
}

/* ===== Product pages ===== */
.menu button.cur { color: var(--text); background: var(--surface); }
.more { font-weight: 600; color: var(--blue); font-size: 14px; }
.more:hover { text-decoration: underline; }
.prod-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.prod-hero h1 { margin-top: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge-pill { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid rgba(45,212,191,.45); color: var(--teal); background: rgba(45,212,191,.08); }
.badge-pill.soon { color: var(--amber); border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.1); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.fineprint { margin-top: 14px; font-size: 12px; color: var(--faint); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--blue); display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.proof { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding: 36px 40px; }
.proof .big { font-family: var(--heading); font-size: 64px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.proof .who { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.proof p { color: var(--muted); font-size: 16px; max-width: 560px; }
.rel { display: flex; gap: 16px; align-items: flex-start; }
.rel .mi { flex: none; }
.rel h3 { font-size: 19px; margin: 0 0 6px; }
.rel p { font-size: 14.5px; }
.channel-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.channel-row span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
@media (max-width: 1040px) {
  .prod-hero { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) { .stats.three { grid-template-columns: 1fr; } .stats.three .stat { border-right: 0; border-bottom: 1px solid var(--line); } .proof { padding: 24px; } .proof .big { font-size: 48px; } }

/* ===== Service pages ===== */
.glance { padding: 32px; }
.glance:hover { transform: none; }
.glance-title { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.glance ul { display: grid; gap: 14px; }
.glance li { padding: 14px 16px 14px 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-family: var(--heading); font-size: 17px; font-weight: 500; position: relative; }
.glance li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 4px; background: var(--grad); }
.steps.auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ===== Legal, contact, utility pages ===== */
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal-meta span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.legal-meta strong { color: var(--text); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-layout:not(:has(.legal-toc)) { grid-template-columns: minmax(0, 860px); justify-content: center; }
.legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.toc-title { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.legal-toc nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { padding: 7px 14px; font-size: 13.5px; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; }
.legal-toc a:hover { color: var(--text); border-left-color: var(--blue); }
.legal-doc { max-width: 860px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-doc h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--text); margin: 52px 0 16px; padding-top: 8px; scroll-margin-top: 100px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 18px; color: var(--text); margin: 28px 0 10px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc strong, .legal-doc b { color: var(--text); font-weight: 600; }
.legal-doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; display: block; }
.legal-doc ol { list-style: decimal; }
.legal-doc li { margin: 6px 0; padding: 0; }
.legal-doc li::before { content: none; }
.legal-doc .sec-num { color: var(--blue); margin-right: 6px; }
.legal-doc .callout { padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line-hi); background: var(--surface); margin: 18px 0; }
.legal-doc .callout-warn { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
.legal-doc .contact-block { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 18px 0; }
.legal-doc .contact-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.legal-doc .contact-row:last-child { border-bottom: 0; }
.legal-doc .contact-key { color: var(--text); font-weight: 600; font-size: 14px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-doc th { color: var(--text); background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.contact-form { padding: 34px; }
.contact-form:hover { transform: none; }
.contact-form h2 { font-size: 26px; margin-bottom: 22px; }
.contact-form form { display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(109,139,255,.25); }
.contact-form select option { color: #111; }
.contact-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.contact-form .check input { margin-top: 4px; accent-color: #8b5cf6; }
.contact-form .check a { color: var(--blue); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.f-status { font-size: 13.5px; color: var(--muted); }
.contact-side { display: grid; gap: 16px; }
.contact-side .card { padding: 24px; }
.contact-side .card:hover { transform: none; }
.contact-side h3 { font-size: 17px; margin: 0 0 10px; }
.contact-side p { font-size: 15px; margin-bottom: 10px; }
.contact-side a { color: var(--blue); font-weight: 600; }
@media (max-width: 1040px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; max-height: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .legal-toc nav { grid-template-columns: 1fr 1fr; border-left: 0; }
  .legal-toc a { border-left: 0; margin: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .f-row { grid-template-columns: 1fr; } .legal-toc nav { grid-template-columns: 1fr; } .legal-doc .contact-row { grid-template-columns: 1fr; gap: 4px; } .contact-form { padding: 22px; } }

/* Growlytics channel links */
.channel-row a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s, transform .2s; }
.channel-row a:hover { border-color: var(--line-hi); background: var(--surface-hi); transform: translateY(-2px); }

/* ===== Mobile hardening ===== */
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
.legal-doc, .contact-side, .contact-form, .card p, .faq p, .foot { overflow-wrap: anywhere; }
.more-row { flex-wrap: wrap; gap: 12px; }
.hero-cta { gap: 12px; }
.menu-cta { display: none; }
@media (max-width: 900px) {
  .menu-cta { display: block; padding: 10px 6px 4px; }
  .menu-cta .btn { width: 100%; padding: 14px 18px; }
  .menu > li > a, .menu > li > button { min-height: 48px; }
  .menu .mega a { padding: 12px 10px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding: 10px 16px; }
  .fchip { min-height: 40px; }
  .chip { padding: 10px 16px; }
  .foot a, .legal a { padding: 8px 0; display: inline-block; }
  .foot a { display: block; }
  details summary { min-height: 48px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero-cta .btn, .cta .btn { width: 100%; max-width: 340px; }
  .cta { padding: 44px 20px; border-radius: 24px; }
  .section-title, .sec-head h2 { word-break: normal; }
  .stats.three, .stats { grid-template-columns: 1fr; }
  .stats .stat, .stats.three .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats .stat:last-child { border-bottom: 0; }
  .metrics { grid-template-columns: 1fr; }
  .page-hero h1, .hero h1 { letter-spacing: -.025em; }
  .legal-doc h2 { margin-top: 38px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .viz-body { padding: 14px; }
  .dia { grid-template-columns: 1fr 44px 1fr; }
  .rel { gap: 12px; }
  .proof .btn { width: 100%; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .logo { letter-spacing: .26em; font-size: 14px; gap: 8px; }
  .nav { padding: 0 8px 0 14px; }
  .hero h1 { font-size: 34px; }
  .stat b { font-size: 30px; }
  .tab b { font-size: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (hover: none) { .card:hover { transform: none; } .btn:hover { transform: none; } }
/* ===== Popups, social links ===== */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .18s ease; }
.modal.in { opacity: 1; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface-solid); border: 1px solid var(--line-hi); border-radius: 26px; padding: 36px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 80px -20px rgba(120,120,255,.35); transform: translateY(14px) scale(.985); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.modal.in .modal-card { transform: none; }
.modal-card h2 { font-size: clamp(26px, 4vw, 32px); margin: 14px 0 8px; }
.modal-sub { color: var(--muted); margin-bottom: 22px; font-size: 15.5px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.modal-x:hover { border-color: var(--line-hi); }
.modal-x svg { width: 18px; height: 18px; }
.modal .contact-form { padding: 0; background: none; border: 0; box-shadow: none; }
.modal .contact-form form { gap: 14px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #38bdf8); margin-bottom: 18px; box-shadow: 0 14px 34px -12px rgba(16,185,129,.7); }
.done-icon svg { width: 30px; height: 30px; }
.done-icon.sm { width: 44px; height: 44px; margin-bottom: 12px; } .done-icon.sm svg { width: 22px; height: 22px; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.li-follow svg { width: 17px; height: 17px; color: #4c9be8; }
.nl-pop { position: fixed; right: 22px; bottom: 22px; z-index: 250; width: min(390px, calc(100vw - 44px)); padding: 26px 24px 22px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--line-hi); box-shadow: 0 30px 70px -24px rgba(0,0,0,.8), 0 0 60px -22px rgba(120,120,255,.4); opacity: 0; transform: translateY(22px); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.nl-pop.in { opacity: 1; transform: none; }
.nl-pop[hidden] { display: none; }
.nl-pop .modal-x { top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; }
.nl-pop .eyebrow { font-size: 11.5px; }
.nl-pop h3 { font-size: 21px; margin: 10px 30px 8px 0; }
.nl-pop p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.nl-pop form { display: grid; gap: 8px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.nl-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(109,139,255,.25); }
.nl-pop small { color: var(--faint); font-size: 12px; line-height: 1.5; }
.nl-pop small a { text-decoration: underline; }
.social { display: flex; gap: 10px; margin: 16px 0 12px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; color: var(--muted); transition: color .2s, border-color .2s, transform .2s; }
.social a:hover { color: var(--text); border-color: var(--line-hi); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .modal { place-items: end center; padding: 0; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); }
  .nl-pop { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 18px 18px; }
  .nl-row { flex-direction: column; } .nl-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .modal, .modal-card, .nl-pop { transition: none; } }
/* ===== Headline stat strip: big numbers, short labels ===== */
.stats.impact { border: 0; background: none; border-radius: 0; overflow: visible; gap: 0; grid-template-columns: repeat(4, 1fr); position: relative; padding: 8px 0; }
.stats.impact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi) 20%, var(--line-hi) 80%, transparent); }
.stats.impact::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi) 20%, var(--line-hi) 80%, transparent); }
.stats.impact .stat { border: 0; border-left: 1px solid var(--line); padding: 30px 8px 30px 32px; background: none; box-shadow: none; text-align: left; }
.stats.impact .stat:first-child { border-left: 0; padding-left: 0; }
.stats.impact .stat b { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-family: var(--heading); font-size: clamp(60px, 7.4vw, 104px); font-weight: 600; letter-spacing: -.045em; line-height: .92; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats.impact .stat b em { font-style: normal; font-size: .3em; letter-spacing: -.01em; font-weight: 600; color: var(--text); -webkit-text-fill-color: var(--text); }
.stats.impact .stat span { display: block; margin-top: 16px; font-family: var(--heading); font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; color: var(--text); line-height: 1.2; letter-spacing: -.01em; }
.stats.impact .stat small { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 1040px) {
  .stats.impact { grid-template-columns: repeat(2, 1fr); }
  .stats.impact .stat { padding: 26px 8px 26px 28px; }
  .stats.impact .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats.impact .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stats.impact { grid-template-columns: repeat(2, 1fr); }
  .stats.impact .stat b { font-size: clamp(46px, 14vw, 64px); }
  .stats.impact .stat span { font-size: 16px; margin-top: 10px; }
  .stats.impact .stat small { font-size: 13px; }
  .stats.impact .stat { padding: 20px 6px 20px 18px; border-bottom: 0; }
  .stats.impact .stat:nth-child(odd) { padding-left: 0; }
}

/* ===== Stat strip: icon above each number ===== */

.stats.impact .s-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; box-shadow: 0 14px 30px -14px rgba(120,100,255,.85); }
.stats.impact .s-ico svg { width: 22px; height: 22px; }
.s-ico.a { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.s-ico.b { background: linear-gradient(135deg, #a855f7, #ec4899); }
.s-ico.c { background: linear-gradient(135deg, #10b981, #38bdf8); }
.s-ico.d { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
@media (max-width: 640px) { .stats.impact .s-ico { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px; } .stats.impact .s-ico svg { width: 18px; height: 18px; } }

/* Careers page (tools/build-careers.ps1) */
.val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.val-grid .card { padding: 24px; }
.val-grid .card h3 { font-size: 18px; margin: 0 0 8px; }
.jobs { display: grid; gap: 18px; margin-top: 30px; }
.job { padding: 28px; }
.job:hover { transform: none; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.job-head h3 { margin: 0; font-size: 24px; }
.job-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 24px; margin: 20px 0 0; }
.job-meta dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.job-meta dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 500; }
.job-sum { margin-top: 16px; }
.job-cta { margin-top: 22px; }
.contact-form .f-help { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.contact-form input[type=file] { font: inherit; font-weight: 400; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-hi); border-radius: 12px; padding: 10px 12px; width: 100%; cursor: pointer; }
.contact-form input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--text); background: var(--surface-hi); border: 1px solid var(--line-hi); border-radius: 8px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
.contact-form [data-state=done] { padding: 8px 0; }
.contact-form [data-state=done] h3 { margin: 0 0 10px; font-size: 24px; }
@media (max-width: 1040px) { .val-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .val-grid { grid-template-columns: 1fr; } .job { padding: 22px; } .job-head h3 { font-size: 21px; } }

/* Customer logo wall (home + customers). Logos have dark text on transparent, so each sits on a white tile in both themes. */
.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 26px auto 0; max-width: 1040px; }
.logo-tile { background: #fff; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; padding: 14px 12px; aspect-ratio: 193 / 114; min-width: 0; }
.logo-tile img { width: 100%; max-width: 150px; height: auto; object-fit: contain; }
.trust-sub { margin: 26px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Footer LinkedIn button: .foot a is display:block, which stacked the icon above the text */
.foot a.li-follow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; }

/* Customer case-study cards (customers.html, generated by tools/build-case-studies.ps1) */
a.logo-tile { transition: transform .2s, box-shadow .2s; }
a.logo-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); }
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-media { display: block; aspect-ratio: 1 / 1; background: var(--grad-soft); overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-media img { transform: scale(1.04); }
.case-ph { display: grid; place-items: center; text-align: center; padding: 18px; }
.case-ph span { font-family: var(--heading); font-weight: 600; font-size: 24px; letter-spacing: -.02em; color: var(--text); }
.case-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-body .chip { align-self: flex-start; padding: 4px 12px; font-size: 12px; }
.case-body h3 { font-size: 20px; margin: 2px 0 0; }
.case-body p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.case-body .more { margin-top: auto; padding-top: 6px; }
@media (max-width: 1040px) { .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .case-body { padding: 14px 14px 18px; } .case-body h3 { font-size: 17px; } }
@media (max-width: 460px) { .case-grid { grid-template-columns: 1fr; } }

/* Native form controls and scrollbars follow the chosen theme */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

/* Home: two rows of five client logos */
.logo-wall.five { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 940px; }
.logo-wall.five .logo-tile img { max-width: 132px; max-height: 52px; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .logo-wall.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-wall.five .logo-tile.dark { background: #171a33; }
.pillbar.center { justify-content: center; margin-top: 28px; }

/* Screenshots and product visuals */
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 8px 14px; font-size: 12px; color: #5a6072; border-top: 1px solid #e7e9f1; }
.shot.art img { max-height: 380px; object-fit: contain; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.shots.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots.one { grid-template-columns: minmax(0, 1040px); justify-content: center; }
@media (max-width: 800px) { .shots, .shots.three { grid-template-columns: 1fr; } }

/* Leadership photos */
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person .avatar { width: 132px; height: 132px; }
/* Seven specialists: four per row, last row centred */
.team.reports { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.team.reports .person { flex: 0 0 calc(25% - 15px); }
@media (max-width: 900px) { .team.reports .person { flex-basis: calc(50% - 10px); } }
@media (max-width: 480px) { .team.reports .person { flex-basis: 100%; } }
.team-label { margin-top: 44px; text-align: center; }

/* Centred page heroes: the heading and intro have a max width, so centre the boxes too */
.page-hero [style*="text-align:center"] h1, .page-hero [style*="text-align:center"] .lead { margin-left: auto; margin-right: auto; }
.page-hero [style*="text-align:center"] .eyebrow + h1 { margin-top: 18px; }

/* Menu rows with a title only: centre the title against its icon */
.mega a.one { align-items: center; }

/* KenSuite hub: gentle float, pulse rings and light flowing out along both arcs */
.hub { animation: hubfloat 6s ease-in-out infinite; }
.hub::before, .hub::after { content: ""; position: absolute; inset: -1px; border-radius: 24px; border: 1.5px solid rgba(139,120,255,.75); pointer-events: none; animation: hubring 3.2s ease-out infinite; }
.hub::after { animation-delay: 1.6s; border-color: rgba(34,184,207,.65); }
.hub svg { animation: breathe 3.2s ease-in-out infinite; }
@keyframes hubfloat { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -9px); } }
@keyframes hubring { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.16, 1.38); opacity: 0; } }
.arc path.flow { stroke: #fff; stroke-width: 4; stroke-dasharray: 34 700; opacity: .9; filter: drop-shadow(0 0 9px #8fb0ff); animation: flowl 2.8s 2.4s linear infinite; stroke-dashoffset: -560; }
.arc path.flow-r { animation-name: flowr; stroke-dashoffset: 34; }
@keyframes flowl { from { stroke-dashoffset: -520; } to { stroke-dashoffset: 40; } }
@keyframes flowr { from { stroke-dashoffset: 34; } to { stroke-dashoffset: -540; } }
:root[data-theme="light"] .arc path.flow { stroke: #6d5df5; }
@media (prefers-reduced-motion: reduce) { .arc path.flow, .hub::before, .hub::after { display: none; } .hub, .hub svg { animation: none; } }

/* Client logos span the same width as the figures below them */
.logo-wall.five { max-width: none; }
.logo-wall.five .logo-tile img { max-width: 168px; max-height: 64px; }

/* Switching providers call-out */
.switch-band { display: flex; align-items: center; gap: 24px; margin-top: 46px; padding: 30px 34px; border-radius: 24px; border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; box-shadow: 0 24px 60px -40px rgba(139,92,246,.8); }
.switch-band .mi { width: 54px; height: 54px; border-radius: 16px; }
.switch-band .mi svg { width: 26px; height: 26px; }
.switch-band h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; }
.switch-band p { color: var(--text); font-size: 17px; max-width: 640px; }
.switch-band div { flex: 1; }
.switch-band .btn { white-space: nowrap; }
@media (max-width: 800px) { .switch-band { flex-direction: column; text-align: center; padding: 26px 20px; } .switch-band .btn { white-space: normal; } }

/* Cookie consent bar */
.cc-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 260; max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--line-hi); box-shadow: var(--shadow); }
.cc-bar p { flex: 1; font-size: 14.5px; color: var(--muted); margin: 0; }
.cc-bar p b { color: var(--text); }
.cc-bar p a { color: var(--blue); font-weight: 600; }
.cc-btns { display: flex; gap: 10px; flex: none; }
body.has-consent .nl-pop { display: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: var(--text); }
@media (max-width: 640px) { .cc-bar { flex-direction: column; align-items: stretch; gap: 12px; left: 10px; right: 10px; bottom: 10px; } .cc-btns { justify-content: flex-end; } }
