/* ==========================================================================
   AlgorMetrics — AI & Cloud Solutions
   Design tokens taken from the brand emblem (navy + teal)
   ========================================================================== */
:root {
  --navy-950: #041427;
  --navy-900: #061E3B;
  --navy: #0A2F5A;
  --navy-600: #164275;
  --teal: #0BA88F;
  --teal-300: #5FE0C8;
  --teal-ink: #067A68;           /* teal text on light bg, 5:1 contrast */
  --bg: #F6F9FC;
  --surface: #FFFFFF;
  --tint: #EEF5F6;
  --ink: #0B1A2E;
  --muted: #4A5B70;
  --line: #DCE5EE;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(10, 47, 90, .06), 0 12px 32px -12px rgba(10, 47, 90, .18);
  --shadow-lg: 0 30px 80px -30px rgba(10, 47, 90, .45);

  --z-nav: 40;
  --z-progress: 45;
  --z-loader: 50;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--navy-900); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.t { color: var(--teal); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Emblem (injected by JS) — each geometric piece animates independently
   -------------------------------------------------------------------------- */
.em { width: 100%; height: 100%; overflow: visible; }
.em .pc { fill: var(--navy); transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease-spring); }
.em .rib { fill: url(#am-rib); stroke: var(--teal); stroke-width: 0; transition: transform .7s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.em .fold { fill: url(#am-fold); transition: transform .7s var(--ease-spring); }
.on-dark .em .pc { fill: #fff; }

/* assemble-in */
.js [data-emblem]:not(.is-in) .pc { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.7); }
.js [data-emblem]:not(.is-in) .rib { stroke-dasharray: 2600; stroke-dashoffset: 2600; fill-opacity: 0; stroke-width: 8; }
.js [data-emblem]:not(.is-in) .fold { opacity: 0; }
[data-emblem].is-in .pc { animation: em-in 1.1s var(--ease) both; animation-delay: var(--dl); }
[data-emblem].is-in .rib { animation: em-draw 1.6s .35s ease-out both; }
[data-emblem].is-in .fold { animation: em-fade .7s 1.5s both; }
.em .p1 { --x: -140px; --y: -90px; --r: -18deg; --dl: .05s; }
.em .p2 { --x: -170px; --y: 90px;  --r: 12deg;  --dl: .15s; }
.em .p3 { --x: 150px;  --y: 160px; --r: 10deg;  --dl: .25s; }
.em .p4 { --x: 160px;  --y: -120px; --r: -25deg; --dl: .35s; }
/* once assembled, drop the keyframes so hover transitions can take over */
[data-emblem].is-built .pc, [data-emblem].is-built .rib, [data-emblem].is-built .fold { animation: none; }
@keyframes em-in { from { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.7); } }
@keyframes em-draw {
  0%   { stroke-dasharray: 2600; stroke-dashoffset: 2600; fill-opacity: 0; stroke-width: 8; }
  65%  { stroke-dashoffset: 0; fill-opacity: 0; stroke-width: 8; }
  100% { stroke-dasharray: 2600; stroke-dashoffset: 0; fill-opacity: 1; stroke-width: 0; }
}
@keyframes em-fade { from { opacity: 0; } }

/* exploded view: hover on mouse devices, tap-to-toggle (.is-exploded) on touch screens */
[data-explode].is-exploded .p1 { transform: translate(-22px, -14px); }
[data-explode].is-exploded .p2 { transform: translate(-26px, 14px); }
[data-explode].is-exploded .p3 { transform: translate(18px, 22px); }
[data-explode].is-exploded .p4 { transform: translate(26px, -14px); }
[data-explode].is-exploded .rib, [data-explode].is-exploded .fold { transform: translate(0, -26px); }
@media (hover: hover) {
  [data-explode]:hover .p1, .brand:hover .p1 { transform: translate(-22px, -14px); }
  [data-explode]:hover .p2, .brand:hover .p2 { transform: translate(-26px, 14px); }
  [data-explode]:hover .p3, .brand:hover .p3 { transform: translate(18px, 22px); }
  [data-explode]:hover .p4, .brand:hover .p4 { transform: translate(26px, -14px); }
  [data-explode]:hover .rib, [data-explode]:hover .fold, .brand:hover .rib, .brand:hover .fold { transform: translate(0, -26px); }
}

/* continuous breathing (separate from hover so both can coexist) */
[data-float].is-in .em { animation: em-float 7s 2s ease-in-out infinite; }
@keyframes em-float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
  transition: clip-path .9s var(--ease), visibility 0s .9s;
  clip-path: inset(0 0 0 0);
}
.loader__mark { width: 120px; height: 130px; }
.loader__word { font: 700 1.75rem var(--font-display); color: var(--navy); letter-spacing: -.02em; display: flex; overflow: hidden; }
.loader__word span { display: inline-block; animation: rise .8s 1s var(--ease) both; }
.loader__word .t { animation-delay: 1.12s; }
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
html:not(.js) .loader { display: none; }
@keyframes rise { from { transform: translateY(110%); opacity: 0; } }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--navy-600)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem var(--font-display); letter-spacing: -.01em;
  border: 1.5px solid transparent; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 47, 90, .7); }
