/* =========================================================
   Zerothcode - "modern" layer (v3)
   Opt-in per page:  $extraCss = ['/assets/css/modern.css'];
   + <script src="/assets/js/modern.js" defer></script>
   All classes are prefixed .m- so legacy pages are untouched.
   ========================================================= */

:root {
  --m-ink: #0D0E11;
  --m-ink-2: #15171C;
  --m-ink-3: #1E2128;
  --m-line-dark: rgba(255,255,255,.08);
  --m-line-dark-2: rgba(255,255,255,.14);
  --m-text-dark: #ECEDEF;
  --m-muted-dark: #9A9FAA;
  --m-red: #E4222E;
  --m-red-2: #FF5F6D;
  --m-red-deep: #A5090B;
  --m-grad: linear-gradient(135deg, #E4222E 0%, #FF5F6D 100%);
  --m-grad-text: linear-gradient(100deg, #FF5F6D 0%, #E4222E 45%, #FF8A94 100%);
  --m-surface: #FFFFFF;
  --m-surface-2: #F7F5F3;
  --m-line: #ECE8E3;
  --m-ease: cubic-bezier(.16,1,.3,1);
  --m-radius: 22px;
  --m-shadow: 0 1px 2px rgba(16,18,24,.04), 0 8px 24px -8px rgba(16,18,24,.10);
  --m-shadow-lg: 0 2px 4px rgba(16,18,24,.04), 0 30px 60px -20px rgba(16,18,24,.25);
}

/* ---------- Better reveal on modern pages ---------- */
html.js body.page-modern .reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  filter: blur(6px);
  transition: opacity .9s var(--m-ease), transform .9s var(--m-ease), filter .9s var(--m-ease);
}
html.js body.page-modern .reveal.in-view { opacity: 1; transform: none; filter: none; }

/* ---------- Shared bits ---------- */
.m-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px/1 var(--font-base);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--m-red-deep);
  margin-bottom: 18px;
}
.m-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--m-grad);
}
.m-dark .m-eyebrow { color: var(--m-red-2); }

.m-h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 18px;
}
.m-lede { font-size: 18px; line-height: 1.7; color: var(--color-text-muted); max-width: 620px; }
.m-dark .m-lede { color: var(--m-muted-dark); }

