/* =========================================================
   Blue Banana Software
   ========================================================= */

:root {
  --paper: #F4F7FB;
  --white: #FFFFFF;
  --ink: #0D1B2A;
  --ink-2: #4A5B70;
  --navy: #033F73;
  --navy-deep: #022A4D;
  --navy-bright: #2F7FD1;
  --mist: #DCE6F1;
  --line: #CDD9E6;
  --banana: #FFD449;
  --swift: #1E6FD9;
  --chat: #13A889;
  --chat-deep: #062E2A;
  --chat-mid: #0C4740;
  --wa: #25D366;

  --display: "Quicksand", "Varela Round", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.3rem);
  --step-4: clamp(2.8rem, 1.6rem + 5.4vw, 6.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--banana); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.h2 { font-size: var(--step-3); max-width: 18ch; text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: currentColor;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--navy));
  transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--block { width: 100%; }

.btn--solid { --bg: var(--navy); --fg: #fff; --bd: var(--navy); --fill: var(--navy-deep); }
.btn--solid:hover { box-shadow: 0 10px 30px -10px rgba(3, 63, 115, .6); }
.btn--ghost { --fg: var(--navy); --bd: var(--navy); --fill: var(--navy); }
.btn--ghost:hover { color: #fff; }
.btn--swift { --bg: var(--swift); --fg: #fff; --bd: var(--swift); --fill: var(--navy); }
.btn--chat { --bg: var(--wa); --fg: var(--chat-deep); --bd: var(--wa); --fill: #fff; }
.btn--ghost-light { --fg: #fff; --bd: rgba(255,255,255,.5); --fill: #fff; }
.btn--ghost-light:hover { color: var(--chat-deep); border-color: #fff; }

.link {
  display: inline-block; margin-top: auto; padding-top: 18px;
  font-family: var(--display); font-weight: 700; color: var(--navy); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease);
}
.link:hover { background-size: 100% 2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(244, 247, 251, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--max); height: 100%; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand img { height: 60px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--ink-2);
  transition: color .3s, background .3s;
}
.nav__links a:not(.btn):hover, .nav__links a.is-current { color: var(--navy); background: rgba(3, 63, 115, .07); }
.nav__cta { margin-left: 10px; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.nav__progress span { display: block; height: 100%; width: 100%; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--navy); cursor: pointer; position: relative; z-index: 2;
}
.nav__toggle span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax; right: -22vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(47, 127, 209, .16), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

.hero__title { font-size: clamp(2.7rem, 0.9rem + 4.6vw, 5.4rem); line-height: .98; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line__in { display: inline-block; transform: translateY(105%); text-wrap: balance; }
.hero__title .line--blue { color: var(--navy); }
@media (min-width: 921px) { .hero__title .line { white-space: nowrap; } }
.is-loaded .hero__title .line__in { animation: rise 1.1s var(--ease) forwards; }
.is-loaded .hero__title .line--blue .line__in { animation-delay: .14s; }

.hero__lede { margin-top: 28px; max-width: 52ch; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__facts {
  margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
}
.hero__facts div { padding: 0 28px; border-left: 2px solid var(--line); }
.hero__facts div:first-child { padding-left: 0; border-left: 0; }
.hero__facts dt { font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--navy); line-height: 1.1; }
.hero__facts dd { margin: 4px 0 0; font-size: var(--step--1); color: var(--ink-2); }

.reveal-load { opacity: 0; transform: translateY(18px); }
.is-loaded .reveal-load { animation: fadeUp .9s var(--ease) forwards; }
.is-loaded .hero__lede { animation-delay: .45s; }
.is-loaded .hero__actions { animation-delay: .6s; }
.is-loaded .hero__facts { animation-delay: .75s; }

.hero__art { position: relative; justify-self: end; width: min(125%, 500px); margin-right: -2%; }
.orbit { position: relative; aspect-ratio: 540 / 580; transition: transform .6s var(--ease); }
.hero__mark { width: 100%; height: 100%; color: var(--navy); overflow: visible; }
.hero__mark .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.is-loaded .hero__mark .draw { animation: draw 1.6s var(--ease-io) var(--d) forwards; }
.is-loaded .hero__mark .draw:first-child { animation-duration: 2s; }
.hero__mark .draw:nth-child(2) { animation-duration: .35s !important; }

.pen {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--banana); box-shadow: 0 0 0 6px rgba(255, 212, 73, .35), 0 0 30px 6px rgba(255, 212, 73, .6);
  left: 0; top: 0; opacity: 0; pointer-events: none;
}
.chips li {
  position: absolute; left: var(--x); top: var(--y);
  padding: 9px 16px; border-radius: 999px;
  background: var(--white); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: .9rem; white-space: nowrap;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -14px rgba(3, 63, 115, .45);
  opacity: 0; transform: scale(.6) translateY(10px);
}
.chips li::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: var(--chat); vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(19, 168, 137, .6); animation: ping 2.4s ease-out infinite; animation-delay: calc(var(--i) * .4s);
}
.is-loaded .chips li { animation: pop .7s var(--ease) forwards, float 6s ease-in-out infinite; animation-delay: calc(2.1s + var(--i) * .12s), calc(2.8s + var(--i) * .5s); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--ink-2); border-radius: 14px; opacity: .55;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.8s var(--ease) infinite; }

/* ---------- Clients marquee ---------- */
.clients { padding: 26px 0 30px; border-block: 1px solid var(--line); background: var(--white); }
.clients__label { text-align: center; color: var(--ink-2); font-size: var(--step--1); margin-bottom: 16px; padding-inline: var(--gutter); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  padding: 0 clamp(22px, 3vw, 44px);
  font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--ink); opacity: .78;
  white-space: nowrap; display: flex; align-items: center; gap: clamp(22px, 3vw, 44px);
}
.marquee li::after { content: ""; width: 10px; height: 10px; border: 2.5px solid var(--navy); border-radius: 50%; margin-right: calc(-1 * clamp(22px, 3vw, 44px)); }

/* ---------- Services ---------- */
.services { padding-block: clamp(90px, 12vw, 160px); }
.services__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.services__intro p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.pillars { margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.pillar {
  position: relative; display: flex; flex-direction: column;
  padding: 34px clamp(20px, 2.6vw, 36px) 40px;
  border-left: 1px solid var(--line);
  transition: background .5s var(--ease);
}
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: var(--navy);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.pillar:hover::after { transform: scaleX(1); }
.pillar__icon { width: 56px; height: 56px; margin-bottom: 26px; color: var(--navy); }
.pillar__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ease); }
.pillar:hover .pillar__icon svg { transform: rotate(-8deg) scale(1.06); }
.pillar h3 { font-size: var(--step-2); margin-bottom: 14px; }
.pillar p { color: var(--ink-2); max-width: 40ch; }

/* ---------- SYSPRO hub ---------- */
.syspro {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: #fff;
  padding-block: clamp(90px, 11vw, 150px);
}
.syspro::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 60%, rgba(47, 127, 209, .35), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgba(47, 127, 209, .2), transparent 70%);
}
.syspro__head { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.syspro__head p { color: rgba(255, 255, 255, .75); font-size: var(--step-1); line-height: 1.5; max-width: 50ch; }

.hub { position: relative; margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hub__stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 680px; justify-self: center; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__lines line { stroke: rgba(255, 255, 255, .14); stroke-width: .25; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.hub__lines line.is-active { stroke: var(--banana); stroke-width: 2; }
.hub__lines circle.ring { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; }
.hub__lines .packet { fill: var(--banana); }

.hub__core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; text-align: center;
  background: #fff; color: var(--navy);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 22px rgba(255, 255, 255, .03), 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.hub__core::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 212, 73, .6);
  animation: pulseRing 3s var(--ease) infinite;
}
.hub__core svg { width: 34%; height: auto; aspect-ratio: 540/580; margin: 0 auto 4px; }
.hub__core strong { font-family: var(--display); font-size: clamp(.85rem, 1.6vw, 1.25rem); line-height: 1; }
.hub__core span { font-size: clamp(.62rem, 1vw, .78rem); color: var(--ink-2); }

.hub__nodes button {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  max-width: 9.5em; padding: 8px 13px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(2, 42, 77, .85); color: rgba(255, 255, 255, .88);
  font-family: var(--display); font-weight: 700; font-size: clamp(.7rem, 1.05vw, .86rem); line-height: 1.15;
  cursor: pointer; text-align: center;
  backdrop-filter: blur(6px);
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.hub__nodes button:hover { border-color: var(--banana); transform: scale(1.06); }
.hub__nodes button[aria-selected="true"] {
  background: var(--banana); color: var(--navy-deep); border-color: var(--banana);
  box-shadow: 0 0 0 6px rgba(255, 212, 73, .2), 0 12px 30px -8px rgba(255, 212, 73, .55);
  transform: scale(1.08);
}
.hub__panel {
  position: relative; padding: clamp(26px, 3vw, 40px); border-radius: 28px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
}
.hub__group { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 212, 73, .16); color: var(--banana); font-weight: 600; font-size: .85rem; }
.hub__panel h3 { font-size: var(--step-3); margin: 16px 0 14px; }
.hub__panel p { color: rgba(255, 255, 255, .78); min-height: 5.2em; }
.hub__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.hub__meta span { font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8); }
.hub__panel .btn--solid { --bg: #fff; --fg: var(--navy); --bd: #fff; --fill: var(--banana); }
.hub__panel .swap { animation: swapIn .5s var(--ease); }

/* ---------- Product tags ---------- */
.product-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(30, 111, 217, .1); color: var(--swift);
  font-family: var(--display); font-weight: 700;
}
.product-tag svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--swift); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.product-tag--light { background: rgba(37, 211, 102, .14); color: var(--wa); }
.product-tag--light svg { background: var(--wa); stroke: var(--chat-deep); stroke-width: 2.6; }