.btn--primary:hover { background: var(--navy-600); box-shadow: 0 14px 30px -10px rgba(11, 168, 143, .6); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: rgba(255, 255, 255, .7); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--teal-300); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }

/* --------------------------------------------------------------------------
   Navigation (floating)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; z-index: var(--z-nav); top: 16px; left: 16px; right: 16px;
  max-width: 1200px; margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(220, 229, 238, .8);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: box-shadow .3s, transform .45s var(--ease), background-color .3s;
}
.nav.is-scrolled { box-shadow: var(--shadow); background: rgba(255, 255, 255, .9); }
.nav.is-hidden { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 40px; flex: none; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font: 700 1.15rem var(--font-display); color: var(--navy); letter-spacing: -.02em; }
.brand__text small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 10px 14px; border-radius: 999px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--navy); background: var(--tint); }
.nav__hub {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--navy); font: 600 .9375rem var(--font-display);
  transition: border-color .2s, color .2s, background-color .2s;
}
.nav__hub svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease-spring); }
.nav__hub:hover { border-color: var(--teal); color: var(--teal-ink); background: #fff; }
.nav__hub:hover svg { transform: rotate(90deg); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--navy); position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; z-index: calc(var(--z-nav) - 1); inset: 0;
  display: grid; align-content: center; gap: 8px; padding: 96px 24px 24px;
  background: rgba(246, 249, 252, .97); backdrop-filter: blur(10px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font: 600 2rem var(--font-display); color: var(--navy); padding: 8px 0; }
.mobile-menu .btn { margin-top: 16px; }
.mobile-menu:not([hidden]) a { animation: rise .5s var(--ease) both; }
.mobile-menu a:nth-child(2) { animation-delay: .05s; } .mobile-menu a:nth-child(3) { animation-delay: .1s; }
.mobile-menu a:nth-child(4) { animation-delay: .15s; } .mobile-menu a:nth-child(5) { animation-delay: .2s; }

/* --------------------------------------------------------------------------
   Reveal + split text
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.js .split:not(.is-in) .w > span { transform: translateY(105%); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 128px 0 80px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 80% 40%, rgba(11, 168, 143, .16), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(10, 47, 90, .10), transparent 70%);
}
.hero__net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .55; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(11, 168, 143, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(11, 168, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 168, 143, 0); } }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 22px 0 22px; }
.hero__title em { font-style: normal; color: var(--teal-ink); position: relative; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-300)); transform: scaleX(0); transform-origin: left;
  transition: transform .9s 1s var(--ease); z-index: -1;
}
.hero__title.is-in em::after { transform: scaleX(1); }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 40px 0 0; }
.hero__trust li { display: grid; padding-left: 14px; border-left: 2px solid var(--teal); }
.hero__trust strong { font: 700 1.5rem var(--font-display); color: var(--navy); }
.hero__trust span { font-size: .875rem; color: var(--muted); }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; display: grid; place-items: center; perspective: 1000px; }
.tilt { width: 62%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); }
.hero__mark { aspect-ratio: 920 / 1000; filter: drop-shadow(0 30px 40px rgba(10, 47, 90, .25)); cursor: pointer; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(10, 47, 90, .18); }
.orbit--1 { inset: 4%; animation: spin 60s linear infinite; }
.orbit--2 { inset: 14%; border-style: solid; border-color: rgba(11, 168, 143, .25); animation: spin 22s linear infinite; }
.orbit--3 { inset: -4%; border-color: rgba(10, 47, 90, .1); animation: spin 38s linear infinite reverse; }
.sat { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px var(--teal); }
.sat--navy { background: var(--navy); box-shadow: none; top: auto; bottom: 20%; left: 3%; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px);
  font: 600 .875rem var(--font-display); color: var(--navy); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.chip--1 { top: 10%; left: -2%; }
.chip--2 { top: 46%; right: -4%; animation-delay: -2s; }
.chip--3 { bottom: 8%; left: 8%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.js .chip { opacity: 0; }
.js .is-ready .chip { opacity: 1; transition: opacity .6s; }
.is-ready .chip--1 { transition-delay: 1.6s; } .is-ready .chip--2 { transition-delay: 1.8s; } .is-ready .chip--3 { transition-delay: 2s; }
.ic { width: 22px; height: 22px; border-radius: 7px; background: var(--teal) center / 14px no-repeat; }
.ic--db { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E"); }
.ic--cloud { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M17.5 19a4.5 4.5 0 1 0-1.4-8.8A6 6 0 0 0 4.3 12.5 3.5 3.5 0 0 0 6.5 19Z'/%3E%3C/svg%3E"); }
.ic--ai { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M12 3l2.2 5.8L20 11l-5.8 2.2L12 19l-2.2-5.8L4 11l5.8-2.2Z'/%3E%3C/svg%3E"); }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(10, 47, 90, .3); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 48px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font: 600 1.125rem var(--font-display); color: var(--navy); white-space: nowrap; }
.marquee span::after { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--teal); border-radius: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head > p:last-child { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.kicker { font: 600 .8125rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.kicker--light { color: var(--teal-300); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --sx: 50%; --sy: 50%;
  position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .8s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(400px circle at var(--sx) var(--sy), rgba(11, 168, 143, .13), transparent 45%);
}
.card:hover { border-color: rgba(11, 168, 143, .45); box-shadow: var(--shadow); transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; background: linear-gradient(135deg, #fff 40%, #E6F6F2); }
.card--navy { background: var(--navy); border-color: var(--navy); }
.card--navy h3 { color: #fff; } .card--navy p { color: #C5D3E4; }
.card--navy::before { background: radial-gradient(400px circle at var(--sx) var(--sy), rgba(95, 224, 200, .2), transparent 45%); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); margin-bottom: 24px; transition: transform .5s var(--ease-spring), background-color .3s; }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--teal); }
.card:hover .card__icon svg { stroke: #fff; }
.card--navy .card__icon { background: rgba(255, 255, 255, .1); } .card--navy .card__icon svg { stroke: var(--teal-300); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card--wide p { max-width: 32em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 500; background: #fff; border: 1px solid var(--line); color: var(--navy); }

/* Navy platform section */
.section--navy { background: var(--navy-900); color: #C5D3E4; overflow: hidden; }
.section--navy h2 { color: #fff; }
.grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent);
}
.platform { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin: 36px 0 28px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: #C5D3E4; font-weight: 500; transition: background-color .25s, color .25s; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--teal); color: var(--navy-950); font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #E3EBF5; animation: rise .5s var(--ease) both; }
.checks li:nth-child(2) { animation-delay: .06s; } .checks li:nth-child(3) { animation-delay: .12s; } .checks li:nth-child(4) { animation-delay: .18s; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041427' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Product mock */
.mock { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); color: var(--ink); transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease), opacity .8s var(--ease); }
.js .mock.reveal.is-in { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }
.mock:hover, .js .mock.reveal.is-in:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.js .mock.reveal:not(.is-in) { transform: perspective(1400px) rotateY(-20deg) rotateX(10deg) translateY(60px); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #EEF2F7; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.mock__bar span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: #fff; font-size: .75rem; color: var(--muted); }
.mock__body { display: grid; grid-template-columns: 60px 1fr; min-height: 380px; }
.mock__side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; background: var(--navy); }
.mock__logo { width: 30px; height: 32px; margin-bottom: 10px; }
.mock__side b { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.mock__side b.on { background: var(--teal); }
.mock__main { padding: 18px; display: grid; gap: 14px; background: #F8FAFC; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpis div, .mock__chart, .mock__ring, .mock__list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock small { display: block; font-size: .6875rem; color: var(--muted); }
.mock__kpis strong { font: 700 1.5rem var(--font-display); color: var(--navy); }
.mock__row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-top: 10px; }
.bars span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--navy), var(--teal)); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease-spring); }
.mock.grow .bars span { transform: scaleY(1); }
.bars span:nth-child(n) { transition-delay: calc(.4s + var(--n, 0) * 50ms); }
.mock__ring { position: relative; display: grid; place-items: center; }
.mock__ring svg { width: 110px; transform: rotate(-90deg); }
.mock__ring circle { fill: none; stroke: #E6EEF5; stroke-width: 12; }
.mock__ring .ring { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s .6s var(--ease); }
.mock.grow .ring { stroke-dashoffset: 44; }
.mock__ring > span { position: absolute; text-align: center; }
.mock__ring strong { font: 700 1.25rem var(--font-display); color: var(--navy); }
.mock__list { display: grid; gap: 10px; }
.mock__list > div { display: flex; align-items: center; gap: 10px; }
.av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy)); flex: none; }
.av--2 { background: linear-gradient(135deg, #F59E0B, #B45309); } .av--3 { background: linear-gradient(135deg, var(--navy-600), #7C3AED); }
.mock__list span { flex: 1; display: grid; gap: 5px; }
.mock__list b { height: 8px; width: 60%; border-radius: 4px; background: #D8E1EA; }
.mock__list em { height: 6px; width: 38%; border-radius: 4px; background: #EBF0F5; }
.mock__list mark { font-size: .6875rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #DDF5EF; color: var(--teal-ink); }
.mock__list mark.warn { background: #FEF3C7; color: #92400E; }
.mock[data-view="1"] .mock__side b.on { background: #F59E0B; }
.mock[data-view="2"] .mock__side b.on { background: var(--navy-600); }

/* Stats */
.stats { padding: 64px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat strong { display: block; font: 700 clamp(2.5rem, 5vw, 3.75rem) var(--font-display); letter-spacing: -.03em; color: var(--navy); background: linear-gradient(135deg, var(--navy), var(--teal-ink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-weight: 500; }

/* Timeline */
.timeline { --fill: 0; position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line); }
.timeline::after { background: linear-gradient(90deg, var(--teal), var(--navy)); transform-origin: left; transform: scaleX(var(--fill)); }
.timeline li { position: relative; z-index: 1; }
.step { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); font: 700 1rem var(--font-display); color: var(--navy); transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease-spring); }
.timeline li.is-lit .step { background: var(--navy); color: #fff; border-color: var(--navy); transform: rotate(-6deg); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .975rem; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 32px; background: radial-gradient(circle at 50% 45%, #fff, #DDEDEE 70%); overflow: hidden; }
.about__visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(10, 47, 90, .2); animation: spin 50s linear infinite; }
.about__mark { width: 52%; aspect-ratio: 920 / 1000; cursor: pointer; }
.about__copy > p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.values div { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.values h3 { font-size: 1.05rem; margin-bottom: 6px; }
.values p { font-size: .9375rem; color: var(--muted); }

/* CTA / contact */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(32px, 6vw, 72px); border-radius: 32px; background: var(--navy); color: #C5D3E4; }
.cta__glow { position: absolute; width: 600px; height: 600px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 168, 143, .55), transparent 65%); animation: glow 10s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 50% { transform: translate(-120px, 120px) scale(1.2); } }
.cta__copy { position: relative; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta__copy > p:not(.kicker) { margin-bottom: 32px; font-size: 1.125rem; }
.contact__list { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact__list a, .contact__list li > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-weight: 500; overflow-wrap: anywhere; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.contact__list a:hover { background: rgba(255, 255, 255, .12); border-color: var(--teal); transform: translateX(6px); }
.contact__list small { display: block; color: var(--teal-300); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.ci { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-950); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Footer */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; color: var(--muted); font-size: .9375rem; }
.footer__hub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.footer__hub strong { width: 100%; font: 600 .8125rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 4px; }
.footer__hub a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font-weight: 500; transition: border-color .2s, color .2s; }
.footer__hub a:hover { border-color: var(--teal); color: var(--teal-ink); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.footer__link { color: var(--teal-ink); font-weight: 600; }
.footer__link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid, .platform, .about, .cta { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; order: -1; }
  .hero { padding-top: 112px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before, .timeline::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--fill)); }
  .timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
  .step { margin-bottom: 0; }
  .about__visual { max-width: 460px; width: 100%; justify-self: center; }
  .mock, .js .mock.reveal.is-in, .js .mock.reveal.is-in:hover { transform: none; }
}
@media (max-width: 860px) {
  .nav__links, .nav > .btn, .nav__hub { display: none; }
  .nav__toggle { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .bento, .stats__grid, .values { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: auto; }
  .card { padding: 24px; }
  .hero__visual { max-width: 340px; }
  .chip { font-size: .75rem; padding: 8px 10px; }
  .chip--2 { right: 0; }
  .chip--1 { left: 0; }
  .hero__trust { gap: 18px; }
  .mock__body { grid-template-columns: 44px 1fr; }
  .mock__row { grid-template-columns: 1fr; }
  .mock__ring { display: none; }
  .mock__kpis strong { font-size: 1.125rem; }
  .brand__text small { display: none; }
}

/* --------------------------------------------------------------------------
   Phone portrait: designed for one-handed reading, not just squeezed
   -------------------------------------------------------------------------- */
.mbar { display: none; }
.bento-dots { display: none; }

@media (max-width: 640px) {
  h2 { font-size: clamp(1.875rem, 8.4vw, 2.375rem); }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head > p:last-child { font-size: 1.0625rem; }

  /* floating nav sits below the notch / status bar */
  .nav { top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; padding: 6px 6px 6px 12px; }
  .brand__mark { width: 30px; height: 34px; }
  .brand__text strong { font-size: 1.0625rem; }
  .mobile-menu { padding: calc(96px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); align-content: start; }
  .mobile-menu a:not(.btn) { font-size: 1.75rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { min-height: 56px; font-size: 1.0625rem; }

  /* hero: emblem and headline share the first screen */
  .hero { min-height: auto; padding: calc(92px + env(safe-area-inset-top)) 0 48px; }
  .hero__grid { gap: 4px; }
  .hero__visual { width: 78%; max-width: 300px; }
  .tilt { width: 60%; }
  .orbit--3 { display: none; }
  .chip { gap: 6px; padding: 6px 9px; border-radius: 10px; font-size: .6875rem; }
  .ic { width: 18px; height: 18px; border-radius: 6px; background-size: 11px; }
  .chip--1 { top: 6%; left: -10%; }
  .chip--2 { top: 48%; right: -10%; }
  .chip--3 { bottom: 6%; left: -2%; }
  .eyebrow { font-size: .8125rem; }
  .hero__title { font-size: clamp(2.125rem, 10.4vw, 2.75rem); margin: 16px 0 14px; }
  .hero__cta { flex-direction: column; margin-top: 24px; }
  .hero__cta .btn { width: 100%; min-height: 54px; font-size: 1.0625rem; }
  .hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
  .hero__trust li { padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .8); text-align: center; }
  .hero__trust strong { font-size: 1.25rem; }
  .hero__trust span { font-size: .75rem; line-height: 1.3; }
  .scroll-cue { display: none; }

  .marquee { padding: 14px 0; }
  .marquee__track, .marquee span { gap: 28px; }
  .marquee span { font-size: 1rem; }

  /* services: swipeable cards with a peek of the next one */
  .bento {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento .card { flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; }
  .bento-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .bento-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .3s var(--ease), background-color .3s; }
  .bento-dots span.on { width: 24px; background: var(--teal); }

  /* platform: one-row segmented tabs */
  .platform { gap: 36px; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 28px 0 22px; }
  .tabs button { padding: 0 4px; font-size: .8125rem; }
  .mock__main { padding: 12px; gap: 10px; }
  .mock__kpis { gap: 6px; }
  .mock__kpis div { padding: 10px 8px; }
  .mock__body { min-height: 0; }
  .bars { height: 90px; gap: 4px; }

  .stats { padding: 40px 0; }
  .stats__grid { gap: 10px; }
  .stat { padding: 18px 8px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
  .stat span { display: block; font-size: .875rem; line-height: 1.35; }

  .timeline { gap: 22px; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline::before, .timeline::after { left: 23px; top: 24px; bottom: 24px; }
  .step { width: 48px; height: 48px; border-radius: 14px; font-size: .9375rem; }

  .about { gap: 32px; }
  .about__visual { aspect-ratio: 16 / 10; border-radius: 24px; }
  .about__visual::before { width: 46%; }
  .about__mark { width: 30%; }
  .values { gap: 10px; margin-top: 28px; }
  .values div { padding: 16px; }

  /* contact: bigger tap targets, email fits on one line */
  .contact { padding-top: 24px; }
  .cta { gap: 28px; padding: 32px 16px 16px; border-radius: 24px; }
  .cta .btn { width: 100%; min-height: 54px; }
  .contact__list { gap: 10px; }
  .contact__list a, .contact__list li > div { padding: 12px; gap: 10px; min-height: 64px; }
  .contact__list a:hover { transform: none; }
  .ci { width: 40px; height: 40px; }
  .contact__list [data-setting="email"] { font-size: min(.875rem, 3.6vw); }

  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer__inner { gap: 24px; }
  .footer__base { margin-top: 24px; }
  .footer__link { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { min-height: 44px; }

  /* thumb-reach quick actions, shown once the hero has scrolled away */
  .mbar {
    position: fixed; z-index: var(--z-nav); left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    transform: translateY(calc(100% + 40px)); transition: transform .45s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { min-height: 48px; }
  .mbar__wa {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
    background: var(--tint); color: var(--teal-ink); font: 600 .9375rem var(--font-display);
  }
  .mbar__wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body.menu-open .mbar { transform: translateY(calc(100% + 40px)); }
}

@media (max-width: 360px) {
  .hero__trust span { font-size: .6875rem; }
  .tabs button { font-size: .75rem; }
  .mbar__wa span { display: none; }
}

/* touch screens: no sticky hover lifts */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card--navy:hover { border-color: var(--navy); }
  .card:hover::before { opacity: 0; }
  .card:hover .card__icon { transform: none; background: var(--tint); }
  .card:hover .card__icon svg { stroke: var(--navy); }
  .card--navy:hover .card__icon { background: rgba(255, 255, 255, .1); }
  .card--navy:hover .card__icon svg { stroke: var(--teal-300); }
}

/* --------------------------------------------------------------------------
   Reduced motion: keep content, drop movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .split:not(.is-in) .w > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero__net { display: none; }
}