.m-grad-text {
  background: var(--m-grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: m-shine 8s linear infinite;
}
@keyframes m-shine { to { background-position: -200% 0; } }

.m-section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.m-section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.m-section-head .m-lede { margin: 0; }
.m-section-head.center { flex-direction: column; align-items: center; text-align: center; }
.m-section-head.center .m-lede { margin: 0 auto; }

/* Buttons */
.m-btn {
  --mx: 50%; --my: 50%;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font: 600 15.5px/1 var(--font-base);
  border: 1px solid transparent;
  transition: transform .35s var(--m-ease), box-shadow .35s var(--m-ease), background .35s, border-color .35s, color .35s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.m-btn svg { transition: transform .35s var(--m-ease); }
.m-btn:hover svg { transform: translateX(4px); }
.m-btn-primary { background: var(--m-grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(228,34,46,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.m-btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.m-btn-primary:hover::after { opacity: 1; }
.m-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(228,34,46,.65), inset 0 1px 0 rgba(255,255,255,.25); }
.m-btn-ghost { color: var(--color-text); border-color: var(--m-line); background: #fff; }
.m-btn-ghost:hover { border-color: var(--color-text); transform: translateY(-2px); }
.m-dark .m-btn-ghost { color: #fff; background: rgba(255,255,255,.04); border-color: var(--m-line-dark-2); }
.m-dark .m-btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }

/* Dark surfaces */
.m-dark { background: var(--m-ink); color: var(--m-text-dark); }
.m-dark h1, .m-dark h2, .m-dark h3 { color: #fff; }

.m-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.m-glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: .55;
  animation: m-float 14s ease-in-out infinite alternate;
}
@keyframes m-float {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(40px,-30px,0) scale(1.1); }
  100% { transform: translate3d(-30px,20px,0) scale(.95); }
}

/* =========================================================
   HERO
   ========================================================= */
.m-hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 84px) 0 clamp(72px, 8vw, 110px); isolation: isolate; }
.m-hero .m-glow.g1 { width: 520px; height: 520px; background: #E4222E; top: -180px; right: -80px; opacity: .35; }
.m-hero .m-glow.g2 { width: 420px; height: 420px; background: #7A0709; bottom: -220px; left: -120px; opacity: .5; animation-delay: -6s; }
.m-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }

.m-crumbs { font-size: 13.5px; color: var(--m-muted-dark); margin-bottom: 26px; }
.m-crumbs a { color: var(--m-muted-dark); transition: color .2s; }
.m-crumbs a:hover { color: #fff; }
.m-crumbs span { color: #fff; }
.m-crumbs i { font-style: normal; opacity: .4; margin: 0 8px; }

.m-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #F4D7D9;
  background: rgba(228,34,46,.10); border: 1px solid rgba(255,95,109,.28);
  margin-bottom: 26px;
}
.m-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2FD38A; }
.m-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2FD38A; animation: m-ping 1.8s var(--m-ease) infinite; }
@keyframes m-ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.m-hero h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 600;
  margin: 0 0 26px;
}
.m-hero h1 .m-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.m-hero h1 .m-word > span { display: inline-block; transform: translateY(105%); animation: m-rise 1s var(--m-ease) forwards; }
@keyframes m-rise { to { transform: none; } }
.m-hero .m-lede { font-size: 19px; color: #C4C8D0; margin-bottom: 14px; }
.m-hero .m-sub { color: var(--m-muted-dark); font-size: 15.5px; line-height: 1.75; max-width: 560px; margin: 0 0 36px; }
.m-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.m-fade-up { opacity: 0; transform: translateY(16px); animation: m-fadeup .9s var(--m-ease) forwards; }
@keyframes m-fadeup { to { opacity: 1; transform: none; } }

.m-trust { display: flex; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--m-line-dark); flex-wrap: wrap; }
.m-trust div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #C4C8D0; }
.m-trust svg { color: var(--m-red-2); flex: none; }

/* Agent console */
.m-console-wrap { position: relative; perspective: 1400px; }
.m-console {
  position: relative; border-radius: 24px;
  background: linear-gradient(180deg, rgba(30,33,40,.92), rgba(18,20,24,.96));
  border: 1px solid var(--m-line-dark-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset, 0 1px 0 rgba(255,255,255,.08) inset;
  backdrop-filter: blur(20px);
  transform: rotateY(-6deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform .8s var(--m-ease);
  overflow: hidden;
}
.m-console::before { /* animated rim light */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--m-angle, 0deg), transparent 0 70%, rgba(255,95,109,.9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: m-spin 6s linear infinite;
}
@property --m-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes m-spin { to { --m-angle: 360deg; } }

.m-console-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--m-line-dark); }
.m-dots { display: flex; gap: 6px; }
.m-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.m-console-title { font: 500 12.5px/1 "JetBrains Mono", monospace; color: var(--m-muted-dark); }
.m-console-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 "JetBrains Mono", monospace; color: #7EE2B2; }
.m-console-body { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 340px; }
.m-chat { padding: 22px 20px; border-right: 1px solid var(--m-line-dark); display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.m-msg {
  max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5;
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .5s var(--m-ease), transform .5s var(--m-ease);
}
.m-msg.show { opacity: 1; transform: none; }
.m-msg.user { align-self: flex-end; background: rgba(255,255,255,.08); color: #E8E9EC; border-bottom-right-radius: 5px; }
.m-msg.agent { align-self: flex-start; background: var(--m-grad); color: #fff; border-bottom-left-radius: 5px; box-shadow: 0 10px 24px -10px rgba(228,34,46,.6); }
.m-typing { align-self: flex-start; display: none; gap: 4px; padding: 13px 14px; border-radius: 16px; background: rgba(255,255,255,.06); }
.m-typing.show { display: inline-flex; }
.m-typing i { width: 6px; height: 6px; border-radius: 50%; background: #C4C8D0; animation: m-bounce 1.2s infinite; }
.m-typing i:nth-child(2) { animation-delay: .15s; } .m-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes m-bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.m-tools { padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.m-tools-label { font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #6E7380; margin-bottom: 4px; }
.m-tool {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--m-line-dark);
  font-size: 12.5px; color: #B9BDC6;
  transition: border-color .4s, background .4s, color .4s, transform .4s var(--m-ease);
}
.m-tool b { display: block; color: #fff; font-weight: 600; font-size: 13px; }
.m-tool small { display: block; font-size: 11.5px; color: #7D828E; margin-top: 2px; }
.m-tool .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #C4C8D0; transition: background .4s, color .4s; }
.m-tool .st { margin-left: auto; width: 18px; height: 18px; flex: none; position: relative; }
.m-tool.run { border-color: rgba(255,95,109,.5); background: rgba(228,34,46,.08); transform: translateX(-4px); }
.m-tool.run .ic { background: var(--m-grad); color: #fff; }
.m-tool.run .st::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--m-red-2); animation: m-rot .7s linear infinite; }
.m-tool.done .st::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1FA971 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; animation: m-pop .4s var(--m-ease); }
.m-tool.done { border-color: rgba(47,211,138,.25); }
@keyframes m-rot { to { transform: rotate(360deg); } }
@keyframes m-pop { from { transform: scale(0); } to { transform: scale(1); } }

.m-console-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--m-line-dark); font: 500 12px/1 "JetBrains Mono", monospace; color: #6E7380; }
.m-console-foot .bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.m-console-foot .bar i { display: block; height: 100%; width: 0; background: var(--m-grad); transition: width .6s var(--m-ease); }

.m-float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.96); color: var(--color-text);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  font-size: 13px; animation: m-bob 6s ease-in-out infinite;
}
.m-float-card b { display: block; font-family: var(--font-display); font-size: 15px; }
.m-float-card small { color: var(--color-text-muted); font-size: 12px; }
.m-float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #E9F8F1; color: #1FA971; }
.m-float-card.a { left: -28px; bottom: -30px; }
.m-float-card.b { right: -22px; top: -64px; animation-delay: -3s; }
.m-float-card.b .ic { background: #FDECEE; color: var(--m-red); }
@keyframes m-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================================
   INTEGRATION HUB (split section)
   ========================================================= */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.m-split p { color: var(--color-text-muted); font-size: 17px; line-height: 1.75; }
.m-checks { margin: 30px 0 0; display: grid; gap: 14px; }
.m-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--color-text); }
.m-checks li svg { flex: none; margin-top: 3px; color: var(--m-red); }

.m-hub {
  position: relative; aspect-ratio: 1 / .9; border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(228,34,46,.07), transparent 55%),
    var(--m-surface-2);
  border: 1px solid var(--m-line);
  overflow: hidden;
}
.m-hub::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(34,37,42,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
}
.m-hub svg.m-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-hub-lines path { fill: none; stroke: rgba(34,37,42,.14); stroke-width: 1.5; }
.m-hub-lines path.flow { stroke: url(#hubGrad); stroke-width: 2; stroke-dasharray: 6 140; stroke-linecap: round; animation: m-dash 2.6s linear infinite; }
@keyframes m-dash { to { stroke-dashoffset: -146; } }
.m-hub-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(165,9,11,.22); transform: translate(-50%,-50%); }
.m-hub-ring.r1 { width: 46%; aspect-ratio: 1; animation: m-rot 40s linear infinite; }
.m-hub-ring.r2 { width: 74%; aspect-ratio: 1; border-style: solid; border-color: rgba(34,37,42,.06); }
.m-hub-core {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%,-50%);
  border-radius: 30px; display: grid; place-items: center; color: #fff;
  background: var(--m-grad);
  box-shadow: 0 0 0 10px rgba(228,34,46,.08), 0 0 0 22px rgba(228,34,46,.05), 0 30px 60px -12px rgba(228,34,46,.55);
  animation: m-breathe 4s ease-in-out infinite;
}
.m-hub-core span { font: 600 13px/1 var(--font-display); letter-spacing: .02em; margin-top: 6px; display: block; text-align: center; }
@keyframes m-breathe { 0%,100% { box-shadow: 0 0 0 10px rgba(228,34,46,.08), 0 0 0 22px rgba(228,34,46,.05), 0 30px 60px -12px rgba(228,34,46,.55); } 50% { box-shadow: 0 0 0 16px rgba(228,34,46,.10), 0 0 0 34px rgba(228,34,46,.04), 0 30px 60px -12px rgba(228,34,46,.65); } }
.m-node {
  position: absolute; transform: translate(-50%,-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff;
  border: 1px solid var(--m-line); box-shadow: var(--m-shadow);
  font: 600 13.5px/1 var(--font-display); color: var(--color-text); white-space: nowrap;
  transition: transform .5s var(--m-ease), box-shadow .5s, border-color .5s;
}
.m-node .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #FDECEE; color: var(--m-red-deep); }
.m-node.ping { border-color: rgba(228,34,46,.45); box-shadow: 0 0 0 4px rgba(228,34,46,.08), var(--m-shadow); }

/* =========================================================
   BENTO SERVICES
   ========================================================= */
.m-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.m-tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px; border-radius: var(--m-radius);
  background: var(--m-surface); border: 1px solid var(--m-line);
  display: flex; flex-direction: column;
  transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s;
}
.m-tile::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(228,34,46,.07), transparent 45%);
}
.m-tile:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-lg); border-color: rgba(228,34,46,.25); }
.m-tile:hover::before { opacity: 1; }
.m-tile .num { font: 500 12.5px/1 "JetBrains Mono", monospace; color: #A39D95; margin-bottom: auto; padding-bottom: 28px; display: flex; justify-content: space-between; align-items: center; }
.m-tile .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #FDECEE; color: var(--m-red-deep);
  transition: transform .6s var(--m-ease), background .4s, color .4s;
}
.m-tile:hover .ic { transform: rotate(-8deg) scale(1.08); background: var(--m-grad); color: #fff; }
.m-tile h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 600; }
.m-tile p { color: var(--color-text-muted); font-size: 15px; line-height: 1.65; margin: 0; }
.m-tile.span-2 { grid-column: span 2; }
.m-tile.tall { grid-row: span 2; }

.m-tile.feature { background: var(--m-ink); border-color: var(--m-ink-3); color: var(--m-text-dark); }
.m-tile.feature h3 { color: #fff; font-size: 30px; }
.m-tile.feature p { color: var(--m-muted-dark); font-size: 16px; max-width: 420px; }
.m-tile.feature .num { color: #6E7380; }
.m-tile.feature .ic { background: rgba(255,255,255,.07); color: var(--m-red-2); }
.m-tile.feature::before { background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255,95,109,.16), transparent 45%); }
.m-tile.feature:hover { border-color: rgba(255,95,109,.35); }
.m-tile.feature .m-grid-bg { background-size: 36px 36px; -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 60%); mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 60%); }

