/* =========================================================
   Instio — design tokens
   ========================================================= */
:root {
  --blue: #2563ff;
  --blue-600: #1d4fe0;
  --teal: #1fa3b8;
  --green: #22c55e;
  --ink: #0b1633;
  --ink-2: #33415c;
  --muted: #64748b;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--teal) 55%, var(--green) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 51, .06), 0 2px 8px rgba(11, 22, 51, .04);
  --shadow: 0 10px 30px -10px rgba(20, 45, 120, .18), 0 2px 6px rgba(11, 22, 51, .05);
  --shadow-lg: 0 30px 60px -20px rgba(20, 45, 120, .30);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1220px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(37, 99, 255, .45); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico--sm { width: 16px; height: 16px; }
.ico--xl { width: 52px; height: 52px; stroke-width: 1.4; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text--light { background-image: linear-gradient(100deg, #7fb0ff, #6ee7e7, #86efac, #7fb0ff); }
@keyframes shimmer { to { background-position: 200% center; } }

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn--lg { --pad-y: 15px; --pad-x: 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--blue), #3b82f6 60%, var(--teal));
  box-shadow: 0 8px 24px -8px rgba(37, 99, 255, .6);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(37, 99, 255, .7); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--outline { color: var(--blue); border: 1.5px solid rgba(37,99,255,.35); }
.btn--outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--soft { color: var(--blue); background: rgba(37,99,255,.08); }
.btn--soft:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 15px; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.kicker--light { color: #8ab4ff; }
.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.lead { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 620px; }

/* =========================================================
   Scroll progress / header
   ========================================================= */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(228,233,242,.55);
  transition: border-color .35s, box-shadow .35s, background .35s;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(11,22,51,.12);
  background: rgba(255,255,255,.88);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 8px; }
.brand__mark { width: 40px; height: auto; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(120deg) scale(1.05); }
.brand__word { width: 92px; height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--blue); background: rgba(37,99,255,.07); }
.nav__link .ico { transition: transform .25s var(--ease); }
.has-menu:hover > .nav__link .ico, .has-menu.is-open > .nav__link .ico { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 540px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mega--sm { width: 480px; }
.has-menu:hover .mega, .has-menu.is-open .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .2s; }
.mega__item:hover { background: var(--bg-soft); }
.mega__item b { display: block; font-size: 14px; }
.mega__item small { color: var(--muted); font-size: 13px; }
.mega__ico {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 10px; color: var(--blue); background: rgba(37,99,255,.08);
  transition: background .2s, color .2s;
}
.mega__item:hover .mega__ico { background: var(--blue); color: #fff; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; border: 1px solid var(--line); }

.mobile-nav {
  position: absolute; top: var(--header-h); inset-inline: 0;
  display: grid; gap: 4px; padding: 16px 20px 24px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 12px 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; margin-top: calc(var(--header-h) * -1); padding-top: calc(72px + var(--header-h)); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 560px; height: 560px; background: #c7d8ff; top: -220px; left: -120px; }
.blob--2 { width: 460px; height: 460px; background: #c5f5e0; bottom: -180px; right: 10%; animation-delay: -6s; }
.blob--3 { width: 380px; height: 380px; background: #cdeefe; top: 10%; right: -120px; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  background: rgba(37,99,255,.08); border: 1px solid rgba(37,99,255,.15);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(34,197,94,.45); }
@keyframes ping { to { transform: scale(3); opacity: 0; } }

.hero__title { font-size: clamp(34px, 4.1vw, 54px); font-weight: 800; margin: 22px 0 22px; letter-spacing: -.035em; line-height: 1.08; max-width: 620px; text-wrap: balance; }
.hero__title .line { display: inline; }
.hero__title .word { display: inline-block; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero__lead { color: var(--ink-2); font-size: 18px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.hero__chips li .ico { color: var(--blue); }
.hero__chips li:hover { transform: translateY(-2px); border-color: rgba(37,99,255,.4); color: var(--blue); }

/* Hero visual */
.hero__visual { position: relative; min-height: 480px; display: grid; place-items: center; perspective: 1200px; }
.orbit { position: absolute; inset: -30px; display: grid; place-items: center; pointer-events: none; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(37,99,255,.22); }
.orbit__ring--1 { width: 110%; aspect-ratio: 1.6; }
.orbit__ring--2 { width: 90%; aspect-ratio: 1.3; border-color: rgba(34,197,94,.25); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { translate: 0 -14px; } }
@keyframes turn { to { rotate: 360deg; } }

.hero__art {
  position: relative; width: 100%; max-width: 600px; aspect-ratio: 1;
  transform-style: preserve-3d;
}
.hero__art::before {
  content: ""; position: absolute; inset: 18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(37,99,255,.22), rgba(31,163,184,.12) 45%, transparent 70%);
  filter: blur(30px);
}
.hero__stage { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.hero__scene {
  width: 100%; height: 100%; object-fit: contain;
  opacity: .72; filter: saturate(.88) contrast(.96);
  transform: perspective(900px) rotateX(8deg) scale(.96);
  transform-origin: center 55%;
}
.hero__molecule {
  position: absolute; inset: 4%; width: 92%; height: 92%;
  pointer-events: none; z-index: 1;
}
@keyframes artIn { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; } }
@keyframes glow { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes fadeIn { to { opacity: 1; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  font-size: 13px; z-index: 2;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card--a { left: -10px; bottom: 30px; animation-delay: 1.4s, 2.2s; }
.float-card--b { right: -10px; top: 22%; animation-delay: 1.7s, 3s; }
.float-card__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
@keyframes popIn { from { opacity: 0; transform: scale(.8) translateY(10px); } to { opacity: 1; transform: none; } }
.g1 { background: linear-gradient(135deg, #2563ff, #1fa3b8); }
.g2 { background: linear-gradient(135deg, #1fa3b8, #22c55e); }
.g3 { background: linear-gradient(135deg, #6366f1, #2563ff); }
.g4 { background: linear-gradient(135deg, #8b5cf6, #2563ff); }

.scribble {
  position: absolute; top: -40px; left: 0; z-index: 3;
  font-family: "Caveat", cursive; font-size: 22px; line-height: 1.05; color: var(--blue); transform: rotate(-6deg);
}
.scribble span { color: var(--green); }
.scribble svg { width: 60px; position: absolute; left: 100%; top: 34px; margin-left: 6px; transform: scaleX(-1) rotate(-35deg); color: var(--blue); }

/* =========================================================
   Trusted marquee
   ========================================================= */
.trusted { padding: 28px 0 40px; border-block: 1px solid var(--line); background: #fbfcff; }
.trusted__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.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; gap: 72px; width: max-content; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-txt { font-size: 26px; font-weight: 700; color: #8a94a8; white-space: nowrap; transition: color .3s; filter: grayscale(1); }
.logo-txt:hover { color: var(--ink); }
.logo-txt.serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.logo-txt.wide { letter-spacing: .28em; font-weight: 600; }
.logo-txt.heavy { font-weight: 800; letter-spacing: -.02em; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 100px 0; position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.section__head--center { justify-content: center; text-align: center; }

/* Challenge */
.challenge__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.challenge__copy .btn { margin-top: 28px; }
.challenge__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.mini-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(37,99,255,.10), transparent 60%);
}
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(37,99,255,.3); }
.mini-card:hover::before { opacity: 1; }
.mini-card__ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--blue); background: rgba(37,99,255,.08);
  transition: background .35s, color .35s, transform .5s var(--ease);
}
.mini-card:hover .mini-card__ico { background: var(--grad); color: #fff; transform: rotate(-8deg) scale(1.08); }
.mini-card h3 { font-size: 15.5px; font-weight: 700; position: relative; }
.mini-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; position: relative; }

/* Services */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.svc {
  display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc__art { position: relative; height: 170px; overflow: hidden; background: var(--bg-soft); }
.svc__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc:hover .svc__art img { transform: scale(1.07); }
.art--blue { background: linear-gradient(135deg, #1e40af, #2563ff 60%, #60a5fa); }
.art--teal { background: linear-gradient(135deg, #0e7490, #1fa3b8 60%, #67e8f9); }
.art--violet { background: linear-gradient(135deg, #4338ca, #6366f1 60%, #a5b4fc); }
.art--green { background: linear-gradient(135deg, #15803d, #22c55e 60%, #86efac); }
.art--sky { background: linear-gradient(135deg, #0369a1, #0ea5e9 60%, #7dd3fc); }
.art-pattern {
  position: absolute; inset: -50%;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
}
.art-pattern::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.35), transparent 40%);
}
@keyframes drift { to { transform: translate(18px, 18px); } }
.svc__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc__body h3 { font-size: 17px; font-weight: 700; }
.svc__body p { font-size: 14px; color: var(--muted); flex: 1; }
.svc__body .link-arrow { margin-top: 8px; font-size: 14px; }

/* Products */
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 24px;
  background: linear-gradient(180deg, #f7f8ff, #f3f6ff); border: 1px solid #e7ebf8; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod__head { display: flex; align-items: center; gap: 12px; }
.prod__head h3 { font-size: 20px; font-weight: 800; }
.prod__head small { color: var(--blue); font-weight: 600; font-size: 13px; }
.prod__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.prod__ico--pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.prod__ico--green { background: linear-gradient(135deg, #34d399, #059669); }
.prod__ico--violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.prod > p { font-size: 14.5px; color: var(--muted); min-height: 46px; }
.prod .link-arrow { margin-top: auto; }
.prod__shot { width: 100%; height: 210px; object-fit: cover; border-radius: 16px; background: #fff; }

.mock-ops__row { display: grid; grid-template-columns: 100px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 12px; }
.mock-ops__row span { color: var(--ink-2); }
.mock-ops__row b { text-align: right; font-size: 12.5px; }
.bar { height: 8px; border-radius: 999px; background: #e3e9f6; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.4s var(--ease); }
.is-visible .bar i { width: var(--w); }
.mock-ops__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mock-ops__tags span { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

.mock-chat { display: grid; place-items: center; padding: 12px; }
.phone { width: 100%; max-width: 250px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(100deg, var(--teal), var(--green)); }
.phone__bar em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 11px; opacity: .85; }
.avatar-sm { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.3); font-size: 11px; }
.phone__msgs { display: grid; gap: 6px; padding: 10px; min-height: 150px; align-content: end; }
.msg { font-size: 12px; line-height: 1.4; padding: 7px 10px; border-radius: 12px; max-width: 85%; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg.in { background: var(--bg-soft); border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--blue); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }

.mock-health { color: var(--blue); }
.ecg { width: 100%; height: 70px; }
.ecg path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.mock-health__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mock-health__stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.mock-health__stats small { display: block; font-size: 11px; color: var(--muted); }
.mock-health__stats b { font-size: 18px; color: var(--ink); }

/* Agents */
.agents {
  margin-top: 28px; display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center;
  padding: 28px; border-radius: 22px; background: linear-gradient(120deg, #f4f1ff, #eef4ff 50%, #ecfdf5); border: 1px solid var(--line);
}
.agents__copy h3 { font-size: 22px; font-weight: 800; margin: 14px 0 8px; }
.agents__copy p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.agents__copy p b { color: var(--ink); }
.agents__list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.agent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; cursor: default; }
.agent__av {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  font-size: 22px; font-weight: 800; color: #fff; position: relative; overflow: visible;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 20px -8px rgba(37, 99, 255, .55);
  transition: transform .4s var(--ease);
}
.agent__av img {
  width: 100%; height: 100%; border-radius: inherit; object-fit: cover;
  border: 2px solid rgba(255,255,255,.9);
}
.agent__av::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2.5px solid #fff; }
.agent:hover .agent__av { transform: translateY(-6px) scale(1.06); }
.agent b { font-size: 14px; }
.agent small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.agent--add .agent__av { background: #fff; color: var(--blue); border: 2px dashed rgba(37,99,255,.4); box-shadow: none; }
.agent--add .agent__av::after { display: none; }
.agent--add { cursor: pointer; }

/* Industries */
.industries { background: var(--bg-soft); }
.ind__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind {
  --h1: 215; --h2: 190;
  position: relative; overflow: hidden; min-height: 200px; padding: 22px; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ind::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(165deg, hsl(var(--h1) 78% 38% / .42), hsl(var(--h2) 70% 18% / .5)),
    linear-gradient(180deg, rgba(5,12,35,.05) 35%, rgba(5,12,35,.72));
  transition: opacity .4s var(--ease);
}
.ind:hover::before { opacity: .78; }
.ind h3, .ind p { position: relative; z-index: 1; }
.ind__ico, .ind__go { z-index: 2; }
.ind:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px hsl(var(--h1) 70% 30% / .7); }
.ind__ico { position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; stroke-width: 1.2; opacity: .4; transition: transform .6s var(--ease), opacity .4s; }
.ind:hover .ind__ico { transform: scale(1.25) rotate(-8deg); opacity: .75; }
.ind h3 { font-size: 16px; font-weight: 700; }
.ind p { font-size: 13px; opacity: .85; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), margin .4s; }
.ind:hover p, .ind:focus-visible p { max-height: 60px; margin-top: 6px; }
.ind__go {
  position: absolute; top: 18px; left: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.2); backdrop-filter: blur(6px);
  transform: scale(0); transition: transform .35s var(--ease);
}
.ind:hover .ind__go { transform: scale(1); }

/* Engagement */
.engage__wrap { max-width: 1040px; margin-inline: auto; }
.engage__tabs {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px;
  border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line);
}
.engage__tab {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; border-radius: 13px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: color .3s;
}
.engage__tab .ico { width: 18px; height: 18px; }
.engage__tab.is-active { color: #fff; }
.engage__indicator {
  position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 13px;
  background: linear-gradient(100deg, var(--blue), var(--teal));
  box-shadow: 0 8px 20px -8px rgba(37,99,255,.7);
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.engage__panels { position: relative; margin-top: 22px; min-height: 240px; }
.engage__panel {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center;
  padding: 36px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.engage__panel.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.engage__panel h3 { font-size: 24px; font-weight: 800; }
.engage__panel p { color: var(--muted); margin-top: 10px; max-width: 560px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.checks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad);
}
.checks li { position: relative; }
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 50%; width: 8px; height: 4px; margin-top: -3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.engage__stat {
  display: grid; place-content: center; gap: 10px; text-align: center; aspect-ratio: 1; border-radius: 22px; padding: 20px;
  background: radial-gradient(circle at 30% 20%, #eaf1ff, #f1fdf6);
  border: 1px solid var(--line);
}
.engage__stat b { font-size: 44px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.engage__stat small { color: var(--muted); font-weight: 600; }

/* Impact */
.impact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.stat { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--muted); font-weight: 500; font-size: 14px; }

.case {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 380px; display: flex; align-items: flex-end;
  background-color: #0b1633; background-position: center right; background-size: cover; background-repeat: no-repeat; color: #fff;
  box-shadow: var(--shadow-lg);
}
.case__bg { position: absolute; inset: 0; }
.case__bg span {
  position: absolute; bottom: 0; width: 14%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(96,165,250,.55), rgba(34,197,94,.08));
}
.case__bg span:nth-child(1) { left: 6%; height: 34%; animation-delay: 0s; }
.case__bg span:nth-child(2) { left: 22%; height: 52%; animation-delay: .3s; }
.case__bg span:nth-child(3) { left: 38%; height: 44%; animation-delay: .6s; }
.case__bg span:nth-child(4) { left: 54%; height: 66%; animation-delay: .9s; }
.case__bg span:nth-child(5) { left: 70%; height: 58%; animation-delay: 1.2s; }
.case__bg span:nth-child(6) { left: 86%; height: 80%; animation-delay: 1.5s; }
@keyframes grow { from { transform: scaleY(.6); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,14,36,.86) 0%, rgba(6,14,36,.62) 46%, rgba(6,14,36,.18) 100%); }
.case__content { position: relative; z-index: 1; padding: 32px; display: grid; gap: 14px; justify-items: start; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.case__brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #86efac; }
.case h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; max-width: 460px; }

/* CTA */
.cta { padding-top: 40px; }
.cta__box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center;
  padding: 56px; border-radius: 30px; color: #fff;
  background: linear-gradient(135deg, #0b1633 0%, #102a63 60%, #0c4a5a 100%);
}
.cta__glow {
  position: absolute; z-index: -1; width: 600px; height: 600px; border-radius: 50%; top: -260px; left: -160px;
  background: radial-gradient(circle, rgba(37,99,255,.55), transparent 60%);
}
.cta__glow::after {
  content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; left: 700px; top: 420px;
  background: radial-gradient(circle, rgba(34,197,94,.35), transparent 60%);
}
.cta__copy p { color: #c3cfe8; margin-top: 16px; max-width: 520px; font-size: 17px; }
.cta__list { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 28px; margin-top: 28px; }
.cta__list li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cta__list .ico { color: #86efac; }

.form { position: relative; padding: 28px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); display: grid; gap: 14px; }
.form h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 20px 14px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcff;
  font: inherit; font-size: 15px; color: var(--ink); resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,255,.12); }
.field label { position: absolute; left: 15px; top: 14px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 11.5px; color: var(--blue); font-weight: 600; }
.field.is-invalid input { border-color: #ef4444; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.pills { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); transition: all .2s var(--ease); }
.pills label:hover span { border-color: rgba(37,99,255,.4); }
.pills input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid rgba(37,99,255,.4); outline-offset: 2px; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: #070e22; color: #a8b3cc; padding: 80px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: 40px; }
.footer__logo { width: 130px; height: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 260px; font-size: 14px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: background .25s, color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer__col { display: grid; align-content: start; gap: 10px; font-size: 14px; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 6px; }
.footer__col a { transition: color .2s, transform .2s; width: fit-content; }
.footer__col a:hover { color: #fff; transform: translateX(3px); }
.news { display: flex; margin-top: 6px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.news input { flex: 1; min-width: 0; padding: 12px 14px; background: transparent; border: 0; color: #fff; font: inherit; font-size: 14px; }
.news input:focus { outline: none; }
.news button { width: 46px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.footer__bottom a:hover { color: #fff; }

/* Utilities: back-to-top, toast */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 12px 24px -8px rgba(37,99,255,.6);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; padding: 14px 20px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: all .4s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Scroll reveal */
.reveal { opacity: 1; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .ind__grid { grid-template-columns: repeat(4, 1fr); }
  .agents { grid-template-columns: 1fr; }
  .agents__list { grid-template-columns: repeat(8, minmax(70px, 1fr)); }
  .footer__inner { grid-template-columns: repeat(3, 1fr); }
  .footer__brand, .footer__news { grid-column: span 3; }
  .footer__news { grid-column: span 3; max-width: 420px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
  .hero__inner, .challenge__inner, .impact__inner, .cta__box { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 30px; }
  .products__grid { grid-template-columns: 1fr 1fr; }
  .engage__tabs { grid-template-columns: repeat(5, max-content); overflow-x: auto; scrollbar-width: none; }
  .engage__tabs::-webkit-scrollbar { display: none; }
  .cta__box { padding: 40px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--container)); }
  .ship-hero__inner { width: min(100% - 32px, var(--container)); }
  .section { padding: 72px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section__head .lead { max-width: none; }
  .challenge__grid { grid-template-columns: 1fr 1fr; }
  .services__grid, .products__grid { grid-template-columns: 1fr; }
  .ind__grid { grid-template-columns: 1fr 1fr; }
  .ind p { max-height: 60px; margin-top: 6px; }
  .agents__list { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .engage__panel { grid-template-columns: 1fr; padding: 26px; }
  .engage__stat { aspect-ratio: auto; padding: 24px; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
  .scribble { display: none; }
  .cta__box { padding: 28px 20px; border-radius: 24px; }
  .cta__list { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; white-space: normal; text-align: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: span 2; }
  .header .btn--primary { display: none; }
  .header__inner { gap: 16px; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 24px, var(--container)); }
  .ship-hero__inner { width: min(100% - 24px, var(--container)); }
  .challenge__grid, .ind__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; }
  .float-card { display: none; }
  .terminal-eco__card { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand, .footer__news { grid-column: 1; max-width: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand__word { width: 80px; }
}

/* =========================================================
   Shipping & Logistics page
   ========================================================= */
.nav__link--active { color: var(--blue); font-weight: 700; }

.ship-hero {
  position: relative; min-height: clamp(520px, 72vh, 680px);
  display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 72px;
  margin-top: calc(var(--header-h) * -1); color: #fff; overflow: hidden;
}
.ship-hero__media { position: absolute; inset: 0; z-index: -2; }
.ship-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.ship-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7, 14, 34, .88) 0%, rgba(7, 14, 34, .52) 42%, rgba(7, 14, 34, .22) 68%, rgba(7, 14, 34, .35) 100%);
}
.ship-hero__inner {
  position: relative; z-index: 1;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  max-width: none;
}
.ship-hero__copy { max-width: min(640px, 58vw); }
.ship-hero__title { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-top: 16px; max-width: 640px; }
.ship-hero__title-line { display: block; color: #fff; }
.ship-hero__title-accent { display: block; margin-top: 6px; }
.ship-hero__lead { font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .82); max-width: 560px; margin-top: 22px; }
.ship-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ship-hero__ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.ship-hero__ghost:hover { color: var(--ink); background: #fff; border-color: #fff; }

.ship-hero__badges {
  position: absolute; z-index: 2;
  top: calc(var(--header-h) + 28px); right: clamp(12px, 4vw, 48px);
  width: min(520px, 48vw); height: min(380px, 52vh);
  pointer-events: none;
}
.ship-hero__guides {
  position: absolute; inset: 0; width: 100%; height: 100%;
  stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; fill: none;
  stroke-dasharray: 5 7; stroke-linecap: round;
}
.ship-badge {
  position: absolute; pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px; min-width: 210px;
  border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 14px 36px rgba(11, 22, 51, .16), 0 2px 8px rgba(11, 22, 51, .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ship-badge:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 22, 51, .2); }
.ship-badge__ico {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--blue);
}
.ship-badge__ico .ico { width: 26px; height: 26px; stroke-width: 2; }
.ship-badge__text { display: flex; flex-direction: column; gap: 1px; font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ship-badge--a { left: 0; top: 14%; }
.ship-badge--b { left: 28%; top: 0; }
.ship-badge--c { right: 0; top: 22%; }
.ship-badge--d { right: 4%; top: 46%; }

.ship-benefits { padding: 36px 0; background: #eef4ff; border-block: 1px solid #dce6f8; }
.ship-benefits__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch;
}
.ship-benefit {
  display: flex; align-items: flex-start; gap: 14px; padding: 8px 24px;
}
.ship-benefit + .ship-benefit { border-left: 1px solid rgba(37, 99, 255, .14); }
.ship-benefit__ico {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--blue);
}
.ship-benefit__ico .ico { width: 28px; height: 28px; stroke-width: 1.9; }
.ship-benefit__copy { min-width: 0; }
.ship-benefit h3 { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.ship-benefit p { font-size: 13px; font-weight: 500; color: #4a6bb5; margin-top: 4px; line-height: 1.35; }

.ship-lifecycle {
  position: relative; padding: 88px 0; overflow: hidden; color: #fff;
}
.ship-lifecycle__bg { position: absolute; inset: 0; z-index: -2; }
.ship-lifecycle__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.ship-lifecycle__shade {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7, 14, 34, .88) 0%, rgba(7, 14, 34, .58) 40%, rgba(7, 14, 34, .42) 62%, rgba(7, 14, 34, .5) 100%);
}
.ship-lifecycle__inner {
  display: grid; grid-template-columns: minmax(280px, .92fr) 1.08fr; gap: 36px; align-items: center; position: relative;
}
.ship-lifecycle__h2 { color: #fff; max-width: 420px; }
.ship-lifecycle__lead { color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.65; margin: 18px 0 28px; max-width: 440px; }
.ship-lifecycle__copy .btn { margin-top: 4px; }

.ship-lifecycle__map { position: relative; min-height: 380px; }
.ship-lifecycle__path {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.ship-lifecycle__route {
  fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2; stroke-dasharray: 6 8; stroke-linecap: round;
}
.ship-lifecycle__node { fill: #5eb0ff; stroke: #fff; stroke-width: 2; }

.ship-lifecycle__card {
  position: absolute; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  max-width: min(280px, 46%); padding: 12px 16px 12px 12px;
  border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 12px 32px rgba(11, 22, 51, .14), 0 2px 6px rgba(11, 22, 51, .06);
}
.ship-lifecycle__ico {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; color: var(--blue);
}
.ship-lifecycle__ico .ico { width: 24px; height: 24px; stroke-width: 2; }
.ship-lifecycle__label { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.ship-lifecycle__card--1 { left: 0; top: 0; }
.ship-lifecycle__card--2 { right: 0; top: 6%; }
.ship-lifecycle__card--3 { left: 2%; top: 36%; }
.ship-lifecycle__card--4 { right: 0; top: 44%; }
.ship-lifecycle__card--5 { left: 0; bottom: 4%; }
.ship-lifecycle__card--6 { right: 2%; bottom: 0; }

.ship-agents { background: #fff; }
.ship-agents .section__head { align-items: flex-start; }
.ship-agents__all { flex-shrink: 0; margin-top: 8px; }
.ship-agents__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ship-agent {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 210px;
  padding: 20px 18px 18px; border-radius: 16px; background: var(--tint, #f8fafc);
  border: 1px solid rgba(11, 22, 51, .05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ship-agent:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ship-agent__ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--c, var(--blue)); background: rgba(255, 255, 255, .92);
}
.ship-agent h3 { font-size: 14px; font-weight: 800; line-height: 1.35; padding-right: 28px; color: var(--ink); }
.ship-agent p { font-size: 12.5px; color: var(--muted); flex: 1; line-height: 1.5; }
.ship-agent__go {
  position: absolute; right: 14px; bottom: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: var(--go, var(--blue)); background: rgba(255, 255, 255, .95);
}

.ship-integrate { background: #fff; }
.ship-integrate__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.ship-integrate__copy .lead { max-width: 520px; }

.ship-eco {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px 14px;
  align-items: center; min-height: 340px;
}
.ship-eco__lines {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
}
.ship-eco__lines path {
  fill: none; stroke: #c5d0e6; stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linecap: round;
}
.ship-eco__col { position: relative; z-index: 1; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ship-eco__col--right .ship-eco__node { flex-direction: row-reverse; text-align: right; }
.ship-eco__node {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px; background: #fff;
  border: 1px solid #e6ecf5; box-shadow: 0 4px 14px rgba(11, 22, 51, .05);
  font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.25;
}
.ship-eco__ico {
  width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--blue); background: #f3f7ff; border-radius: 8px;
}
.ship-eco__ico .ico { width: 18px; height: 18px; stroke-width: 2; }
.ship-eco__core {
  position: relative; z-index: 2; display: grid; place-items: center; gap: 8px; text-align: center;
  width: 132px; padding: 22px 16px; border-radius: 18px;
  background: linear-gradient(160deg, #0a1430 0%, #1a3278 100%); color: #fff;
  box-shadow: 0 18px 40px rgba(11, 22, 51, .22);
}
.ship-eco__brand { margin: 0; line-height: 1.15; }
.ship-eco__brand strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; text-transform: lowercase; }
.ship-eco__brand small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; opacity: .88; }

.ship-cta {
  position: relative; padding: 96px 0 88px; color: #fff; overflow: hidden;
}
.ship-cta__media { position: absolute; inset: 0; z-index: -2; }
.ship-cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ship-cta__shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 14, 34, .92) 0%, rgba(7, 14, 34, .78) 42%, rgba(7, 14, 34, .45) 68%, rgba(7, 14, 34, .55) 100%);
}
.ship-cta__inner {
  display: grid; grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 1fr); gap: 28px 24px;
  align-items: center; position: relative;
}
.ship-cta__kicker { letter-spacing: .12em; line-height: 1.45; max-width: 520px; }
.ship-cta__copy .h2 { color: #fff; max-width: 560px; }
.ship-cta__lead { color: rgba(255, 255, 255, .84); font-size: 16px; line-height: 1.65; margin: 18px 0 28px; max-width: 540px; }
.ship-cta__btn { color: var(--blue) !important; font-weight: 700; }
.ship-cta__btn .ico { color: var(--blue); }

.ship-cta__tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none;
}
.ship-cta__tiles li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 132px; padding: 18px 16px; border-radius: 14px;
  background: rgba(15, 23, 42, .52); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}
.ship-cta__tile-ico {
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--tile, #7dd3fc);
}
.ship-cta__tile-ico .ico { width: 28px; height: 28px; stroke-width: 2; }
.ship-cta__tile-text { font-size: 14px; font-weight: 700; line-height: 1.35; color: #fff; }

/* Maritime hero — light fade, dark copy (port terminal mockup) */
.ship-hero--port { color: var(--ink); }
.ship-hero--port .ship-hero__shade--port {
  background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .88) 28%, rgba(255, 255, 255, .45) 48%, rgba(255, 255, 255, .08) 62%, transparent 78%);
}
.ship-hero--port .ship-hero__media img { object-position: 58% center; }
.ship-hero--port .ship-hero__title-line { color: var(--ink); }
.ship-hero--port .ship-hero__title-accent--blue {
  background: none; color: #2b6cc4; -webkit-text-fill-color: #2b6cc4;
}
.ship-hero--port .ship-hero__lead { color: var(--ink-2); }
.ship-hero--port .ship-hero__copy { max-width: min(580px, 52vw); }

/* Maritime / terminal page */
/* Maritime — terminal ecosystem banner */
.terminal-eco {
  position: relative; padding: 88px 0; overflow: hidden; color: var(--ink);
}
.terminal-eco__bg { position: absolute; inset: 0; z-index: 0; }
.terminal-eco__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.terminal-eco__fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 34%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, .12) 58%, transparent 72%);
}
.terminal-eco__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(280px, 41%) 1fr; gap: 20px; align-items: center;
}
.terminal-eco__kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #64748b; margin-bottom: 14px;
}
.terminal-eco__copy .h2 { max-width: 420px; color: var(--ink); }
.terminal-eco__lead {
  color: var(--ink-2); font-size: 16px; line-height: 1.65; margin: 18px 0 28px; max-width: 440px;
}
.terminal-eco__stage { position: relative; min-height: 400px; }
.terminal-eco__cards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.terminal-eco__card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  width: min(240px, 46%); padding: 12px 16px 12px 12px; border-radius: 16px;
  background: #fff; color: var(--ink);
  box-shadow: 0 12px 32px rgba(11, 22, 51, .14), 0 2px 8px rgba(11, 22, 51, .06);
}
.terminal-eco__ico {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; color: #2b61c6;
}
.terminal-eco__ico .ico { width: 24px; height: 24px; stroke-width: 2; }
.terminal-eco__label { display: flex; flex-direction: column; gap: 1px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.terminal-eco__card--vessel { left: 0; top: 6%; }
.terminal-eco__card--gate { left: 12%; bottom: 14%; }
.terminal-eco__card--crane { right: 0; top: 5%; }
.terminal-eco__card--yard { right: 6%; top: 38%; }
.terminal-eco__card--analytics { right: 0; bottom: 6%; }

/* Maritime — Built for modern terminals */
.maritime-excel {
  position: relative; padding: 96px 0 92px; color: #fff; overflow: hidden;
}
.maritime-excel__bg { position: absolute; inset: 0; z-index: 0; }
.maritime-excel__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 78% center;
  filter: brightness(.58) saturate(1.05);
}
.maritime-excel__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #070e22 0%, #070e22 34%, rgba(7, 14, 34, .94) 44%, rgba(7, 14, 34, .72) 52%, rgba(7, 14, 34, .38) 66%, rgba(7, 14, 34, .52) 100%);
}
.maritime-excel__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr); gap: 36px 32px; align-items: center;
}
.maritime-excel__kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #8ab4ff; margin-bottom: 14px;
}
.maritime-excel__copy .h2 { color: #fff; max-width: 520px; line-height: 1.15; }
.maritime-excel__lead { color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.65; margin: 18px 0 28px; max-width: 520px; }
.maritime-excel__btn { color: var(--ink) !important; font-weight: 700; border-radius: 999px; padding-inline: 28px; }
.maritime-excel__btn .ico { color: var(--ink); stroke-width: 2; }
.maritime-excel__viz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.maritime-viz {
  display: flex; flex-direction: column; min-height: 148px; padding: 16px 16px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}
.maritime-viz__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.maritime-viz__ico { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; color: #60a5fa; }
.maritime-viz__ico .ico { width: 22px; height: 22px; stroke-width: 2; }
.maritime-viz h4 { margin: 0; font-size: 14px; font-weight: 700; color: #f1f5f9; line-height: 1.25; }
.maritime-viz__line {
  flex: 1; min-height: 72px; margin-top: auto; border-radius: 10px;
  background:
    linear-gradient(180deg, transparent 55%, rgba(56, 189, 248, .22) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop stop-color='%2338bdf8' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%2338bdf8' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 48 C24 44 32 52 48 38 S72 28 88 34 S112 18 128 26 S152 12 168 20 S188 8 200 14' fill='none' stroke='%2338bdf8' stroke-width='2.5'/%3E%3Cpath d='M0 48 C24 44 32 52 48 38 S72 28 88 34 S112 18 128 26 S152 12 168 20 S188 8 200 14 L200 64 L0 64 Z' fill='url(%23g)'/%3E%3C/svg%3E") center bottom / 100% auto no-repeat;
}
.maritime-viz__bars {
  flex: 1; display: flex; align-items: flex-end; gap: 7px; min-height: 72px; padding-top: 4px;
}
.maritime-viz__bars span {
  flex: 1; height: var(--h, 50%); max-height: 100%; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(125, 211, 252, .95) 0%, rgba(56, 189, 248, .55) 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, .25);
}
.maritime-viz__compliance {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: center;
}
.maritime-viz__compliance li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: #e2e8f0;
}
.maritime-viz__row-ico {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(148, 163, 184, .65);
  background: rgba(255, 255, 255, .06);
}
.maritime-viz__tick {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(145deg, #3b82f6, #2563eb); color: #fff;
}
.maritime-viz__tick .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.maritime-viz__gauge-wrap {
  flex: 1; display: flex; align-items: center; gap: 16px; min-height: 72px;
}
.maritime-viz__gauge {
  width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; position: relative;
  background: conic-gradient(#38bdf8 0deg 144deg, rgba(255, 255, 255, .12) 144deg 360deg);
  display: grid; place-items: center;
}
.maritime-viz__gauge::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  background: rgba(15, 23, 42, .55); border: 1px solid rgba(255, 255, 255, .08);
}
.maritime-viz__gauge span {
  position: relative; z-index: 1; font-size: 18px; font-weight: 800; color: #f8fafc; line-height: 1;
}
.maritime-viz__gauge-label {
  margin: 0; font-size: 14px; font-weight: 600; color: #cbd5e1; line-height: 1.35; max-width: 120px;
}

/* Freight forwarding landing */
.page-freight .ship-hero--port .ship-hero__media img { object-position: 42% center; }
.ff-hero-panel {
  position: absolute; z-index: 2;
  top: calc(var(--header-h) + 36px); right: clamp(16px, 4vw, 48px);
  width: min(320px, 42vw); padding: 18px 18px 16px; border-radius: 18px;
  background: #fff; color: var(--ink);
  box-shadow: 0 16px 40px rgba(11, 22, 51, .14), 0 2px 8px rgba(11, 22, 51, .06);
}
.ff-hero-panel__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ff-hero-panel__ico {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; color: var(--blue);
}
.ff-hero-panel__ico .ico { width: 26px; height: 26px; stroke-width: 2; }
.ff-hero-panel__head strong { font-size: 14px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.ff-hero-panel__list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.ff-hero-panel__list li { display: flex; align-items: center; gap: 10px; }
.ff-hero-panel__list .ico { flex-shrink: 0; color: var(--blue); stroke-width: 2.5; }

/* Freight — AI control tower lifecycle */
.ff-control-tower { padding: 92px 0; }
.ff-control-tower .terminal-eco__bg img { object-position: 56% center; }
.ff-control-tower__fade {
  background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .96) 36%, rgba(255, 255, 255, .78) 46%, rgba(255, 255, 255, .42) 54%, rgba(255, 255, 255, .1) 62%, transparent 76%) !important;
}
.ff-control-tower__inner { grid-template-columns: minmax(300px, 43%) 1fr; gap: 28px; }
.ff-control-tower .terminal-eco__copy .h2 { max-width: 400px; letter-spacing: -.03em; }
.ff-control-tower .terminal-eco__lead { max-width: 460px; }
.ff-control-tower__stage { min-height: 440px; }
.ff-control-tower__net {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
}
.ff-control-tower__route {
  fill: none; stroke: rgba(147, 197, 253, .85); stroke-width: 2;
  stroke-dasharray: 4 7; stroke-linecap: round;
}
.ff-control-tower__route--card { stroke: rgba(147, 197, 253, .55); stroke-width: 1.75; }
.ff-control-tower__pin-body { fill: #2563ff; filter: drop-shadow(0 3px 8px rgba(37, 99, 255, .45)); }
.ff-control-tower__pin-dot { fill: #fff; }
.ff-control-tower__pin-halo { fill: rgba(37, 99, 255, .22); }
.ff-control-tower__pin-glow { fill: rgba(96, 165, 250, .65); }
.ff-control-tower__pins use { filter: drop-shadow(0 0 10px rgba(59, 130, 246, .55)); }
.ff-control-tower__card { z-index: 1; width: min(252px, 48%); }
.ff-control-tower__card--1 { left: 0; top: 5%; }
.ff-control-tower__card--2 { right: 0; top: 4%; }
.ff-control-tower__card--3 { left: 0; top: 38%; }
.ff-control-tower__card--4 { right: 2%; top: 40%; }
.ff-control-tower__card--5 { right: 0; bottom: 4%; }

.ff-systems {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.ff-systems li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: #f6f8fc; border: 1px solid #e6ecf5;
  font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.25;
}
.ff-systems__ico {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--blue); background: #fff; border-radius: 10px; border: 1px solid #e6ecf5;
}
.ff-systems__ico .ico { width: 20px; height: 20px; stroke-width: 2; }

.page-freight .ship-cta__media img { filter: brightness(.55) saturate(1.05); object-position: 70% center; }

@media (max-width: 1100px) {
  .ship-agents__grid { grid-template-columns: repeat(3, 1fr); }
  .ship-agents .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ship-agents__all { margin-top: 0; }
  .ship-hero {
    flex-direction: column; align-items: stretch; min-height: auto;
    padding-bottom: 56px;
  }
  .ship-hero__inner { width: min(100% - 40px, var(--container)); }
  .ship-hero__copy, .ship-hero--port .ship-hero__copy { max-width: none; }
  .ship-hero__badges {
    position: relative; top: auto; right: auto; width: min(100% - 40px, var(--container)); height: auto;
    margin: 28px auto 0; padding: 0; max-width: none;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  .ship-hero__guides { display: none; }
  .ship-badge { position: relative; left: auto !important; right: auto !important; top: auto !important; min-width: 0; }
  .ship-lifecycle__inner, .ship-integrate__inner, .ship-cta__inner, .maritime-excel__inner, .terminal-eco__inner { grid-template-columns: 1fr; }
  .ff-hero-panel {
    position: relative; top: auto; right: auto;
    width: min(100% - 40px, var(--container)); max-width: none;
    margin: 24px auto 0; padding: 18px;
  }
  .ff-control-tower__stage { min-height: 0; }
  .ff-control-tower__net { display: none; }
  .ff-control-tower__card {
    position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: 100%;
  }
  .ff-control-tower .terminal-eco__cards { position: relative; display: grid; gap: 10px; inset: auto; }
  .ff-systems { grid-template-columns: 1fr; }
  .terminal-eco__stage { min-height: 0; margin-top: 24px; }
  .terminal-eco__cards { position: relative; display: grid; gap: 10px; inset: auto; }
  .terminal-eco__card {
    position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: 100%;
  }
  .ship-cta__tiles { grid-template-columns: repeat(2, 1fr); grid-column: auto; }
  .ship-lifecycle__map { min-height: 0; display: grid; gap: 12px; margin-top: 8px; }
  .ship-lifecycle__path { display: none; }
  .ship-lifecycle__card {
    position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    max-width: none;
  }
  .ship-eco { grid-template-columns: 1fr; min-height: 0; gap: 16px; }
  .ship-eco__lines { display: none; }
  .ship-eco__core { order: -1; margin: 0 auto; }
  .ship-eco__col--right .ship-eco__node { flex-direction: row; text-align: left; }
}
@media (max-width: 768px) {
  .ship-benefits__grid { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .ship-benefit { padding: 12px 16px; }
  .ship-benefit + .ship-benefit { border-left: 0; }
  .ship-benefit:nth-child(odd) { border-right: 1px solid rgba(37, 99, 255, .14); }
  .ship-benefit:nth-child(n + 3) { border-top: 1px solid rgba(37, 99, 255, .14); padding-top: 20px; }
  .ship-agents__grid { grid-template-columns: 1fr 1fr; }
  .ship-hero__badges { grid-template-columns: 1fr; width: min(100% - 32px, var(--container)); }
  .ship-hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px; }
  .ship-hero__lead { font-size: 16px; }
  .ship-hero__cta { flex-direction: column; align-items: stretch; }
  .ship-hero__cta .btn { justify-content: center; white-space: normal; text-align: center; }
  .ship-hero--port .ship-hero__shade--port {
    background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 42%, rgba(255, 255, 255, .55) 68%, rgba(255, 255, 255, .15) 100%);
  }
  .ship-hero--port .ship-hero__media img { object-position: 50% center; }
  .maritime-excel__viz { grid-template-columns: 1fr; }
  .terminal-eco__bg img { object-position: center center; }
  .terminal-eco__fade {
    background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 55%, rgba(255, 255, 255, .5) 100%);
  }
  .ff-control-tower__fade {
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 50%, rgba(255, 255, 255, .75) 100%) !important;
  }
  .ship-lifecycle, .terminal-eco, .ff-control-tower, .maritime-excel, .ship-cta { padding: 72px 0; }
}
@media (max-width: 480px) {
  .ship-benefits__grid { grid-template-columns: 1fr; }
  .ship-benefit:nth-child(odd) { border-right: 0; }
  .ship-benefit + .ship-benefit { border-top: 1px solid rgba(37, 99, 255, .14); padding-top: 16px; }
  .ship-agents__grid { grid-template-columns: 1fr; }
  .ship-cta__tiles { grid-template-columns: 1fr; }
  .ship-hero__badges, .ff-hero-panel { width: min(100% - 24px, var(--container)); }
  .ship-hero__title { font-size: clamp(28px, 8vw, 34px); }
}

/* =========================================================
   StayChatAI product page
   ========================================================= */
.page-staychat .sc-hero {
  position: relative; padding: calc(var(--header-h) + 56px) 0 72px; margin-top: calc(var(--header-h) * -1); overflow: hidden;
}
.page-staychat .sc-hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f5f8ff 0%, #fff 55%); }
.page-staychat .sc-hero__grid {
  display: grid; grid-template-columns: minmax(280px, 1.05fr) minmax(280px, .95fr); gap: 40px; align-items: center;
}
.sc-hero__title { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-top: 12px; }
.sc-hero__lead { font-size: 18px; color: var(--ink-2); line-height: 1.65; margin-top: 20px; max-width: 540px; }
.sc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sc-hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.sc-hero__tags li {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(37, 99, 255, .08); color: var(--blue);
}
.sc-hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin-top: 32px; max-width: 480px;
}
.sc-hero__stats li strong { display: block; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.sc-hero__stats li span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sc-hero__visual { position: relative; }
.sc-hero__visual > img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.sc-chat {
  position: absolute; left: -8%; bottom: 8%; width: min(300px, 88%);
  padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(11, 22, 51, .14);
}
.sc-chat__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; }
.sc-chat__head strong { font-weight: 800; color: var(--ink); }
.sc-chat__head small { color: var(--muted); margin-left: auto; }
.sc-chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sc-chat__bubble { padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; margin-bottom: 8px; max-width: 92%; }
.sc-chat__bubble--guest { background: #eef4ff; color: var(--ink); margin-left: auto; border-bottom-right-radius: 4px; }
.sc-chat__bubble--ai { background: #f8fafc; border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.sc-chat__actions { display: flex; gap: 8px; margin-top: 6px; }
.sc-chat__actions span {
  flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-size: 11px; font-weight: 700;
  background: rgba(37, 99, 255, .1); color: var(--blue);
}

.sc-problem { background: var(--bg-soft); }
.sc-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px;
}
.sc-compare__col {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.sc-compare__col h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.sc-compare__col--bad h3 { color: #b91c1c; }
.sc-compare__col--good h3 { color: #059669; }
.sc-compare__col li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sc-compare__col time { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.sc-compare__col em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sc-compare__loss { color: #b91c1c !important; font-weight: 700; }
.sc-compare__win { color: #059669 !important; font-weight: 700; }

.sc-journey__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.sc-journey__card {
  padding: 20px 16px; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 100%;
}
.sc-journey__step {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.sc-journey__card h3 { font-size: 15px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.sc-journey__card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

.sc-revenue { background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%); }
.sc-revenue__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.sc-revenue__card {
  padding: 20px 16px; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sc-revenue__tag {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); margin-bottom: 10px;
}
.sc-revenue__card h3 { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.sc-revenue__card p { font-size: 13px; color: var(--muted); line-height: 1.45; }

.sc-inbox__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: start; }
.sc-inbox__panels { display: grid; gap: 16px; }
.sc-inbox__panel {
  padding: 22px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.sc-inbox__panel h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.sc-inbox__panel h3 .ico { color: var(--blue); }
.sc-inbox__panel li {
  position: relative; padding-left: 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px;
}
.sc-inbox__panel li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.sc-inbox__panel--team { background: linear-gradient(145deg, #0b1633 0%, #1a3278 100%); border: 0; color: #fff; }
.sc-inbox__panel--team h3 .ico { color: #93c5fd; }
.sc-inbox__panel--team li { color: rgba(255, 255, 255, .88); }
.sc-inbox__panel--team li::before { background: #38bdf8; }

.sc-setup__steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; counter-reset: none; list-style: none; padding: 0;
}
.sc-setup__steps li {
  padding: 22px 18px; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sc-setup__num {
  display: inline-block; font-size: 13px; font-weight: 800; color: var(--blue);
  background: rgba(37, 99, 255, .1); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.sc-setup__steps strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.sc-setup__steps p { font-size: 13px; color: var(--muted); line-height: 1.5; }

.sc-cta {
  padding: 72px 0; background: linear-gradient(135deg, #0b1633 0%, #1a3278 55%, #2563ff 100%); color: #fff;
}
.sc-cta__inner {
  display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center;
}
.sc-cta__inner .h2 { color: #fff; max-width: 520px; }
.sc-cta__lead { color: rgba(255, 255, 255, .82); font-size: 17px; margin-top: 16px; max-width: 520px; }
.sc-cta__actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.sc-cta__ghost { color: #fff !important; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }

@media (max-width: 1100px) {
  .sc-hero__grid, .sc-inbox__inner, .sc-cta__inner { grid-template-columns: 1fr; }
  .sc-journey__grid, .sc-revenue__grid, .sc-setup__steps { grid-template-columns: repeat(2, 1fr); }
  .sc-compare { grid-template-columns: 1fr; }
  .sc-chat { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 16px; }
}
@media (max-width: 600px) {
  .sc-journey__grid, .sc-revenue__grid, .sc-setup__steps { grid-template-columns: 1fr; }
  .sc-hero__stats { grid-template-columns: 1fr; }
  .sc-hero__cta { flex-direction: column; align-items: stretch; }
  .sc-hero__cta .btn { justify-content: center; white-space: normal; text-align: center; }
  .sc-cta__actions { min-width: 0; width: 100%; }
  .sc-cta__actions .btn { width: 100%; }
}

/* Site-wide scroll reveal (js/site-reveal.js) */
:root {
  --site-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html.site-reveal-ready .site-reveal:not(.is-inview) .site-reveal__item {
  opacity: 0;
  transform: translateY(20px);
}
html.site-reveal-ready .site-reveal.is-inview .site-reveal__item {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.72s var(--site-reveal-ease),
    transform 0.88s var(--site-reveal-ease);
  transition-delay: calc(0.05s + min(var(--reveal-index, 0), 18) * 0.062s);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__title .word { opacity: 1; transform: none; filter: none; }
  .site-reveal:not(.is-inview) .site-reveal__item { opacity: 1; transform: none; }
}