/* ---------- Swift ---------- */
.swift { padding-block: clamp(90px, 12vw, 160px) clamp(70px, 9vw, 120px); background: var(--white); overflow: hidden; }
.swift__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.swift__copy > p { color: var(--ink-2); margin-top: 18px; max-width: 54ch; }
.swift__copy .h2 { max-width: 17ch; }
.checks { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; font-size: .98rem; line-height: 1.4; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--swift) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.swift__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.swift__actions .btn--ghost { --fg: var(--swift); --bd: var(--swift); --fill: var(--swift); }

.swift__demo { position: relative; }
.swift__demo::before {
  content: ""; position: absolute; inset: 8% -10% 10% 10%; z-index: 0; border-radius: 40px;
  background: linear-gradient(135deg, var(--swift), var(--navy));
  transform: rotate(3deg);
}
.app {
  position: relative; z-index: 1; border-radius: 20px; overflow: hidden; background: var(--white);
  box-shadow: 0 40px 80px -30px rgba(3, 42, 77, .55), 0 0 0 1px rgba(3, 42, 77, .08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
.swift__demo:hover .app { transform: perspective(1400px) rotateY(0) rotateX(0); }
.app__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.app__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app__bar i:first-child { background: #FF6159; } .app__bar i:nth-child(2) { background: #FFBD2E; } .app__bar i:nth-child(3) { background: #28C941; }
.app__bar span { margin-left: 10px; font-weight: 600; }
.app__body { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.app__side { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; border-right: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.app__side span { padding: 8px 10px; border-radius: 8px; }
.app__side .is-active { background: rgba(30, 111, 217, .1); color: var(--swift); font-weight: 600; }
.app__main { padding: 18px; display: grid; gap: 16px; align-content: start; background: #FAFCFE; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { padding: 12px; border-radius: 12px; color: #fff; display: grid; gap: 2px; }
.tile b { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.tile small { font-size: .72rem; opacity: .92; line-height: 1.2; }
.tile--green { background: #1F9D63; } .tile--violet { background: #6E4BD8; } .tile--amber { background: #E6A019; } .tile--red { background: #D9434A; }
.tile.bump { animation: bump .5s var(--ease); }

.po { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.po__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.po__head strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.po__head small { color: var(--ink-2); font-size: .8rem; }
.po__status { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(110, 75, 216, .12); color: #6E4BD8; transition: background .4s, color .4s; }
.po__status[data-state="Approved"] { background: rgba(31, 157, 99, .14); color: #1F9D63; }
.po__status[data-state="Issued"] { background: rgba(30, 111, 217, .12); color: var(--swift); }
.po__status[data-state="Received"] { background: var(--navy); color: #fff; }
.po__steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 14px; counter-reset: s; }
.po__steps li { position: relative; padding-top: 30px; font-size: .74rem; color: var(--ink-2); text-align: center; }
.po__steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: .72rem; color: var(--ink-2);
  transition: background .4s, border-color .4s, color .4s;
}
.po__steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.po__steps li:first-child::after { display: none; }
.po__steps li.is-done { color: var(--ink); font-weight: 600; }
.po__steps li.is-done::before { background: var(--swift); border-color: var(--swift); color: #fff; content: "✓"; }
.po__steps li.is-done::after { background: linear-gradient(90deg, var(--swift) 100%, var(--line) 0); }
.po__log { display: grid; gap: 6px; font-size: .76rem; color: var(--ink-2); min-height: 92px; align-content: start; }
.po__log span { padding-left: 12px; border-left: 2px solid var(--line); animation: logIn .5s var(--ease); }
.swift__caption { position: relative; z-index: 1; margin-top: 22px; color: var(--ink-2); font-size: var(--step--1); text-align: center; }

.swift__story { margin-top: clamp(70px, 9vw, 120px); padding-top: 40px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); }
.swift__story h3 { font-size: var(--step-2); max-width: 16ch; }
.swift__story p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }

/* ---------- ChatWorks ---------- */
.chat { position: relative; overflow: hidden; padding-block: clamp(90px, 12vw, 160px); background: var(--chat-deep); color: #fff; }
.chat::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; left: 30%; top: 10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(37, 211, 102, .16), transparent 70%);
}
.chat__head { position: relative; max-width: 760px; }
.chat__head .h2 { max-width: 16ch; }
.chat__head > p { margin-top: 22px; color: rgba(255, 255, 255, .75); font-size: var(--step-1); line-height: 1.5; }

.chat__grid { position: relative; margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(30px, 6vw, 100px); align-items: center; }
.chat__tabs { display: grid; gap: 4px; }
.chat__tabs button {
  position: relative; display: grid; gap: 0; text-align: left; cursor: pointer;
  padding: 18px 22px 18px 26px; border: 0; border-radius: 18px; background: transparent;
  transition: background .4s var(--ease);
}
.chat__tabs button::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .18);
}
.chat__tabs button::after {
  content: ""; position: absolute; left: 0; top: 18px; width: 3px; height: 0; border-radius: 3px; background: var(--wa);
}
.chat__tabs button[aria-selected="true"]::after { animation: tabFill var(--dur, 9s) linear forwards; }
.chat__tabs strong { font-family: var(--display); font-size: var(--step-1); color: rgba(255, 255, 255, .6); transition: color .3s; }
.chat__tabs span {
  display: grid; grid-template-rows: 0fr; overflow: hidden; color: rgba(255, 255, 255, .72); max-width: 52ch;
  max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .4s, margin .4s;
}
.chat__tabs button:hover strong { color: #fff; }
.chat__tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .05); }
.chat__tabs button[aria-selected="true"] strong { color: #fff; }
.chat__tabs button[aria-selected="true"] span { max-height: 8em; opacity: 1; margin-top: 8px; }

.phone { justify-self: center; width: 100%; max-width: 330px; }
.phone__frame {
  position: relative; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px;
  background: #0b0f12; box-shadow: 0 0 0 2px #2a3338, 0 50px 90px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px #3a444a;
  display: flex; flex-direction: column; overflow: hidden;
  transform: rotate(2.5deg);
}
.phone__notch { position: absolute; left: 50%; top: 20px; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.phone__top {
  display: flex; align-items: center; gap: 10px; padding: 52px 16px 12px;
  background: #1F2C33; border-radius: 34px 34px 0 0;
}
.phone__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); font-family: var(--display); font-weight: 700; font-size: .8rem; }
.phone__top strong { display: flex; align-items: center; gap: 5px; font-size: .92rem; }
.phone__top strong svg { width: 15px; height: 15px; }
.phone__top strong svg circle { fill: var(--wa); }
.phone__top strong svg path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone__top small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .6); }
.phone__chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 12px; overflow: hidden;
  background-color: #0B141A;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.msg {
  max-width: 82%; padding: 7px 10px 6px; border-radius: 10px; font-size: .82rem; line-height: 1.38;
  animation: msgIn .45s var(--ease) both; transform-origin: bottom left;
}
.msg small { display: block; text-align: right; font-size: .62rem; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.msg--in { align-self: flex-start; background: #202C33; border-top-left-radius: 2px; }
.msg--out { align-self: flex-end; background: #005C4B; border-top-right-radius: 2px; transform-origin: bottom right; }
.msg--out small::after { content: " ✓✓"; color: #53BDEB; }
.msg__btns { display: grid; gap: 1px; margin: 6px -10px -6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.msg__btns span { padding: 8px; text-align: center; color: #53BDEB; font-weight: 600; font-size: .8rem; }
.msg__btns span + span { border-top: 1px solid rgba(255, 255, 255, .08); }
.msg__card { margin: 2px -4px 6px; padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); display: grid; gap: 6px; font-size: .76rem; }
.msg__card b { font-family: var(--display); font-size: .86rem; }
.msg__card em { font-style: normal; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .85); }
.msg__card em i { font-style: normal; color: var(--wa); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 12px; border-radius: 10px; border-top-left-radius: 2px; background: #202C33; animation: msgIn .3s var(--ease) both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.phone__input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; background: #0B141A; border-radius: 0 0 34px 34px; }
.phone__input span { flex: 1; padding: 9px 14px; border-radius: 999px; background: #202C33; color: rgba(255, 255, 255, .45); font-size: .8rem; }
.phone__input i { width: 36px; height: 36px; border-radius: 50%; background: #00A884; }

.chat__steps { position: relative; margin-top: clamp(80px, 10vw, 130px); }
.chat__steps h3 { font-size: var(--step-2); margin-bottom: 28px; }
.chat__steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.chat__steps li { display: grid; gap: 6px; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .2); }
.chat__steps b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--chat-deep); font-family: var(--display); margin-bottom: 10px; }
.chat__steps strong { font-family: var(--display); font-size: var(--step-1); }
.chat__steps span { color: rgba(255, 255, 255, .7); }

.chat__integrations { position: relative; margin-top: clamp(70px, 9vw, 110px); padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--chat-mid); }
.chat__integrations > p { font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
.chat__integrations ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 32px; }
.chat__integrations li { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-weight: 600; font-size: .92rem; transition: background .3s, transform .3s var(--ease); }
.chat__integrations li:hover { background: rgba(37, 211, 102, .2); transform: translateY(-2px); }
.chat__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Integrations ---------- */
.integrations { padding-block: clamp(90px, 12vw, 160px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.integrations__copy p { margin-top: 22px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.weave { position: relative; aspect-ratio: 520 / 300; }
.weave > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.weave__line { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.weave__pulse { fill: var(--navy); }
.weave__node {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: clamp(.72rem, 1.3vw, .95rem); white-space: nowrap;
  box-shadow: 0 1px 0 var(--line), 0 12px 24px -14px rgba(3, 63, 115, .5);
}
.weave__core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(3, 63, 115, .1), 0 0 0 22px rgba(3, 63, 115, .05);
}
.weave__core svg { width: 50%; height: auto; aspect-ratio: 540 / 580; }

/* ---------- Approach ---------- */
.approach { padding-block: clamp(90px, 12vw, 160px); background: var(--white); border-top: 1px solid var(--line); }
.approach__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.approach__head .h2 { max-width: 20ch; }
.approach__head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.steps { position: relative; margin-top: clamp(50px, 7vw, 90px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line);
}
.steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--navy);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .2s linear;
}
.steps li { position: relative; z-index: 1; padding-right: clamp(14px, 2vw, 30px); }
.steps__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 22px;
  transition: background .4s, color .4s;
}
.steps li.is-lit .steps__n { background: var(--navy); color: #fff; }
.steps h3 { font-size: var(--step-2); margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .98rem; }
.mission { margin: clamp(70px, 9vw, 120px) 0 0; padding: 0; }
.mission p {
  font-family: var(--display); font-weight: 600; font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 26ch; color: var(--navy); text-wrap: balance;
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding-block: clamp(90px, 12vw, 160px); background: var(--navy); color: #fff; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact__copy { position: relative; }
.contact__copy p { margin-top: 22px; color: rgba(255, 255, 255, .78); font-size: var(--step-1); line-height: 1.5; max-width: 42ch; }
.contact__mark { width: min(70%, 320px); aspect-ratio: 540 / 580; height: auto; margin-top: 50px; color: rgba(255, 255, 255, .14); }

.form { display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 44px); border-radius: 30px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: .9rem; color: var(--ink-2); padding: 0; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; color: var(--ink); resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(3, 63, 115, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D9434A; background: #FFF6F6; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips-select label { cursor: pointer; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; transition: all .3s var(--ease); }
.chips-select input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips-select input:focus-visible + span { outline: 3px solid var(--banana); outline-offset: 2px; }
.form__note { min-height: 1.5em; font-size: .92rem; font-weight: 600; }
.form__note.is-ok { color: #1F9D63; }
.form__note.is-err { color: #D9434A; }

/* ---------- Footer ---------- */
.footer { padding-top: 44px; background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px 40px; padding-bottom: 32px; }
.footer__brand img { height: 80px; width: auto; margin-left: -6px; mix-blend-mode: multiply; }
.footer__brand p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }
.footer nav { display: grid; gap: 2px; align-content: start; font-size: .95rem; line-height: 1.5; }
.footer__title { font-size: 1rem; margin-bottom: 4px; letter-spacing: 0; }
.footer nav a { color: var(--ink-2); text-decoration: none; width: fit-content; }
.footer nav a:hover { color: var(--navy); }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 16px 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.footer__base a { color: var(--ink-2); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Multi-page components
   ========================================================= */

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--navy); color: rgba(255, 255, 255, .9); pointer-events: none;
  visibility: hidden; transform: translateY(100%);
}
.curtain svg { width: 64px; height: auto; aspect-ratio: 540 / 580; }
.from-nav .curtain { visibility: visible; transform: none; }
.from-nav .is-loaded .curtain { animation: curtainUp .75s var(--ease-io) forwards; }
.is-leaving .curtain { animation: curtainIn .45s var(--ease-io) forwards; }
@keyframes curtainUp { 0% { transform: translateY(0); } 100% { transform: translateY(-100%); visibility: hidden; } }
@keyframes curtainIn { from { transform: translateY(100%); visibility: visible; } to { transform: translateY(0); visibility: visible; } }

/* ---------- Nav current page ---------- */
.nav__links a[aria-current="page"]:not(.btn) { color: var(--navy); background: rgba(3, 63, 115, .08); }
.nav__links a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--navy);
}

/* ---------- Extra buttons ---------- */
.btn--light { --bg: #fff; --fg: var(--navy); --bd: #fff; --fill: var(--banana); }
.btn--light:hover { color: var(--navy-deep); border-color: var(--banana); }
.btn--chat-solid { --bg: var(--chat-deep); --fg: #fff; --bd: var(--chat-deep); --fill: var(--chat); }
.btn--ghost-swift { --fg: var(--swift); --bd: var(--swift); --fill: var(--swift); }
.btn--ghost-chat { --fg: var(--chat-deep); --bd: var(--chat-deep); --fill: var(--chat-deep); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 100px)) 0 clamp(64px, 8vw, 110px);
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -24vmax; top: -18vmax;
  background: radial-gradient(closest-side, rgba(47, 127, 209, .15), transparent 70%);
}
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero .hero__title { font-size: clamp(2.5rem, 0.9rem + 4vw, 4.8rem); }
.page-hero .hero__lede { max-width: 56ch; }
.page-hero .hero__art { width: min(115%, 460px); }
.page-hero__art { position: relative; }

.page-hero--swift { background: var(--white); }
.page-hero--swift .line--blue { color: var(--swift); }
.page-hero--swift .page-hero__grid { grid-template-columns: .95fr 1.05fr; }
.page-hero--swift .swift__demo { margin-right: -2%; }

.page-hero--chat { background: #E9F6F1; }
.page-hero--chat::before { background: radial-gradient(closest-side, rgba(37, 211, 102, .22), transparent 70%); }
.page-hero--chat .line--blue { color: #0B7A63; }
.page-hero--chat .hero__lede { color: #3D5752; }
.product-tag--chat { background: rgba(6, 46, 42, .08); color: var(--chat-deep); }
.product-tag--chat svg { background: var(--wa); stroke: var(--chat-deep); stroke-width: 2.6; }
.page-hero .product-tag { margin-bottom: 22px; }

/* Official Meta Tech Partner banner: the image has transparent margins, so crop to the pill */
.meta-banner { display: block; width: 280px; max-width: 100%; aspect-ratio: 1797 / 301; overflow: hidden; border-radius: 999px; }
.meta-banner img { display: block; width: 111.3%; max-width: none; height: auto; margin: -10.18% 0 0 -5.68%; }
.meta-banner--hero { margin-bottom: 10px; box-shadow: 0 14px 34px -18px rgba(6, 46, 42, .5); }
.meta-banner--card { width: 240px; margin: -8px 0 28px; }

/* Floating chat bubbles */
.bubbles { display: grid; gap: 12px; justify-items: start; max-width: 420px; justify-self: center; width: 100%; padding: 20px 0; }
.bubble {
  max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 1rem; line-height: 1.45;
  box-shadow: 0 16px 34px -18px rgba(6, 46, 42, .45);
  opacity: 0; transform: translateY(16px) scale(.94);
}
.is-loaded .bubble { animation: pop .7s var(--ease) forwards, float 7s ease-in-out infinite; animation-delay: calc(.7s + var(--i) * .55s), calc(2.5s + var(--i) * .7s); }
.bubble--in { background: #fff; color: var(--ink); border-top-left-radius: 4px; transform-origin: 0 100%; }
.bubble--out { justify-self: end; background: #D3F8C9; color: #133B2F; border-top-right-radius: 4px; transform-origin: 100% 100%; }
.bubble__btns { display: flex; gap: 8px; margin-top: 10px; }
.bubble__btns em { font-style: normal; padding: 6px 12px; border-radius: 999px; background: #E9F6F1; color: #0B7A63; font-weight: 700; font-size: .85rem; }

/* ---------- ChatWorks brand icon (white on transparent) ---------- */
.cw-icon { display: inline-block; flex-shrink: 0; width: 1em; height: 1em; object-fit: contain; }
.product-tag__badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0B7A63; }
.product-tag__badge .cw-icon { width: 18px; height: 18px; }
.stack__name .cw-icon { width: 1.35em; height: 1.35em; margin-right: 8px; vertical-align: -0.3em; }
.chat__watermark { position: absolute; right: -6%; top: 60px; width: min(46vw, 620px); height: min(46vw, 620px); opacity: .05; pointer-events: none; }

/* ---------- Home: product stack ---------- */
.products { padding-block: clamp(30px, 4vw, 60px) clamp(90px, 11vw, 150px); }
.products__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.products__head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.stack { display: grid; gap: clamp(24px, 4vw, 40px); }
.stack__card {
  position: sticky; top: calc(var(--nav-h) + 16px + var(--i) * 18px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  min-height: min(560px, calc(100svh - var(--nav-h) - 80px));
  padding: clamp(28px, 4.5vw, 64px); border-radius: clamp(24px, 3vw, 40px); overflow: hidden;
  color: #fff; transform-origin: 50% 0;
  box-shadow: 0 -20px 50px -30px rgba(3, 42, 77, .45);
  will-change: transform;
}
.stack__card--syspro { background: var(--navy-deep); }
.stack__card--swift { background: linear-gradient(135deg, #1E6FD9, #0B4FA8); }
.stack__card--chat { background: var(--chat-deep); }
.stack__name { display: inline-block; margin-bottom: 18px; font-family: var(--display); font-weight: 700; color: var(--banana); }
.stack__card--chat .stack__name { color: var(--wa); }
.stack__card--swift .stack__name { color: #fff; opacity: .8; }
.stack__card h3 { font-size: var(--step-3); max-width: 15ch; }
.stack__card p { margin-top: 16px; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.stack__list { margin: 22px 0 30px; display: grid; gap: 8px; }
.stack__list li { position: relative; padding-left: 26px; font-weight: 500; }
.stack__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid currentColor; opacity: .7; }
.stack__card--chat .btn--light { --fill: var(--wa); }
.stack__art { position: relative; height: 100%; min-height: 300px; display: grid; place-items: center; }

.mini-hub > svg { width: 34%; height: auto; aspect-ratio: 540 / 580; color: #fff; }
.mini-hub::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .2); animation: spin 40s linear infinite; }
.mini-hub span {
  position: absolute; left: 50%; top: 50%;
  --r: clamp(120px, 15vw, 190px);
  transform: translate(-50%, -50%) rotate(calc(var(--a) * 60deg - 90deg)) translateX(var(--r)) rotate(calc(var(--a) * -60deg + 90deg));
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--display); font-weight: 700; font-size: .82rem;
}
.mini-hub span:first-of-type { background: var(--banana); color: var(--navy-deep); border-color: var(--banana); }

.mini-po { gap: 14px; align-content: center; width: 100%; max-width: 380px; justify-self: center; }
.mini-po__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.mini-po__tiles b { display: grid; padding: 14px; border-radius: 14px; font-family: var(--display); font-size: 1.8rem; line-height: 1; background: rgba(255, 255, 255, .14); }
.mini-po__tiles b:first-child { background: #1F9D63; } .mini-po__tiles b:nth-child(2) { background: #6E4BD8; } .mini-po__tiles b:nth-child(3) { background: #E6A019; }
.mini-po__tiles small { font-family: var(--body); font-weight: 500; font-size: .74rem; margin-top: 6px; opacity: .9; }
.mini-po__card { width: 100%; padding: 18px; border-radius: 16px; background: #fff; color: var(--ink); display: grid; gap: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.mini-po__card strong { font-family: var(--display); }
.mini-po__card small { color: var(--ink-2); }
.mini-po__bar { height: 8px; border-radius: 8px; background: var(--mist); overflow: hidden; }
.mini-po__bar i { display: block; height: 100%; width: 75%; border-radius: inherit; background: var(--swift); animation: barGrow 3.5s var(--ease) infinite; }
@keyframes barGrow { 0% { width: 8%; } 60%, 100% { width: 75%; } }

.mini-chat { gap: 10px; align-content: center; justify-items: start; width: 100%; max-width: 360px; justify-self: center; }
.mini-chat span { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.4; background: #202C33; border-top-left-radius: 3px; }
.mini-chat .out { justify-self: end; background: #005C4B; border-radius: 14px; border-top-right-radius: 3px; }
.mini-chat em { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-style: normal; color: #53BDEB; font-weight: 600; }

.home-mission { padding-block: clamp(70px, 9vw, 130px); background: var(--white); border-top: 1px solid var(--line); }
.home-mission .mission { margin: 0; }
.home-mission__sub { margin-top: 26px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 56ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(80px, 10vw, 140px); }
.cta-band__inner { position: relative; }
.cta-band .h2 { max-width: 20ch; position: relative; }
.cta-band__actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta-band__mark { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: min(34%, 360px); height: auto; aspect-ratio: 540 / 580; color: rgba(255, 255, 255, .1); }
.cta-band .btn--ghost-light:hover { color: var(--navy); }

/* ---------- SYSPRO page ---------- */
.facts-band { background: var(--white); border-block: 1px solid var(--line); }
.facts-band__inner { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; }
.facts-band__inner div { padding: clamp(26px, 3.5vw, 44px) clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.facts-band__inner div:first-child { border-left: 0; padding-left: 0; }
.facts-band dt { font-family: var(--display); font-weight: 700; font-size: var(--step-4); line-height: 1; color: var(--navy); letter-spacing: -0.03em; }
.facts-band dd { margin: 10px 0 0; color: var(--ink-2); max-width: 24ch; }

.modules { padding-block: clamp(90px, 11vw, 150px); }
.modules__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.modules__head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.modules__group { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(20px, 4vw, 60px); padding-block: 34px; border-top: 2px solid var(--ink); }
.modules__group h3 { font-size: var(--step-2); color: var(--navy); position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.modules__group ul { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.modules__group li strong { display: block; font-family: var(--display); font-size: var(--step-1); margin-bottom: 6px; }
.modules__group li p { color: var(--ink-2); }

.crosslink { padding-block: clamp(70px, 9vw, 120px); }

/* Services page: hero, pillars and integrations share one background, so don't stack full section padding between them */
.page-hero + .services { padding-top: clamp(16px, 2vw, 32px); }
.services + .integrations { padding-top: 0; }
.page-hero + .services, .services:has(+ .integrations), .services:has(+ .products) { padding-bottom: clamp(60px, 7vw, 100px); }
.crosslink__card {
  display: grid; gap: 14px; padding: clamp(30px, 5vw, 64px); border-radius: 36px; text-decoration: none;
  background: linear-gradient(135deg, #1E6FD9, #0B4FA8); color: #fff;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.crosslink__card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(11, 79, 168, .8); }
.crosslink__card span { opacity: .8; font-weight: 600; }
.crosslink__card strong { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; max-width: 22ch; letter-spacing: -0.02em; }
.crosslink__card em { font-style: normal; font-family: var(--display); font-weight: 700; margin-top: 12px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Swift page ---------- */
.swift-why { padding-block: clamp(90px, 11vw, 150px); }
.swift-why__lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.swift-why__lead .h2 { max-width: 16ch; }
.swift-why__lead p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.flow { position: relative; margin-top: clamp(50px, 7vw, 90px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.flow li { position: relative; padding: 28px 24px 30px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(14px, 2vw, 24px)); width: clamp(14px, 2vw, 24px); height: 2px; background: var(--swift);
}
.flow__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--swift); color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 18px; }
.flow strong { display: block; font-family: var(--display); font-size: var(--step-1); margin-bottom: 6px; }
.flow p { color: var(--ink-2); font-size: .97rem; }

.features { background: var(--navy-deep); color: #fff; padding-block: clamp(90px, 11vw, 150px); }
.features__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.features__head p { color: rgba(255, 255, 255, .75); font-size: var(--step-1); line-height: 1.5; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); }
.features__grid li { padding: 30px 26px 34px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.features__grid li::before {
  content: ""; display: block; width: 26px; height: 26px; margin-bottom: 18px; border-radius: 50%;
  background: var(--swift) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.features__grid h3 { font-size: var(--step-1); margin-bottom: 8px; }
.features__grid p { color: rgba(255, 255, 255, .7); font-size: .97rem; }
.swift--story { padding-block: clamp(30px, 4vw, 50px) clamp(90px, 11vw, 140px); }

/* ---------- ChatWorks page ---------- */
.problem { padding-block: clamp(90px, 11vw, 150px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.problem__lead p { margin-top: 22px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.fixes { display: grid; gap: 12px; }
.fixes li {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.25;
  transition: transform .4s var(--ease), border-color .3s;
}
.fixes li:hover { transform: translateX(6px); border-color: var(--chat); }
.fixes svg { flex-shrink: 0; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--wa); fill: none; stroke: var(--chat-deep); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

.grow { padding-block: clamp(90px, 11vw, 150px); }
.grow__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.grow__head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.grow__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 40px); }
.grow__list li { padding: 28px 0 34px; border-top: 2px solid var(--ink); }
.grow__list li:nth-child(n + 4) { border-top-width: 1px; border-top-color: var(--line); }
.grow__list h3 { font-size: var(--step-1); margin-bottom: 8px; color: #0B7A63; }
.grow__list p { color: var(--ink-2); }

/* ---------- Contact page ---------- */
.contact--page { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 100px)); min-height: 100svh; }
.contact__title { font-size: var(--step-4); max-width: 12ch; line-height: 1; letter-spacing: -0.035em; }
.next { margin-top: 44px; display: grid; gap: 22px; }
.next li { display: flex; gap: 16px; align-items: flex-start; }
.next b { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .3); font-family: var(--display); }
.next span { color: rgba(255, 255, 255, .72); }
.next strong { display: block; color: #fff; font-family: var(--display); font-size: var(--step-1); }
.page-contact .footer { border-top: 1px solid var(--line); }
/* The contact page opens on navy, so its header is always solid */
.page-contact .nav { background: rgba(244, 247, 251, .94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 920px) {
  .page-hero__grid, .page-hero--swift .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero .hero__art { order: -1; width: min(52%, 210px); justify-self: center; margin: 0; }
  .page-hero__grid { gap: 24px; }
  .page-hero { padding-top: calc(var(--nav-h) + 28px); }
  .page-hero__art { margin-top: 20px; }
  .products__head, .modules__head, .modules__group, .swift-why__lead, .features__head, .problem, .grow__head { grid-template-columns: 1fr; }
  .modules__group h3 { position: static; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; position: relative; top: auto; }
  .stack__art { min-height: 260px; }
  .grow__list { grid-template-columns: 1fr 1fr; }
  .grow__list li:nth-child(n + 3) { border-top-width: 1px; border-top-color: var(--line); }
  .cta-band__mark { opacity: .5; }
}

@media (max-width: 640px) {
  .chips { display: none; }
  .facts-band__inner { grid-template-columns: 1fr; }
  .facts-band__inner div { border-left: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .facts-band__inner div:first-child { border-top: 0; }
  .modules__group ul { grid-template-columns: 1fr; }
  .flow, .features__grid, .grow__list { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .grow__list li { border-top-width: 1px !important; border-top-color: var(--line) !important; }
  .grow__list li:first-child { border-top: 2px solid var(--ink) !important; }
  .mini-hub span { font-size: .72rem; padding: 6px 10px; --r: 112px; }
  .cta-band__mark { display: none; }
  .bubble { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .bubble { opacity: 1 !important; transform: none !important; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; align-items: center; }
.notfound .wrap { position: relative; }
.notfound__mark { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: min(34vw, 400px); height: auto; aspect-ratio: 540 / 580; color: var(--navy); opacity: .08; animation: spin 60s linear infinite; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; }
.notfound__links a { font-family: var(--display); font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- Keyframes ---------- */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(19, 168, 137, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(19, 168, 137, 0); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bump { 40% { transform: scale(1.08); } }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes tabFill { to { height: calc(100% - 36px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hub { grid-template-columns: 1fr; }
  .hub__panel { max-width: 640px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 920px) {
  :root { --nav-h: 76px; }
  .nav__toggle { display: block; }
  /* Absolute to the fixed header (not fixed): the header's blur would otherwise shrink a fixed panel to the header's height */
  .nav__links {
    position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--nav-h) + 28px) var(--gutter) 40px; background: var(--paper); overflow-y: auto;
    clip-path: circle(0 at calc(100% - 46px) 34px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 46px) 34px); visibility: visible; transition: clip-path .7s var(--ease); }
  .nav.is-open { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; transform: none; }
  .nav__links a:not(.btn) { font-family: var(--display); font-size: 1.75rem; font-weight: 700; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; }
  .nav__links a[aria-current="page"]:not(.btn) { color: var(--navy); }
  .nav__links a[aria-current="page"]:not(.btn)::after { left: auto; right: 4px; bottom: 50%; margin: 0 0 -4px; width: 8px; height: 8px; }
  .nav__cta { margin: 24px 0 0; min-height: 56px; font-size: 1.05rem; }
  .nav__brand { position: relative; z-index: 2; }
  .nav__brand img { height: 48px; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 30px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(58%, 230px); justify-self: center; margin: 0 0 4px; }
  .hero__grid { gap: 20px; }
  .hero__scroll { display: none; }
  .chips li { font-size: .78rem; padding: 7px 12px; }
  .chips li:nth-child(2), .chips li:nth-child(3), .chips li:nth-child(5) { margin-left: -22%; }
  .chips li:nth-child(1), .chips li:nth-child(4) { margin-left: 6%; }

  .services__intro, .syspro__head, .approach__head, .integrations, .swift__grid, .swift__story, .contact__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { border-left: 0; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
  .chat__grid { grid-template-columns: 1fr; }
  .phone { order: -1; max-width: 320px; }
  .contact__mark { display: none; }
  .swift__demo { margin-top: 20px; }
  .weave { max-width: 560px; }
}

@media (max-width: 640px) {
  .hero__facts { grid-template-columns: 1fr 1fr 1fr; }
  .hero__facts div { padding: 0 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .checks { grid-template-columns: 1fr; }
  .chat__steps ol { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hub__stage { aspect-ratio: auto; }
  .hub__lines, .hub__core { display: none; }
  .hub__nodes { display: flex; flex-wrap: wrap; gap: 8px; }
  .hub__nodes button { position: static; translate: none; max-width: none; }
  .swift__demo::before { inset: 8% -6% 12% 6%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__title .line__in, .reveal-load, .js .reveal, .chips li { transform: none !important; opacity: 1 !important; }
  .hero__mark .draw { stroke-dashoffset: 0 !important; }
  .marquee__track { animation: none; }
}