.m-mini-flow { position: relative; margin: 6px 0 30px; display: flex; flex-direction: column; gap: 10px; }
.m-mini-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--m-line-dark);
  font-size: 13.5px; color: #C4C8D0;
  opacity: .45; transition: opacity .5s, border-color .5s, background .5s, transform .5s var(--m-ease);
}
.m-mini-step .dot { width: 8px; height: 8px; border-radius: 50%; background: #4A4E57; transition: background .5s, box-shadow .5s; flex: none; }
.m-mini-step code { margin-left: auto; font: 500 11.5px/1 "JetBrains Mono", monospace; color: #6E7380; }
.m-mini-step.on { opacity: 1; border-color: rgba(255,95,109,.35); background: rgba(228,34,46,.07); transform: translateX(6px); }
.m-mini-step.on .dot { background: var(--m-red-2); box-shadow: 0 0 0 4px rgba(255,95,109,.18); }

.m-tile.wide-row { flex-direction: row; align-items: center; gap: 30px; }
.m-tile.wide-row .num { padding: 0; margin: 0; }

.m-wave { display: flex; align-items: end; gap: 4px; height: 44px; margin-top: 22px; }
.m-wave i { flex: 1; border-radius: 3px; background: linear-gradient(to top, rgba(228,34,46,.15), rgba(228,34,46,.55)); height: 30%; animation: m-eq 1.6s ease-in-out infinite; transform-origin: bottom; }
@keyframes m-eq { 0%,100% { height: 25%; } 50% { height: 100%; } }

/* =========================================================
   PROCESS
   ========================================================= */
.m-process { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-process-track { position: absolute; top: 31px; left: calc(100%/6); right: calc(100%/6); height: 2px; background: var(--m-line); border-radius: 2px; overflow: hidden; }
.m-process-track i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--m-grad); transition: width .2s linear; }
.m-step { position: relative; text-align: center; padding: 0 12px; }
.m-step-num {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--m-line);
  font: 600 18px/1 var(--font-display); color: #A39D95;
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s, transform .5s var(--m-ease);
}
.m-step.lit .m-step-num { background: var(--m-grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 8px rgba(228,34,46,.09), 0 14px 30px -10px rgba(228,34,46,.6); transform: scale(1.06); }
.m-step-card { padding: 30px 26px; border-radius: var(--m-radius); background: #fff; border: 1px solid var(--m-line); transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease); height: calc(100% - 90px); }
.m-step-card:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-lg); }
.m-step-card .tag { display: inline-block; font: 500 11.5px/1 "JetBrains Mono", monospace; color: var(--m-red-deep); background: #FDECEE; padding: 6px 10px; border-radius: 999px; margin-bottom: 16px; }
.m-step h3 { font-size: 21px; margin-bottom: 10px; }
.m-step p { color: var(--color-text-muted); font-size: 15px; margin: 0; }
.m-center-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }

/* =========================================================
   INDUSTRY MARQUEE
   ========================================================= */
