:root {
  --deep: #04161a;
  --deep-2: #072328;
  --deep-3: #0b3238;
  --teal: #2ee6e0;
  --teal-2: #14b8b2;
  --steel: #8fb8bf;
  --mist: #d6eef0;
  --paper: #eaf4f4;
  --ink: #0b2a30;
  --ink-2: #3b5c63;
  --navy: #1f3864;
  --amber: #f2a93b;
  --line: rgba(143, 184, 191, .22);
  --display: "Bodoni Moda", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1480px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep) linear-gradient(180deg, var(--deep) 0%, #05191d 35%, #061d21 60%, var(--deep) 100%); color: var(--mist); font: clamp(17px, .3vw + 12.5px, 19.5px)/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--teal); color: var(--deep); padding: 8px 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { color: #fff; }
h2 { font: 700 clamp(30px, 3.3vw, 62px)/1.08 var(--display); margin: 0 0 20px; letter-spacing: -0.005em; text-wrap: balance; }
h3 { font-size: clamp(19px, 1.2vw, 23px); line-height: 1.3; margin: 0 0 8px; font-weight: 600; }
/* Word-by-word heading reveal (home-motion.js) */
h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
h2 .w > span { display: inline-block; transform-origin: 0 100%; }
/* Smooth scrolling (Lenis) takes over from the browser's own smooth anchor scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Header ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(28px, calc((100vw - var(--wrap)) / 2 + 28px)); }
.top-brand { display: block; filter: drop-shadow(0 0 18px rgba(46, 230, 224, .25)); }
.top-brand img { width: clamp(170px, 11vw, 220px); display: block; }
.top nav { display: flex; gap: 26px; align-items: center; }
.top nav a { color: var(--mist); text-decoration: none; font-size: clamp(15px, .9vw, 17px); font-weight: 500; }
.top nav a:hover { color: #fff; }
.top .top-cta { border: 1px solid rgba(46, 230, 224, .55); padding: 8px 16px; border-radius: 999px; color: var(--teal); background: rgba(46, 230, 224, .06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  /* Glows only; the page background shows through so the hero flows into the next section. */
  background:
    radial-gradient(60% 55% at 72% 50%, rgba(20, 184, 178, .22), transparent 75%),
    radial-gradient(90% 90% at 0% 0%, #0b3a40 0%, transparent 60%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 130px 28px 40px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; max-width: min(820px, 50%); }
.kicker { margin: 0 0 18px; color: var(--teal); font-weight: 600; font-size: clamp(15px, .95vw, 18px); }
.hero h1 { font: 700 clamp(40px, 4.3vw, 88px)/1.03 var(--display); margin: 0 0 26px; letter-spacing: -0.012em; }
.hero h1 .line { display: block; text-wrap: balance; }
.hero h1 .line + .line { color: var(--teal); font-style: italic; font-weight: 500; }
.lede { font-size: clamp(17px, 1.15vw, 22px); color: var(--mist); max-width: 54ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .kicker, .hero h1 .line, .hero .lede, .hero .hero-actions { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 .line:first-child { animation-delay: .08s; }
.hero h1 .line + .line { animation-delay: .18s; }
.hero .lede { animation-delay: .28s; }
.hero .hero-actions { animation-delay: .38s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.ticker {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  /* content lines up with the page column on any screen width */
  padding: 18px max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 22, 26, 0), rgba(4, 22, 26, .75));
  backdrop-filter: blur(6px);
}
.ticker li { padding: 4px 24px; color: var(--steel); font-size: clamp(14.5px, .85vw, 16.5px); border-left: 1px solid var(--line); min-width: 0; }
.ticker li:first-child { border-left: 0; padding-left: 0; }
.ticker b { display: block; font: 700 clamp(28px, 2vw, 40px)/1.1 var(--display); color: #fff; }

.btn { display: inline-flex; align-items: center; height: clamp(48px, 2.9vw, 56px); padding: 0 clamp(22px, 1.5vw, 30px); border-radius: 999px; font-weight: 600; font-size: clamp(16px, .95vw, 18px); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn-primary { background: var(--teal); color: var(--deep); box-shadow: 0 0 0 0 rgba(46, 230, 224, 0); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 32px rgba(46, 230, 224, .45); }
.btn-ghost { border: 1px solid rgba(214, 238, 240, .35); color: var(--mist); }
.btn-ghost:hover { border-color: var(--teal); color: #fff; }

/* ---------- Dashboard windows (showcase) ---------- */
.win {
  background: #f6fafa;
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(46, 230, 224, .22), 0 0 60px -20px rgba(46, 230, 224, .35);
}
.win-bar { display: flex; align-items: center; gap: 4px; background: var(--deep); padding: 10px 14px 0; min-height: 40px; color: var(--steel); font-size: 13px; font-weight: 600; }
.sat .win-bar { padding-bottom: 10px; }
.win-tab { padding: 7px 14px 9px; border-radius: 8px 8px 0 0; }
.win-tab.on { background: #f6fafa; color: var(--ink); }
.win-live { margin-left: auto; padding-bottom: 8px; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.win-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(46, 230, 224, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 230, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 224, 0); } }
.win-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px; border: 1px solid #dbe7e9; border-radius: 10px; background: #fff; }
.win-kpis div { padding: 10px 14px; border-right: 1px solid #dbe7e9; position: relative; }
.win-kpis div::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--navy); }
.win-kpis div:nth-child(2)::before { background: var(--teal-2); }
.win-kpis div:nth-child(3)::before { background: #e08a1e; }
.win-kpis div:nth-child(4)::before { background: #7b4fd6; }
.win-kpis div:last-child { border-right: 0; }
.win-kpis small { display: block; font-size: 12px; color: #6b8592; }
.win-kpis b { font: 700 clamp(18px, 2vw, 28px)/1.2 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.win-kpis b.up { color: #0e8a6e; }
.chart { width: 100%; height: 260px; }

/* ---------- Showcase (the animated dashboard) ---------- */
.showcase { position: relative; overflow: hidden; }
.showcase::before {
  content: "";
  position: absolute;
  inset: 40% -20% -10%;
  background:
    linear-gradient(rgba(46, 230, 224, .12) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(46, 230, 224, .12) 1px, transparent 1px) 0 0 / 60px 60px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: top;
  mask-image: linear-gradient(transparent, #000 30%, transparent 90%);
  pointer-events: none;
}
/* Compact: content sits near the top of the section instead of being centred in a full screen. */
.showcase-stage { position: relative; max-width: calc(var(--wrap) + 56px); margin: 0 auto; padding: 100px 28px 100px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(48px, 4vw, 90px); align-items: center; }
.showcase-copy p { color: var(--steel); max-width: 44ch; }
.stage { position: relative; perspective: 1400px; padding: 30px 0 46px; display: grid; place-items: center; }
.win-main { width: 100%; max-width: 1020px; transform-style: preserve-3d; }
.win-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; padding: 0 14px 14px; }
.win-grid .chart { height: clamp(250px, 16vw, 340px); background: #fff; border: 1px solid #dbe7e9; border-radius: 10px; }
.sat { position: absolute; width: clamp(230px, 14vw, 290px); }
.sat .chart { height: clamp(170px, 10.5vw, 220px); }
.sat-a { top: -6px; right: -24px; }
.sat-b { bottom: -10px; left: -40px; width: clamp(270px, 16vw, 330px); }
.sat-b .chart { height: clamp(190px, 12vw, 240px); }
.sat-c { bottom: 14px; right: -36px; }

/* ---------- Live demo ---------- */
.demo { padding: 110px 0 130px; background: radial-gradient(50% 36% at 50% 60%, rgba(20, 184, 178, .2), transparent 100%); }
.demo h2 { text-align: center; margin-left: auto; margin-right: auto; max-width: 20ch; }
.demo-lede { text-align: center; color: var(--steel); max-width: 60ch; margin: 0 auto 44px; }
.report-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.report-list > div { padding: 26px 28px 8px 0; }
.report-list > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.report-list h3 { font-size: clamp(17px, 1.1vw, 21px); color: #fff; margin: 0 0 12px; }
.report-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.report-list li { color: var(--steel); font-size: clamp(15px, .9vw, 17px); padding-left: 22px; position: relative; }
.report-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); box-shadow: 0 0 10px rgba(46, 230, 224, .6); }
@media (min-width: 961px) and (max-width: 1250px) {
  .report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .report-list > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.demo-cta-wrap { display: flex; justify-content: center; margin-top: 64px; }
.demo-cta-box { display: grid; justify-items: center; gap: 16px; text-align: center; }
/* Chevrons on both sides drift toward the button in a soft, repeating wave */
.cta-row { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.cta-arrows { display: flex; gap: 2px; }
.cta-arrows-right { flex-direction: row-reverse; }
.cta-arrows-right svg { transform: scaleX(-1); }
.cta-arrows-right i { animation-name: cta-nudge-r; }
.cta-arrows i { display: block; width: 26px; height: 26px; opacity: .45; animation: cta-nudge 2.4s ease-in-out infinite; }
.cta-arrows i:nth-child(2) { animation-delay: .2s; }
.cta-arrows i:nth-child(3) { animation-delay: .4s; }
.cta-arrows svg { width: 100%; height: 100%; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(46, 230, 224, .5)); }
@keyframes cta-nudge { 0%, 100% { opacity: .18; transform: translateX(-4px); } 45% { opacity: .9; transform: translateX(4px); } }
@keyframes cta-nudge-r { 0%, 100% { opacity: .18; transform: translateX(4px); } 45% { opacity: .9; transform: translateX(-4px); } }
@keyframes cta-nudge-down { 0%, 100% { opacity: .18; transform: translateY(-3px); } 45% { opacity: .9; transform: translateY(3px); } }
.demo-cta-box p { margin: 0; color: var(--steel); font-size: 15px; }
.btn-demo {
  height: auto; padding: 22px 40px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--deep); background: var(--teal);
  box-shadow: 0 0 0 6px rgba(46, 230, 224, .18), 0 0 60px rgba(46, 230, 224, .45);
  animation: demo-glow 2.6s ease-in-out infinite;
}
.btn-demo:hover { background: #fff; }
@keyframes demo-glow { 50% { box-shadow: 0 0 0 10px rgba(46, 230, 224, .1), 0 0 80px rgba(46, 230, 224, .6); } }

/* ---------- How ---------- */
.how { padding: 110px 0 120px; }
.how h2 { max-width: 20ch; }
.pipeline { margin: 40px 0 0; height: 60px; }
.pipeline svg { width: 100%; height: 100%; overflow: visible; }
.pipeline path { fill: none; stroke: rgba(46, 230, 224, .35); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.pipeline .packet { fill: var(--teal); filter: drop-shadow(0 0 8px var(--teal)); }
.pipeline .p2 { fill: #9ffcf8; }
.steps { list-style: none; counter-reset: step; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: step; padding: 28px 32px 8px 0; position: relative; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font: 500 28px/1 var(--display); color: var(--deep); background: var(--teal); box-shadow: 0 0 30px rgba(46, 230, 224, .45); margin-bottom: 20px; }
.steps p { color: var(--steel); margin: 0 0 16px; }

/* ---------- Activate ---------- */
/* The closing band: a lighter teal surface that the dark page fades into, carried through the footer. */
.activate {
  position: relative;
  padding: 200px 0 120px;
  background:
    radial-gradient(55% 60% at 80% 55%, rgba(46, 230, 224, .12), transparent 100%),
    linear-gradient(180deg, rgba(14, 64, 71, 0) 0, rgba(14, 64, 71, .55) 110px, #0e4047 230px, #0d3c43 100%);
}
.activate-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.activate p { color: var(--steel); margin: 0 0 28px; max-width: 56ch; }
/* Gentle highlight for existing CRM clients; it glows once when a visitor arrives from an "Add it" link */
.activate .callout {
  position: relative; color: var(--mist); font-size: 1.06em; padding: 18px 22px 18px 24px; border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(46, 230, 224, .13), rgba(46, 230, 224, .03));
  border-left: 3px solid var(--teal);
  box-shadow: 0 0 0 1px rgba(46, 230, 224, .14);
}
.activate .callout.flash, #activate:target .callout { animation: callout-glow 2.4s ease-out .2s 1; }
@keyframes callout-glow {
  25% { box-shadow: 0 0 0 1px rgba(46, 230, 224, .55), 0 0 44px rgba(46, 230, 224, .35); background-color: rgba(46, 230, 224, .1); }
}
.not-client { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; padding-top: 6px; }
.activate .not-client p { margin: 0; color: #fff; font-weight: 600; }
.activate .hours-note { margin: 0 0 14px; font-size: 15.5px; }
.contacts + .hours-note { margin: -16px 0 28px; }
.contacts { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line); }
.contacts li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--steel); }
.contacts b { color: #fff; font-weight: 600; margin-right: 6px; }
.contacts a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contacts a:hover { text-decoration: underline; }
.price-card {
  border-radius: 18px;
  padding: clamp(34px, 2.4vw, 46px) clamp(32px, 2.4vw, 46px) 18px;
  background: linear-gradient(160deg, rgba(46, 230, 224, .12), rgba(46, 230, 224, .02) 60%), var(--deep-2);
  box-shadow: 0 0 0 1px rgba(46, 230, 224, .35), 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 70px -30px rgba(46, 230, 224, .55);
}
.price { margin: 0; color: var(--steel); font-size: 18px; }
.price b { font: 700 clamp(56px, 6vw, 76px)/1 var(--display); color: #fff; margin-right: 6px; }
.price-note { margin: 10px 0 18px !important; }
.included { list-style: none; margin: 0; padding: 0; }
.included li { padding: 20px 0 20px 22px; border-left: 2px solid var(--teal-2); color: var(--steel); }
.included li + li { border-top: 1px solid var(--line); }
.included b { display: block; color: #fff; font-size: 18px; margin-bottom: 2px; }

.foot { padding: 50px 28px 56px; text-align: center; color: #a9cbd0; font-size: 14.5px; background: linear-gradient(180deg, #0d3c43, #0a3137); }
.foot img { width: 160px; margin-bottom: 10px; filter: drop-shadow(0 0 14px rgba(46, 230, 224, .2)); }
.foot p { margin: 4px auto; max-width: 70ch; }
.foot .foot-credit { margin-top: 18px; font-size: 11.5px; letter-spacing: .02em; color: rgba(169, 203, 208, .55); }
.foot-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(169, 203, 208, .25); transition: color .2s, border-color .2s; }
.foot-credit a:hover, .foot-credit a:focus-visible { color: #d4ecef; border-bottom-color: rgba(212, 236, 239, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .showcase-stage { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 48px; }
  .stage { padding: 20px 0 60px; }
}
@media (max-width: 960px) {
  .report-list { grid-template-columns: minmax(0, 1fr); }
  .report-list > div, .report-list > div + div { padding: 22px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .report-list { border-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 26px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .activate-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .ticker li:nth-child(3) { border-left: 0; }
  .ticker li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
  .demo { padding: 80px 0; }
  /* Phones: one set of arrows above the button, pointing down */
  .cta-row { flex-direction: column; gap: 8px; }
  .cta-arrows-right { display: none; }
  .cta-arrows-left { flex-direction: column; gap: 0; }
  .cta-arrows-left i { width: 22px; height: 18px; animation-name: cta-nudge-down; }
  .cta-arrows-left svg { transform: rotate(90deg); }
  .btn-demo { padding: 18px 22px; }
  .top nav a:not(.top-cta) { display: none; }
  .top { padding: 12px 16px; }
  .showcase-stage { padding-top: 64px; padding-bottom: 64px; }
  .top-brand img { width: 140px; }
  .top .top-cta { font-size: 13.5px; padding: 7px 12px; }
  .wrap, .hero-copy { padding-left: 16px; padding-right: 16px; }
  .hero-copy { padding-top: 120px; }
  .hero-copy > * { max-width: 100%; }
  .ticker { padding: 14px 16px; }
  .ticker li { padding: 2px 10px; font-size: 13px; }
  .ticker li:nth-child(odd) { padding-left: 0; }
  .ticker b { font-size: 22px; }
  .how { padding: 72px 0; }
  .activate { padding: 150px 0 72px; }
  .showcase-stage { padding-left: 16px; padding-right: 16px; }
  .win-grid { grid-template-columns: minmax(0, 1fr); }
  .sat { position: relative; inset: auto; width: 100%; margin-top: 14px; }
  .stage { display: block; padding-bottom: 0; }
  .win-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win-kpis div:nth-child(2) { border-right: 0; }
  .win-kpis div:nth-child(-n+2) { border-bottom: 1px solid #dbe7e9; }
  .pipeline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; animation: none !important; }
}