.m-marquee { position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.m-marquee + .m-marquee { margin-top: 14px; }
.m-marquee-track { display: flex; gap: 14px; width: max-content; animation: m-scroll 38s linear infinite; }
.m-marquee.rev .m-marquee-track { animation-direction: reverse; animation-duration: 44s; }
.m-marquee:hover .m-marquee-track { animation-play-state: paused; }
@keyframes m-scroll { to { transform: translateX(calc(-50% - 7px)); } }
.m-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--m-line);
  font: 600 16px/1 var(--font-display); color: var(--color-text); white-space: nowrap;
  transition: border-color .3s, transform .4s var(--m-ease), box-shadow .4s;
}
.m-chip:hover { border-color: rgba(228,34,46,.4); transform: translateY(-3px); box-shadow: var(--m-shadow); }
.m-chip .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #FDECEE; color: var(--m-red-deep); }
.m-chip.alt { background: var(--m-ink); color: #fff; border-color: var(--m-ink); }
.m-chip.alt .ic { background: rgba(255,255,255,.08); color: var(--m-red-2); }

/* =========================================================
   CTA PANEL
   ========================================================= */
.m-cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(56px, 7vw, 96px) clamp(28px, 6vw, 80px);
  background: var(--m-ink); color: #fff; text-align: center;
}
.m-cta .m-glow.g1 { width: 480px; height: 480px; background: #E4222E; left: 50%; top: 60%; margin-left: -240px; opacity: .45; }
.m-cta h2 { font-size: clamp(30px, 3.8vw, 54px); letter-spacing: -0.03em; line-height: 1.05; max-width: 820px; margin: 0 auto 18px; font-weight: 600; position: relative; }
.m-cta p { color: #C4C8D0; font-size: 18px; margin: 0 auto 36px; position: relative; }
.m-cta .m-hero-ctas { justify-content: center; position: relative; }

/* =========================================================
   FAQ
   ========================================================= */
.m-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.m-faq-aside { position: sticky; top: calc(var(--header-height) + 32px); }
.m-faq-aside p { color: var(--color-text-muted); font-size: 16.5px; }
.m-faq-aside a.inline { color: var(--m-red-deep); font-weight: 600; border-bottom: 1px solid currentColor; }
.m-faq .faq-item { border: 1px solid var(--m-line); border-radius: 18px; background: #fff; margin-bottom: 12px; transition: border-color .3s, box-shadow .4s; }
.m-faq .faq-item:hover { border-color: #DCD6CF; }
.m-faq .faq-item.open { border-color: rgba(228,34,46,.3); box-shadow: var(--m-shadow); }
.m-faq .faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; background: none; border: 0; text-align: left;
  font: 600 17px/1.35 var(--font-display); color: var(--color-text);
}
.m-faq .m-plus { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--m-surface-2); transition: background .4s, transform .5s var(--m-ease); }
.m-faq .m-plus::before, .m-faq .m-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--color-text); border-radius: 2px; transition: transform .5s var(--m-ease), background .4s; }
.m-faq .m-plus::after { transform: rotate(90deg); }
.m-faq .faq-item.open .m-plus { background: var(--m-grad); transform: rotate(180deg); }
.m-faq .faq-item.open .m-plus::before, .m-faq .faq-item.open .m-plus::after { background: #fff; }
.m-faq .faq-item.open .m-plus::after { transform: rotate(0deg); }
.m-faq .faq-answer { display: grid; grid-template-rows: 0fr; max-height: none; padding: 0; overflow: visible; transition: grid-template-rows .5s var(--m-ease); }
.m-faq .faq-answer > div { overflow: hidden; }
.m-faq .faq-answer p { margin: 0; padding: 0 24px 24px; color: var(--color-text-muted); font-size: 15.5px; line-height: 1.75; }
.m-faq .faq-answer a { color: var(--m-red-deep); font-weight: 600; }
.m-faq .faq-item.open .faq-answer { grid-template-rows: 1fr; max-height: none; padding: 0; }

/* =========================================================
   RELATED
   ========================================================= */
.m-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m-related a {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--m-radius);
  background: #fff; border: 1px solid var(--m-line); min-height: 240px;
  transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s;
}
.m-related a::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(228,34,46,.07), transparent 45%); }
.m-related a:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-lg); border-color: rgba(228,34,46,.25); }
.m-related a:hover::before { opacity: 1; }
.m-related .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #FDECEE; color: var(--m-red-deep); margin-bottom: 26px; }
.m-related h3 { font-size: 21px; margin: 0 0 8px; }
.m-related p { color: var(--color-text-muted); font-size: 15px; margin: 0 0 24px; }
.m-related .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--m-red-deep); }
.m-related .go .circ { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--m-line); transition: background .4s, border-color .4s, color .4s, transform .5s var(--m-ease); }
.m-related a:hover .go .circ { background: var(--m-grad); border-color: transparent; color: #fff; transform: rotate(-45deg); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .m-hero-inner { grid-template-columns: 1fr; }
  .m-console-wrap { max-width: 640px; }
  .m-console { transform: none; }
  .m-float-card.a { left: -10px; }
  .m-float-card.b { right: -6px; }
  .m-bento { grid-template-columns: repeat(2, 1fr); }
  .m-tile.tall { grid-row: auto; }
}
@media (max-width: 860px) {
  .m-split, .m-faq-wrap { grid-template-columns: 1fr; }
  .m-faq-aside { position: static; }
  .m-process { grid-template-columns: 1fr; gap: 18px; }
  .m-process-track { display: none; }
  .m-step { text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 0; }
  .m-step-num { margin: 0; }
  .m-step-card { height: auto; }
  .m-related { grid-template-columns: 1fr; }
  .m-section-head { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .m-bento { grid-template-columns: 1fr; }
  .m-tile.span-2 { grid-column: auto; }
  .m-tile.wide-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .m-tile.wide-row .num { padding-bottom: 24px; }
  .m-console-body { grid-template-columns: 1fr; }
  .m-chat { border-right: 0; border-bottom: 1px solid var(--m-line-dark); min-height: 230px; }
  .m-tools { display: grid; grid-template-columns: 1fr; }
  .m-float-card { display: none; }
  .m-hero .m-lede { font-size: 17px; }
  .m-trust { gap: 14px 22px; }
  .m-hub { aspect-ratio: 1 / 1.05; }
  .m-node { flex-direction: column; gap: 6px; font-size: 11px; padding: 8px 8px 7px; text-align: center; }
  .m-node .ic { width: 24px; height: 24px; }
  .m-hub-core { width: 88px; height: 88px; border-radius: 24px; }
  .m-btn { padding: 15px 22px; }
  .m-hero-ctas .m-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js body.page-modern .reveal { opacity: 1; transform: none; filter: none; }
  .m-hero h1 .m-word > span, .m-fade-up { transform: none; opacity: 1; animation: none; }
  .m-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .m-marquee [aria-hidden="true"] { display: none; }
  .m-console { transform: none; }
}

/* =========================================================
   HOME PAGE COMPONENTS (reusable)
   ========================================================= */

/* --- Hero stats --- */
.m-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 14px 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--m-line-dark); justify-content: start; }
.m-stat b { display: block; font: 600 28px/1 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.m-stat span { display: block; font-size: 13px; color: var(--m-muted-dark); margin-top: 8px; }

/* --- Hero stage: browser + phone mockup --- */
.m-stage { position: relative; perspective: 1600px; padding: 20px 0 40px; }
.m-browser {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #fff; color: var(--color-text);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--m-ease);
}
.m-browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #F4F2EF; border-bottom: 1px solid var(--m-line); }
.m-browser-bar .m-dots i { background: #DAD5CE; }
.m-url { flex: 1; max-width: 280px; margin: 0 auto; padding: 6px 12px; border-radius: 8px; background: #fff; font: 500 11.5px/1 "JetBrains Mono", monospace; color: #8A847C; text-align: center; }
.m-app { display: grid; grid-template-columns: 56px 1fr; min-height: 330px; }
.m-app-side { background: #FAF9F7; border-right: 1px solid var(--m-line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.m-app-side i { width: 24px; height: 24px; border-radius: 7px; background: #ECE8E3; }
.m-app-side i.on { background: var(--m-grad); box-shadow: 0 6px 14px -4px rgba(228,34,46,.6); }
.m-app-main { padding: 20px; display: grid; gap: 14px; grid-template-rows: auto auto 1fr; }
.m-app-head { display: flex; justify-content: space-between; align-items: center; }
.m-app-head b { font: 600 15px/1 var(--font-display); }
.m-app-head span { font-size: 11px; color: #1FA971; background: #E9F8F1; padding: 5px 9px; border-radius: 999px; font-weight: 600; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-kpi { padding: 12px; border-radius: 12px; border: 1px solid var(--m-line); }
.m-kpi small { display: block; font-size: 10.5px; color: var(--color-text-muted); margin-bottom: 8px; }
.m-kpi .sk { height: 8px; border-radius: 4px; background: #ECE8E3; width: 70%; }
.m-kpi .sk.r { background: var(--m-grad); width: 0; animation: m-grow 2.4s var(--m-ease) .9s forwards; }
@keyframes m-grow { to { width: 82%; } }
.m-chart { position: relative; border-radius: 12px; border: 1px solid var(--m-line); padding: 12px; min-height: 130px; }
.m-chart svg { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.m-chart .ln { fill: none; stroke: url(#heroLine); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: m-draw 2.2s var(--m-ease) 1s forwards; }
.m-chart .ar { fill: url(#heroArea); opacity: 0; animation: m-fadein 1s ease 2s forwards; }
.m-chart .gl { stroke: #F0ECE7; stroke-width: 1; }
@keyframes m-draw { to { stroke-dashoffset: 0; } }
@keyframes m-fadein { to { opacity: 1; } }

.m-phone {
  position: absolute; z-index: 3; right: -18px; bottom: -6px; width: 150px; padding: 8px;
  border-radius: 28px; background: #16181D; box-shadow: 0 30px 60px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1);
  animation: m-bob 7s ease-in-out infinite;
}
.m-phone-screen { border-radius: 21px; background: #fff; padding: 22px 10px 12px; min-height: 230px; position: relative; overflow: hidden; }
.m-phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 6px; margin-left: -22px; border-radius: 6px; background: #16181D; }
.m-notif { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: #F6F4F1; margin-bottom: 8px; font-size: 10.5px; line-height: 1.3; color: var(--color-text);
  opacity: 0; transform: translateY(-8px); animation: m-fadeup .7s var(--m-ease) forwards; }
.m-notif b { display: block; font-size: 11px; }
.m-notif .ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--m-grad); color: #fff; }
.m-notif.g .ic { background: #1FA971; }
.m-notif:nth-child(1) { animation-delay: 1.6s; } .m-notif:nth-child(2) { animation-delay: 2.4s; } .m-notif:nth-child(3) { animation-delay: 3.2s; }

.m-chip-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(22,24,29,.9); border: 1px solid var(--m-line-dark-2); color: #fff; font: 500 12.5px/1 "JetBrains Mono", monospace; backdrop-filter: blur(10px); animation: m-bob 6s ease-in-out infinite; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); }
.m-chip-float.c1 { left: -26px; top: -4px; }
.m-chip-float.c2 { left: 30px; bottom: 6px; animation-delay: -2.5s; }
.m-chip-float .ok { color: #2FD38A; }

/* --- Bento tile as link --- */
a.m-tile { color: inherit; text-decoration: none; }
.m-tile .more { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--m-red-deep); }
.m-tile .more svg { transition: transform .4s var(--m-ease); }
.m-tile:hover .more svg { transform: translateX(4px); }
.m-tile.feature .more { color: var(--m-red-2); }

.m-code { position: relative; margin: 6px 0 28px; padding: 18px 18px 16px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--m-line-dark); font: 500 13px/1.75 "JetBrains Mono", monospace; color: #B9BDC6; min-height: 230px; white-space: pre; overflow: hidden; }
.m-code .k { color: #FF8A94; } .m-code .s { color: #7EE2B2; } .m-code .c { color: #6E7380; } .m-code .f { color: #9DC1FF; }
.m-caret { display: inline-block; width: 8px; height: 15px; background: var(--m-red-2); vertical-align: -2px; animation: m-blink 1s steps(1) infinite; }
@keyframes m-blink { 50% { opacity: 0; } }

/* --- Solutions showcase (auto-advancing tabs) --- */
.m-show { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.m-show-list { display: flex; flex-direction: column; gap: 10px; }
.m-show-tab {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  padding: 22px 24px; border-radius: 18px; border: 1px solid var(--m-line); background: #fff;
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.m-show-tab h3 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 12px; color: var(--color-text); }
.m-show-tab h3 .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #FDECEE; color: var(--m-red-deep); flex: none; transition: background .4s, color .4s; }
.m-show-tab .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--m-ease); }
.m-show-tab .body > div { overflow: hidden; }
.m-show-tab p { margin: 12px 0 10px 50px; color: var(--color-text-muted); font-size: 15px; }
.m-show-tab a { margin-left: 50px; font-weight: 600; font-size: 14.5px; color: var(--m-red-deep); display: inline-flex; gap: 6px; align-items: center; }
.m-show-tab .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--m-grad); }
.m-show-tab.on { border-color: rgba(228,34,46,.3); box-shadow: var(--m-shadow); }
.m-show-tab.on .body { grid-template-rows: 1fr; }
.m-show-tab.on h3 .ic { background: var(--m-grad); color: #fff; }
.m-show-tab:not(.on):hover { border-color: #DCD6CF; }
.m-show-stage { position: relative; border-radius: 26px; background: var(--m-ink); overflow: hidden; min-height: 460px; isolation: isolate; }
.m-show-stage .m-glow { width: 360px; height: 360px; background: #E4222E; left: 50%; top: 50%; margin: -180px 0 0 -180px; opacity: .3; }
.m-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; opacity: 0; transform: scale(.96); transition: opacity .6s var(--m-ease), transform .8s var(--m-ease); pointer-events: none; z-index: 1; }
.m-scene.on { opacity: 1; transform: none; }

/* scene: shop */
.m-shop { display: grid; grid-template-columns: repeat(2, 150px); gap: 14px; position: relative; }
.m-prod { background: #fff; border-radius: 16px; padding: 10px; }
.m-prod .img { height: 96px; border-radius: 10px; background: linear-gradient(135deg, #FDECEE, #F6D3D6); display: grid; place-items: center; color: var(--m-red); }
.m-prod.b .img { background: linear-gradient(135deg, #EDEBFA, #D9D5F3); color: #6656D6; }
.m-prod .t { height: 8px; width: 70%; border-radius: 4px; background: #ECE8E3; margin: 12px 0 8px; }
.m-prod .row { display: flex; justify-content: space-between; align-items: center; }
.m-prod .p { height: 8px; width: 34%; border-radius: 4px; background: #D6D0C8; }
.m-prod button { border: 0; border-radius: 8px; padding: 6px 10px; font: 600 11px/1 var(--font-base); background: var(--m-grad); color: #fff; }
.m-scene.on .m-prod.a button { animation: m-press 3s ease-in-out 1s infinite; }
@keyframes m-press { 0%,20%,100% { transform: none; } 10% { transform: scale(.9); } }
.m-cart { position: absolute; right: -22px; top: -22px; width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--color-text); box-shadow: 0 16px 30px -10px rgba(0,0,0,.6); }
.m-cart i { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--m-grad); color: #fff; font: 700 11px/22px var(--font-base); font-style: normal; text-align: center; }
.m-scene.on .m-cart i { animation: m-pop .5s var(--m-ease) 1.1s both; }
.m-pay { position: absolute; left: -30px; bottom: -26px; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #fff; font-size: 12px; font-weight: 600; color: var(--color-text); box-shadow: 0 16px 30px -10px rgba(0,0,0,.6); }
.m-pay .ic { width: 24px; height: 24px; border-radius: 8px; background: #1FA971; color: #fff; display: grid; place-items: center; }

/* scene: kanban */
.m-kan { display: grid; grid-template-columns: repeat(3, 130px); gap: 12px; position: relative; }
.m-kan-col { background: rgba(255,255,255,.05); border: 1px solid var(--m-line-dark); border-radius: 14px; padding: 10px; min-height: 230px; }
.m-kan-col > small { display: block; font: 600 10.5px/1 "JetBrains Mono", monospace; color: #8A8F9A; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.m-kcard { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.m-kcard .tg { width: 34px; height: 6px; border-radius: 3px; background: var(--m-grad); margin-bottom: 8px; }
.m-kcard .tg.g { background: #1FA971; } .m-kcard .tg.y { background: #F2B33D; }
.m-kcard .l { height: 6px; border-radius: 3px; background: #ECE8E3; margin-top: 5px; }
.m-kcard .l.s { width: 60%; }
.m-kcard.move { position: absolute; left: 10px; top: 32px; width: 110px; box-shadow: 0 18px 30px -10px rgba(0,0,0,.6); }
.m-scene.on .m-kcard.move { animation: m-kmove 4.5s var(--m-ease) .6s infinite; }
@keyframes m-kmove { 0%,10% { transform: translate(0,0) rotate(0); } 30%,45% { transform: translate(142px,0) rotate(3deg); } 65%,90% { transform: translate(284px,0) rotate(0); } 100% { transform: translate(284px,0); opacity: 0; } }

/* scene: phone */
.m-scene .m-phone { position: relative; right: auto; bottom: auto; width: 190px; animation: none; }
.m-scene .m-phone-screen { min-height: 330px; }
.m-app-row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: #F6F4F1; margin-bottom: 8px; opacity: 0; transform: translateX(-10px); }
.m-scene.on .m-app-row { animation: m-slide .6s var(--m-ease) forwards; }
.m-scene.on .m-app-row:nth-child(2) { animation-delay: .15s; } .m-scene.on .m-app-row:nth-child(3) { animation-delay: .3s; } .m-scene.on .m-app-row:nth-child(4) { animation-delay: .45s; }
@keyframes m-slide { to { opacity: 1; transform: none; } }
.m-app-row .av { width: 28px; height: 28px; border-radius: 50%; background: var(--m-grad); flex: none; }
.m-app-row .av.b { background: #6656D6; } .m-app-row .av.c { background: #1FA971; }
.m-app-row .ls { flex: 1; } .m-app-row .ls i { display: block; height: 6px; border-radius: 3px; background: #DAD5CE; } .m-app-row .ls i + i { width: 60%; margin-top: 5px; background: #ECE8E3; }
.m-app-hero { height: 90px; border-radius: 14px; background: var(--m-grad); margin-bottom: 10px; position: relative; overflow: hidden; }
.m-app-hero::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.18); }
.m-app-tabs { display: flex; justify-content: space-around; padding-top: 10px; margin-top: 10px; border-top: 1px solid #F0ECE7; }
.m-app-tabs i { width: 18px; height: 18px; border-radius: 6px; background: #ECE8E3; } .m-app-tabs i:first-child { background: var(--m-red); }

/* scene: nodes */
.m-nodes { width: 100%; max-width: 380px; }
.m-nodes .ln { stroke: rgba(255,255,255,.14); stroke-width: 1.5; fill: none; }
.m-nodes .fl { stroke: #FF5F6D; stroke-width: 2; fill: none; stroke-dasharray: 5 120; stroke-linecap: round; animation: m-dash 2.2s linear infinite; }
.m-nodes .nd { fill: #1E2128; stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.m-nodes .core { fill: url(#nodeGrad); }
.m-nodes text { font: 600 10px var(--font-base); fill: #C4C8D0; text-anchor: middle; }

/* --- Process 4 columns --- */
.m-process.four { grid-template-columns: repeat(4, 1fr); }
.m-process.four .m-process-track { left: 12.5%; right: 12.5%; }

/* --- Tech tabs restyle (keeps main.js behaviour) --- */
.page-modern .tech-tab-list { background: #fff; border: 1px solid var(--m-line); box-shadow: var(--m-shadow); }
.page-modern .tech-item { border-radius: 16px; border-color: var(--m-line); transition: transform .5s var(--m-ease), box-shadow .5s var(--m-ease), border-color .3s; }
.page-modern .tech-item:hover { box-shadow: var(--m-shadow-lg); border-color: rgba(228,34,46,.25); }
.page-modern .tech-view-toggle { border-radius: 999px; }

/* --- Why us (dark stat cards) --- */
.m-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.m-why-card { position: relative; padding: 30px 26px; border-radius: var(--m-radius); background: rgba(255,255,255,.03); border: 1px solid var(--m-line-dark); overflow: hidden; transition: border-color .4s, transform .6s var(--m-ease), background .4s; }
.m-why-card:hover { border-color: rgba(255,95,109,.4); transform: translateY(-4px); background: rgba(255,255,255,.05); }
.m-why-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(228,34,46,.14); color: var(--m-red-2); margin-bottom: 34px; }
.m-why-card .big { font: 600 clamp(34px, 3.2vw, 46px)/1 var(--font-display); letter-spacing: -0.03em; background: linear-gradient(180deg, #fff, #B9BDC6); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.m-why-card h3 { font-size: 17px; margin: 0 0 6px; }
.m-why-card p { color: var(--m-muted-dark); font-size: 14.5px; margin: 0; }

/* --- AI strip --- */
.m-ai { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.m-ai-card { position: relative; padding: 26px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--m-line); transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s; }
.m-ai-card:hover { transform: translateY(-6px); box-shadow: var(--m-shadow-lg); border-color: rgba(228,34,46,.25); }
.m-ai-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #FDECEE; color: var(--m-red-deep); margin-bottom: 22px; transition: transform .6s var(--m-ease), background .4s, color .4s; }
.m-ai-card:hover .ic { background: var(--m-grad); color: #fff; transform: rotate(-8deg) scale(1.08); }
.m-ai-card h3 { font-size: 17px; margin: 0 0 8px; }
.m-ai-card p { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.m-ai-card .n { position: absolute; top: 22px; right: 22px; font: 500 11.5px/1 "JetBrains Mono", monospace; color: #B5AFA7; }

/* --- Engagement plans --- */
.m-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m-plan { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; padding: 34px 30px; border-radius: var(--m-radius); background: #fff; border: 1px solid var(--m-line); transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s; }
.m-plan::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(228,34,46,.07), transparent 45%); }
.m-plan:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-lg); border-color: rgba(228,34,46,.25); }
.m-plan:hover::before { opacity: 1; }
.m-plan .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #FDECEE; color: var(--m-red-deep); margin-bottom: 24px; }
.m-plan h3 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 10px; }
.m-plan > p { color: var(--color-text-muted); font-size: 15px; margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px dashed var(--m-line); }
.m-plan ul { display: grid; gap: 12px; }
.m-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.m-plan li svg { flex: none; margin-top: 3px; color: var(--m-red); }
.m-plan.dark { background: var(--m-ink); border-color: var(--m-ink-3); color: var(--m-text-dark); }
.m-plan.dark h3 { color: #fff; }
.m-plan.dark > p { color: var(--m-muted-dark); border-color: var(--m-line-dark-2); }
.m-plan.dark .ic { background: rgba(228,34,46,.14); color: var(--m-red-2); }
.m-plan.dark li svg { color: var(--m-red-2); }
.m-plan.dark::before { background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255,95,109,.15), transparent 45%); }
.m-cta small { position: relative; display: block; margin-top: 22px; color: #8A8F9A; font-size: 13.5px; }

/* --- Home responsive --- */
@media (max-width: 1180px) {
  .m-browser { transform: none; }
  .m-stage { max-width: 680px; }
  .m-show { grid-template-columns: 1fr; }
  .m-why { grid-template-columns: repeat(2, 1fr); }
  .m-ai { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .m-process.four { grid-template-columns: 1fr; }
  .m-plans { grid-template-columns: 1fr; }
  .m-ai { grid-template-columns: repeat(2, 1fr); }
  .m-stats { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 640px) {
  .m-stage .m-phone { display: none; }
  .m-chip-float.c1 { left: -4px; top: 30px; }
  .m-chip-float.c2 { display: none; }
  .m-app { grid-template-columns: 1fr; }
  .m-app-side { display: none; }
  .m-kpis { grid-template-columns: repeat(2, 1fr); } .m-kpi:nth-child(3) { display: none; }
  .m-show-stage { min-height: 380px; }
  .m-scene { padding: 24px; transform: scale(.82); } .m-scene.on { transform: scale(.82); }
  .m-why { grid-template-columns: 1fr; }
  .m-ai { grid-template-columns: 1fr; }
  .m-code { font-size: 11.5px; }
  .m-show-tab p, .m-show-tab a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .m-kpi .sk.r { width: 82%; animation: none; }
  .m-chart .ln { stroke-dashoffset: 0; animation: none; } .m-chart .ar { opacity: 1; animation: none; }
  .m-notif, .m-app-row { opacity: 1; transform: none; animation: none !important; }
  .m-kcard.move { animation: none !important; }
}

/* =========================================================
   SKIN: upgrades the legacy component classes on every page
   that hasn't been rebuilt by hand. Scoped to body.m-skin.
   ========================================================= */
.m-skin { --m-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* Reveal */
html.js body.m-skin .reveal { opacity: 0; transform: translateY(24px) scale(.99); filter: blur(5px); transition: opacity .9s var(--m-ease), transform .9s var(--m-ease), filter .9s var(--m-ease); }
html.js body.m-skin .reveal.in-view { opacity: 1; transform: none; filter: none; }

/* Type + rhythm */
.m-skin .section { padding: clamp(72px, 9vw, 124px) 0; }
.m-skin .section-header { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.m-skin .section-header h2, .m-skin .split-copy h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }
.m-skin .section-header p { font-size: 17.5px; line-height: 1.7; }
.m-skin .section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--font-base); letter-spacing: .14em; color: var(--m-red-deep); margin-bottom: 16px; }
.m-skin .section-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--m-grad); }
.m-skin .section-header .section-eyebrow { justify-content: center; }
.m-skin .split-copy p { font-size: 16.5px; line-height: 1.75; color: var(--color-text-muted); }

/* Buttons */
.m-skin .btn { padding: 15px 26px; border-width: 1px; font-size: 15.5px; transition: transform .35s var(--m-ease), box-shadow .35s var(--m-ease), background .35s, border-color .35s, color .35s; }
.m-skin .btn-primary { background: var(--m-grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(228,34,46,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.m-skin .btn-primary::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--m-arrow) center/contain no-repeat; mask: var(--m-arrow) center/contain no-repeat; transition: transform .35s var(--m-ease); }
.m-skin .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(228,34,46,.65), inset 0 1px 0 rgba(255,255,255,.25); }
.m-skin .btn-primary:hover::after { transform: translateX(4px); }
.m-skin .btn-outline.on-light { background: #fff; border-color: var(--m-line); color: var(--color-text); }
.m-skin .btn-outline.on-light:hover { border-color: var(--color-text); color: var(--color-text); }
.m-skin form .btn-primary::after, .m-skin .btn-spinner + .btn-label::after { display: none; }

/* --- Hero (service pages) + page headers → dark --- */
.m-skin .hero, .m-skin .page-header {
  background: var(--m-ink); color: var(--m-text-dark);
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px);
}
.m-skin .hero::before, .m-skin .page-header::before {
  inset: 0; filter: none; z-index: -1;
  background:
    radial-gradient(600px circle at 88% -10%, rgba(228,34,46,.38), transparent 60%),
    radial-gradient(520px circle at -5% 110%, rgba(122,7,9,.55), transparent 60%);
}
.m-skin .hero::after, .m-skin .page-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.m-skin .hero h1, .m-skin .page-header h1 { color: #fff; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; }
.m-skin .hero p, .m-skin .page-header p, .m-skin .hero p.lead, .m-skin .page-header p.lead { color: #B9BDC6; }
.m-skin .hero p.lead, .m-skin .page-header p.lead { color: #C9CCD3; font-size: 18.5px; line-height: 1.7; }
.m-skin .hero .breadcrumbs, .m-skin .page-header .breadcrumbs, .m-skin .hero .breadcrumbs a, .m-skin .page-header .breadcrumbs a { color: var(--m-muted-dark); }
.m-skin .hero .breadcrumbs a:hover, .m-skin .page-header .breadcrumbs a:hover { color: #fff; }
.m-skin .hero .breadcrumbs span, .m-skin .page-header .breadcrumbs span { color: #fff; }
.m-skin .hero-eyebrow, .m-skin .page-header .section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; width: auto;
  padding: 7px 14px 7px 12px; border-radius: 999px; margin-bottom: 24px;
  font: 500 12.5px/1.2 var(--font-base); letter-spacing: .06em; color: #F4D7D9;
  background: rgba(228,34,46,.10); border: 1px solid rgba(255,95,109,.28);
}
.m-skin .hero-eyebrow::before, .m-skin .page-header .section-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2FD38A; box-shadow: 0 0 0 3px rgba(47,211,138,.2); flex: none; }
.m-skin .page-header .section-eyebrow { display: inline-flex; }
.m-skin .hero .btn-outline.on-light, .m-skin .page-header .btn-outline.on-light { background: rgba(255,255,255,.04); border-color: var(--m-line-dark-2); color: #fff; }
.m-skin .hero .btn-outline.on-light:hover, .m-skin .page-header .btn-outline.on-light:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); color: #fff; }
.m-skin .hero-media { position: relative; }
.m-skin .hero-media .hero-graphic, .m-skin .hero-media > svg { filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.m-skin .hero-media .media-frame { background: #fff !important; border-color: transparent !important; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.m-skin .hero-media::before { content: ""; position: absolute; left: 10%; right: 10%; top: 20%; bottom: 10%; background: radial-gradient(closest-side, rgba(228,34,46,.35), transparent); filter: blur(30px); z-index: -1; }
.m-skin .hero .hero-stat-value, .m-skin .page-header .hero-stat-value { color: #fff; }
.m-skin .hero .hero-stat-label, .m-skin .page-header .hero-stat-label { color: var(--m-muted-dark); }
.m-skin .page-header-stat-card { background: rgba(255,255,255,.04); border: 1px solid var(--m-line-dark); box-shadow: none; backdrop-filter: blur(6px); }
.m-skin .page-header-stat-num, .m-skin .page-header-stat-card.accent-charcoal .page-header-stat-num { color: #fff; }
.m-skin .page-header-stat-label { color: var(--m-muted-dark); }
.m-skin .page-header-watermark { opacity: .06; color: #fff; }
.m-skin .page-header .container > * { position: relative; }
/* hero entrance */
.m-skin .hero-copy > *, .m-skin .page-header .container > *:not(.page-header-grid), .m-skin .page-header-copy > * { animation: m-fadeup .9s var(--m-ease) both; }
.m-skin .hero-copy > *:nth-child(2), .m-skin .page-header-copy > *:nth-child(2) { animation-delay: .08s; }
.m-skin .hero-copy > *:nth-child(3), .m-skin .page-header-copy > *:nth-child(3) { animation-delay: .16s; }
.m-skin .hero-copy > *:nth-child(4), .m-skin .page-header-copy > *:nth-child(4) { animation-delay: .24s; }
.m-skin .hero-copy > *:nth-child(n+5), .m-skin .page-header-copy > *:nth-child(n+5) { animation-delay: .32s; }

/* Dark sections (e.g. AI Integration hero) */
.m-skin .section-dark { background: var(--m-ink); position: relative; isolation: isolate; overflow: hidden; }
.m-skin .section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at 85% 0%, rgba(228,34,46,.3), transparent 60%); }
.m-skin .section-dark h1 { font-size: clamp(36px, 4.4vw, 62px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.03; color: #fff; }
.m-skin .section-dark .card { background: rgba(255,255,255,.03); border-color: var(--m-line-dark); }

/* --- Cards --- */
.m-skin .card, .m-skin .benefit-item, .m-skin .industry-item, .m-skin .feature-chip, .m-skin .principle-card, .m-skin .ai-approach-card, .m-skin .journey-card, .m-skin .page-header-stat-card {
  --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden;
}
.m-skin .card { border-radius: var(--m-radius); border-color: var(--m-line); box-shadow: none; padding: 32px 30px; transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s; }
.m-skin .card::before, .m-skin .benefit-item::before, .m-skin .industry-item::before, .m-skin .feature-chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(228,34,46,.07), transparent 45%);
}
.m-skin .card:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-lg); border-color: rgba(228,34,46,.25); }
.m-skin .card:hover::before, .m-skin .benefit-item:hover::before, .m-skin .industry-item:hover::before, .m-skin .feature-chip:hover::before { opacity: 1; }
.m-skin .card-icon { width: 50px; height: 50px; border-radius: 14px; background: #FDECEE; color: var(--m-red-deep); margin-bottom: 26px; transition: transform .6s var(--m-ease), background .4s, color .4s; }
.m-skin .card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--m-grad); color: #fff; }
.m-skin .card-icon svg { width: 24px; height: 24px; }
.m-skin .card h3 { font-size: 20px; letter-spacing: -0.015em; font-weight: 600; }
.m-skin .card p { min-height: 0; }
.m-skin .card-link { color: var(--m-red-deep); align-items: center; }
.m-skin .section-dark .card:hover .card-icon { background: var(--m-grad); }

/* Benefits */
.m-skin .benefit-item { background: #fff; border: 1px solid var(--m-line); border-radius: 18px; padding: 22px; transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s; }
.m-skin .section-alt .benefit-item { background: #fff; }
.m-skin .benefit-item:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--m-shadow); border-color: rgba(228,34,46,.22); }
.m-skin .benefit-check { width: 32px; height: 32px; background: var(--m-grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(228,34,46,.6); }
.m-skin .benefit-check svg { stroke: #fff; color: #fff; }
.m-skin .benefit-item h4 { font-size: 16.5px; font-weight: 600; }

/* Feature chips + industries */
.m-skin .feature-chip { border-radius: 16px; border-color: var(--m-line); padding: 22px 16px; font-family: var(--font-display); font-size: 15px; transition: transform .5s var(--m-ease), box-shadow .5s, border-color .3s; }
.m-skin .feature-chip:hover { box-shadow: var(--m-shadow); border-color: rgba(228,34,46,.25); }
.m-skin .feature-chip.tint-red { background: #FDF3F3; }
.m-skin .industry-item { border-radius: 18px; border-color: var(--m-line); box-shadow: none; transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s, background .4s; }
.m-skin .industry-item:hover { box-shadow: var(--m-shadow-lg); border-color: rgba(228,34,46,.25); }
.m-skin .industry-icon { border-radius: 14px; background: #FDECEE; color: var(--m-red-deep); transition: transform .6s var(--m-ease), background .4s, color .4s; }
.m-skin .industry-item:hover .industry-icon { background: var(--m-grad); color: #fff; }
.m-skin .industry-item.is-active { background: var(--m-ink); border-color: var(--m-ink); }
.m-skin .industry-item.is-active span:last-child { color: #fff; }
.m-skin .industry-item.is-active .industry-icon { background: rgba(255,255,255,.08); color: var(--m-red-2); }

/* Process timeline */
.m-skin .process-num { width: 56px; height: 56px; background: #fff; color: #A39D95; border: 1px solid var(--m-line); box-shadow: 0 0 0 6px #fff; font-weight: 600; transition: background .6s, color .6s, border-color .6s, box-shadow .6s, transform .6s var(--m-ease); }
.m-skin .section-alt .process-num { box-shadow: 0 0 0 6px var(--color-offwhite); }
.m-skin .process-timeline.in-view .process-num { background: var(--m-grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px #fff, 0 14px 30px -10px rgba(228,34,46,.6); }
.m-skin .section-alt .process-timeline.in-view .process-num { box-shadow: 0 0 0 6px var(--color-offwhite), 0 14px 30px -10px rgba(228,34,46,.6); }
.m-skin .process-timeline.in-view .process-step:nth-child(3) .process-num { transition-delay: .35s; }
.m-skin .process-timeline.in-view .process-step:nth-child(4) .process-num { transition-delay: .7s; }
.m-skin .process-timeline.in-view .process-step:nth-child(5) .process-num { transition-delay: 1.05s; }
.m-skin .process-timeline.in-view .process-step:nth-child(6) .process-num { transition-delay: 1.4s; }
.m-skin .process-line-track { height: 2px; top: 27px; background: var(--m-line); }
.m-skin .process-line-fill { background: var(--m-grad); }
.m-skin .process-step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.m-skin .process-8-num, .m-skin .approach-num { background: var(--m-grad); box-shadow: 0 0 0 6px #fff, 0 10px 24px -10px rgba(228,34,46,.6); }
.m-skin .approach-stage:nth-child(even) .approach-num { background: var(--m-ink); }

/* Lists */
.m-skin .engagement-check { background: #FDECEE; color: var(--m-red); }

/* --- CTA band → dark rounded panel --- */
.m-skin .cta-band { background: transparent; padding: clamp(24px, 4vw, 56px) 32px; color: #fff; overflow: visible; }
.m-skin .cta-band::before { display: none; }
.m-skin .cta-band .container {
  position: relative; overflow: hidden; isolation: isolate; max-width: 1376px;
  padding: clamp(56px, 7vw, 92px) clamp(24px, 6vw, 80px); border-radius: 32px; background: var(--m-ink);
}
.m-skin .cta-band .container::before { content: ""; position: absolute; left: 50%; top: 70%; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; background: #E4222E; filter: blur(90px); opacity: .42; z-index: -1; }
.m-skin .cta-band .container::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
.m-skin .cta-band h2 { font-size: clamp(28px, 3.6vw, 50px); letter-spacing: -0.03em; line-height: 1.06; font-weight: 600; max-width: 860px; margin: 0 auto 16px; color: #fff; }
.m-skin .cta-band p { color: #C4C8D0; font-size: 17.5px; max-width: 640px; margin-left: auto; margin-right: auto; }
.m-skin .cta-band .btn-primary { background: var(--m-grad); color: #fff; margin-top: 12px; }
.m-skin .cta-band .btn-primary:hover { background: var(--m-grad); color: #fff; }
.m-skin .cta-band .btn-outline { color: #fff; border-color: var(--m-line-dark-2); }

/* Engagement CTA box */
.m-skin .engagement-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--m-ink); color: #fff; border: 0; border-radius: 28px; }
.m-skin .engagement-cta::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 480px; height: 480px; margin-left: -240px; border-radius: 50%; background: #E4222E; filter: blur(80px); opacity: .4; z-index: -1; }
.m-skin .engagement-cta h2, .m-skin .engagement-cta h3 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.m-skin .engagement-cta p { color: #C4C8D0; }

/* --- FAQ --- */
.m-skin .faq-list { max-width: 860px; }
.m-skin .faq-item { border: 1px solid var(--m-line); border-radius: 18px; background: #fff; margin-bottom: 12px; padding: 0 24px; transition: border-color .3s, box-shadow .4s; }
.m-skin .faq-item:hover { border-color: #DCD6CF; }
.m-skin .faq-item.open { border-color: rgba(228,34,46,.3); box-shadow: var(--m-shadow); }
.m-skin .faq-question { padding: 22px 0; font-size: 17px; gap: 20px; }
.m-skin .faq-question .chev { width: 32px; height: 32px; padding: 11px 9px; border-radius: 50%; background: var(--m-surface-2); color: var(--color-text); box-sizing: border-box; transition: transform .5s var(--m-ease), background .4s, color .4s; }
.m-skin .faq-item.open .chev { background: var(--m-grad); color: #fff; }
.m-skin .faq-answer { transition: max-height .5s var(--m-ease), padding .5s var(--m-ease); }
.m-skin .faq-item.open .faq-answer { max-height: 600px; }
.m-skin .faq-answer p { font-size: 15.5px; line-height: 1.75; }

/* Related services pills */
.m-skin .related-services a { border-radius: 999px; padding: 12px 20px; background: #fff; border-color: var(--m-line); font-weight: 600; transition: transform .4s var(--m-ease), border-color .3s, color .3s, box-shadow .4s; }
.m-skin .related-services a:hover { transform: translateY(-2px); box-shadow: var(--m-shadow); background: #fff; }

/* Legal pages */
.m-skin .legal-toc { border-radius: 22px; border-color: var(--m-line); box-shadow: var(--m-shadow); }
.m-skin .legal-updated { border-radius: 999px; }
.m-skin .legal-content h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; font-weight: 600; scroll-margin-top: calc(var(--header-height) + 24px); }
.m-skin .legal-content p, .m-skin .legal-content li { font-size: 16px; line-height: 1.8; }

/* Forms */
.m-skin .form-group input, .m-skin .form-group select, .m-skin .form-group textarea { border-radius: 12px; border: 1px solid var(--m-line); background: #fff; transition: border-color .25s, box-shadow .25s; }
.m-skin .form-group input:focus, .m-skin .form-group select:focus, .m-skin .form-group textarea:focus { outline: none; border-color: rgba(228,34,46,.55); box-shadow: 0 0 0 4px rgba(228,34,46,.10); }

/* Split media frames */
.m-skin .split-media .media-frame { border-radius: 24px; }
.m-skin .split-media > svg { max-width: 100%; }

@media (max-width: 1024px) {
  .m-skin .cta-band { padding: 16px; }
  .m-skin .cta-band .container { border-radius: 24px; padding: 48px 22px; }
  .m-skin .hero-media::before { display: none; }
  .m-skin .hero .hero-inner { gap: 36px; }
}
@media (max-width: 640px) {
  .m-skin .hero p.lead, .m-skin .page-header p.lead { font-size: 16.5px; }
  .m-skin .card { padding: 26px 22px; }
  .m-skin .faq-item { padding: 0 18px; }
  .m-skin .faq-question { font-size: 16px; }
  .m-skin .hero-ctas .btn, .m-skin .page-header-ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html.js body.m-skin .reveal { opacity: 1; transform: none; filter: none; }
  .m-skin .hero-copy > *, .m-skin .page-header .container > *, .m-skin .page-header-copy > * { animation: none; }
}

/* --- Page-specific polish --- */
.m-skin .page-header-watermark { display: none; }
.m-partner { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 0; padding: 36px 28px 30px; border-radius: 28px; background: rgba(255,255,255,.035); border: 1px solid var(--m-line-dark-2); backdrop-filter: blur(8px); }
.m-partner-card { padding: 22px 18px; border-radius: 20px; background: #fff; color: var(--color-text); box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); text-align: center; animation: m-bob 7s ease-in-out infinite; }
.m-partner-card.zc { background: var(--m-grad); color: #fff; animation-delay: -3.5s; }
.m-partner-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin: 0 auto 14px; background: #FDECEE; color: var(--m-red-deep); }
.m-partner-card.zc .ic { background: rgba(255,255,255,.2); color: #fff; }
.m-partner-card b { display: block; font: 600 17px/1.2 var(--font-display); }
.m-partner-card small { display: block; font-size: 12px; margin-top: 6px; opacity: .75; }
.m-partner-link { width: 100%; height: 40px; }
.m-partner-link path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.m-partner-link path.flow { stroke: #FF5F6D; stroke-dasharray: 10 110; stroke-linecap: round; animation: m-dash 2s linear infinite; }
.m-partner-out { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--m-line-dark-2); }
.m-partner-out span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--m-line-dark); color: #DADDE3; font-size: 13px; }
.m-partner-out i { width: 6px; height: 6px; border-radius: 50%; background: #2FD38A; }
@media (max-width: 640px) { .m-partner { grid-template-columns: 1fr 50px 1fr; padding: 22px 14px; } .m-partner-card { padding: 16px 10px; } .m-partner-card b { font-size: 15px; } }

.m-skin .engagement-cta h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
.m-skin .engagement-cta .engagement-cta-subtext { color: #8A8F9A; }
.m-skin .engagement-cta .btn-outline.on-light { background: rgba(255,255,255,.06); color: #fff; border-color: var(--m-line-dark-2); }
