/* ===========================================================
   ActKod landing page
   =========================================================== */
/* Montserrat (Google Fonts, self-hosted) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #03050f;
  --bg-2: #0b1115;
  --card: #0a1218;
  --border: rgba(255, 255, 255, .09);
  --text: #e8eef0;
  --muted: #8d9aa0;
  --green: #4cc374;
  --green-dark: #3da566;
  --red: #e5484d;
  --yellow: #f5c518;
  --radius: 14px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* entrances (spec 1.1) */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1); /* state transitions */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
	font-size: 16px; 
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(1200px, 100% - 40px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-green { background: var(--green-dark); color: #fff; border-color: rgba(120,230,160,.45); }
.btn-green:hover { box-shadow: 0 0 22px rgba(47,209,139,.35); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-yellow { background: var(--yellow); color: #14110a; }
.btn-white { background: #fff; color: #0a0a0a; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: #f0d9a8; background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.3);
}
.pill-sm { color: var(--muted); background: rgba(5,165,122,.08); border-color: var(--border); text-transform: none; letter-spacing: .02em; font-size: 14px; border: 1px solid #1f2d29;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 20px; inset-inline: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 50px 10px 50px; border-radius: 60px;
  background: linear-gradient(180deg, rgba(40,58,62,.55), rgba(18,30,36,.5)); backdrop-filter: blur(5px); border: 1px solid #7C7C7C;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); padding: 18px 0; white-space: nowrap; font-size: 16px; font-weight: 500; color: var(--muted); }
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }
.btn.btn-sm.btn-green{ padding: 14px 18px; font-size: 16px; font-weight: 500; }

.nav-links li:last-child{ margin-left: 50px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; padding: 250px 0 280px; text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(47,209,139,.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 30%, rgba(245,197,24,.08), transparent 70%),
    var(--bg);
}
.hero h1 { font-size:64px; line-height: 78px; margin: 22px 0 18px; font-weight: 600; background: linear-gradient(180deg,#fff 30%,#9fb0b4); -webkit-background-clip: text; background-clip: text; color: #fff; }
.lead { max-width: 640px; margin: 0 auto 30px; color: var(--muted); }
.trusted { margin-top: 64px; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 44px; margin-top: 22px; font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: #5b676c; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.section-head h2 {  margin: 18px 0 14px; font-weight: 500; letter-spacing: -.01em; font-size: 48px; line-height: 50px; }
.section-head p { font-size: 18px; line-height: 24px; color: #ffffff; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }


/* ---------- How it works: scroll story ---------- */
.story { position: relative; padding: 100px 0 60px; overflow: clip; }
.story-list { position: relative; --fill: 0px; margin-top: 30px; }
/* centre line: grey track + glowing fill that follows the scroll */
.story-list::before, .story-list::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; }
.story-list::before { bottom: 0; background: linear-gradient(transparent, rgba(255,255,255,.14) 6%, rgba(255,255,255,.14) 94%, transparent); }
.story-list::after { height: var(--fill); background: linear-gradient(transparent, var(--yellow) 8%); box-shadow: 0 0 14px rgba(245,197,24,.75), 0 0 36px rgba(245,197,24,.35); }

.story-item { --f: 1; --dir: 1; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 78vh; padding: 6vh 0; }
.story-item.is-left { --dir: -1; }
.story-node {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(255,255,255,.35); transition: border-color .4s, box-shadow .4s, background .4s, transform .4s;
}
.story-node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--yellow); transform: scale(0); transition: transform .4s; }
.story-item.on .story-node { border-color: var(--yellow); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(245,197,24,.15), 0 0 22px rgba(245,197,24,.8); }
.story-item.on .story-node::after { transform: scale(1); }
.story-item.on .story-node::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--yellow); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
/* dotted connector from node to card */
.story-card::before { content: ""; position: absolute; top: 50%; width: 76px; border-top: 2px dotted rgba(245,197,24,.45); }

.story-card, .story-media { min-width: 0; will-change: transform, opacity, filter; }
.story-card {
  position: relative; padding: 30px 34px; border-radius: 20px; border: 1px solid transparent; max-width: 520px;
  background: linear-gradient(rgba(8,14,19,.92), rgba(8,14,19,.92)) padding-box, linear-gradient(var(--ang, 90deg), rgba(245,197,24,.75), rgba(245,197,24,.05) 70%) border-box;
  opacity: calc(.14 + .86 * var(--f)); filter: blur(calc((1 - var(--f)) * 5px));
  transform: translate3d(calc((1 - var(--f)) * var(--dir) * 46px), 0, 0);
}
.story-step { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--yellow); margin-bottom: 6px; }
.story-card h3 { font-size: 1.05rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #dfe7e9; margin-bottom: 12px; }
.story-sub { display: block; font-size: .82rem; font-weight: 600; color: #fff; line-height: 1.55; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(245,197,24,.55), transparent) 1; }
.story-card p { font-size: .84rem; color:#fff; line-height: 1.75; }

.story-media { margin: 0; opacity: calc(.1 + .9 * var(--f)); filter: brightness(calc(.45 + .55 * var(--f))) blur(calc((1 - var(--f)) * 4px)); transform: translate3d(calc((1 - var(--f)) * var(--dir) * -46px), 0, 0) scale(calc(.94 + .06 * var(--f))); }
.story-media img { width: 100%; max-width: 480px; height: auto; aspect-ratio: 800 / 560; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 38%, transparent 100%); mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 38%, transparent 100%); }

/* once the line has reached an entry, its card stays fully visible and sharp */
.story-item.on .story-card, .story-item.on .story-media { opacity: 1; filter: none; transform: none; }

/* right-hand cards (media on the left) */
.story-item.is-right .story-card { grid-column: 2; grid-row: 1; margin-left: 76px; }
.story-item.is-right .story-card::before { right: 100%; }
.story-item.is-right .story-media { grid-column: 1; grid-row: 1; justify-self: normal; padding-right: 36px; }
/* left-hand cards (media on the right) */
.story-item.is-left .story-card { grid-column: 1; grid-row: 1; margin-right: 76px; justify-self: end; }
.story-item.is-left .story-card::before { left: 100%; }
.story-item.is-left .story-media { grid-column: 2; grid-row: 1; justify-self: normal; padding-left: 36px; }

@media (max-width: 1024px) {
  .story-list::before, .story-list::after { left: 14px; }
  .story-node { left: 14px; top: 42px; }
  .story-item, .story-item.is-left { --dir: 1; grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 0 0 12vh 44px; gap: 20px; align-items: start; }
  .story-item.is-right .story-card, .story-item.is-left .story-card { grid-column: 1; grid-row: 1; margin: 0; justify-self: stretch; max-width: none; --ang: 90deg; }
  .story-item.is-right .story-media, .story-item.is-left .story-media { grid-column: 1; grid-row: 2; justify-self: center; padding: 0; }
  .story-card::before { display: none; }
  .story-card { padding: 24px 22px; }
  .story-media img { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .story-card, .story-media { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* ---------- Showcase ---------- */
.showcase {
  border-radius: 22px; padding: 10px; border: 1px solid rgba(47,209,139,.25);
  background: linear-gradient(135deg, rgba(47,209,139,.05), rgba(14,90,61,.2));
  box-shadow: 0 0 60px rgba(47,209,139,.05);
}
.showcase img { width: 100%; border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Solutions ---------- */
.solutions { display: block; }
.solution {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 34px; border-radius: 22px; border: 1px solid var(--border);
  background-color: #0a1218; background-image: linear-gradient(135deg, rgba(245,197,24,.10), var(--card) 55%);
}
.solution.reverse { background-color: #0a1218; background-image: linear-gradient(225deg, rgba(245,197,24,.10), var(--card) 55%); justify-items: flex-end; box-shadow: 0px 0px 32px 0px #74B0FD1F inset;  background: linear-gradient(180deg, #050505 0%, #000000 100%);
  border: 1px solid; border-image-source: none;  border-image-source: none;
  border-image-source: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 50%, rgba(19, 98, 79, 0.2) 100%);}
.solution.reverse .solution-img { order: 2; }
.solution-img img { width: 100%; border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; }
.solution-text h3 { font-size: 35px; line-height: 40px; font-weight: 500; margin-bottom: 14px; }
.solution-text p { font-size: 18px; line-height: 24px; color:#ffffff; margin-bottom: 16px; }
.solution-text .check-list { list-style: none; margin: 0; padding: 0; }
.solution-text .check-list li { position: relative; border: 0; padding: 7px 0 7px 36px; font-size: 16px; line-height: 22px; font-weight: 500; color: #fff; }
/* round green tick badge */
.solution-text .check-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #1f7a5c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M6.2 11.4l3.2 3.2 6.4-6.8' stroke='%23d8f5e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat; box-shadow: 0 0 0 1px rgba(126,190,173,.35); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.t-card { margin: 0; padding: 20px; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.t-card img { border-radius: 50%; background: #1b272c; }
.t-card strong { display: block; font-size: .82rem; }
.t-card small { color: var(--muted); font-size: .68rem; }
.stars { color: var(--yellow); font-size: .8rem; margin-bottom: 10px; letter-spacing: 2px; }
.stars span { color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.t-card blockquote { margin: 0; font-size: .76rem; color: #b6c1c5; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 54px 16px 20px;
  font-size: 16px; font-weight: 500; position: relative; box-shadow: 0px 0px 32px 0px #74B0FD1F inset;
  background: linear-gradient(180deg, #050505 0%, #000000 100%);
    border-image-source: none;
  border-image-source: none;
  border-image-source: none;
  border-image-source: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 50%, rgba(19, 98, 79, 0.2) 100%);}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-dark); color: #d9fff0; font-size: 1rem; transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size:16px; color:#ffffff; }

/* ---------- CTA ---------- */
.cta h2 { font-size: 56px; line-height: 50px; font-weight: 500; margin-bottom: 12px; letter-spacing: -1.5px; }
.cta p { color:#fff; font-size: 18px; line-height: 24px; max-width: 640px; margin: 20px auto; }
.cta-form { display: flex; align-items: stretch; gap: 12px; max-width: 561px; margin: 30px auto 0; padding: 0; border: 0; background: none; }
.cta-form input {
  flex: 1; min-width: 0; height: 49px; padding: 0 20px; border-radius: 999px;
  background: #121426; border: 1px solid #4b5060; outline: 0; color: var(--text);
  font: inherit; font-size: 16px; line-height: 1.2;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cta-form input::placeholder { color: #8a93ad; opacity: 1; }
.cta-form input:focus { border-color: #f5c442; box-shadow: 0 0 0 3px rgba(245,196,66,.18); }
.cta-form .btn-yellow { flex: none; height: 49px; padding: 0 26px; font-family: inherit; background: #f5c442; color: #000; font-size: 16px; font-weight: 600; border-color: transparent; }
@media (max-width: 480px) { .cta-form { flex-direction: column; } .cta-form .btn-yellow { width: 100%; } }
.form-msg { margin-top: 12px; min-height: 1.4em; font-size: .8rem; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }

/* ---------- Banner ---------- */
.banner { padding: 70px 0; background: linear-gradient(90deg, rgba(245,197,24,.06), rgba(47,209,139,.06)); }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.banner h2 { font-size:40px; font-weight: 600; margin-bottom: 10px; }
.banner p { font-size: 18px; margin-bottom: 18px; max-width: 520px; color: #ffffff; }
.banner .btn-row { justify-content: flex-start; }

/* ---------- Footer ---------- */
.site-footer { padding: 0px 0 24px; background-color: #000300 !important; background: linear-gradient(90deg, rgba(245,197,24,.06), rgba(47,209,139,.06)); }
.footer-grid { display: grid; border-top: 1px solid var(--border); grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 60px; }
.site-footer h3 { font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; font-size: .78rem; color: var(--muted); }
.site-footer li a:not(.btn):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 24px; }
.site-footer .reveal .btn.btn-white{ padding: 10px 55px; margin-top: 10px; }

/* ---------- Hero background ---------- */
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-media img, .hero-media video { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-media img { animation: drift 14s ease-in-out infinite alternate; } /* subtle motion; a swapped-in <video> brings its own */
.hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); opacity: .0; }
.stars-bg {
  position: absolute; inset: 0; opacity: .6; animation: twinkle 5s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #9fe 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 60%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, #9fe 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 18%, #9fe 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 80%, #9fe 50%, transparent 51%);
}
.caret::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.btn svg { flex: none; }
.nav-links a { transition: color .2s; }

/* ---------- Animations ---------- */
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-14px,-10px,0) scale(1.04); } }
@keyframes twinkle { from { opacity: .25; } to { opacity: .8; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes navin { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(76,195,116,.45); } 100% { box-shadow: 0 0 0 14px rgba(76,195,116,0); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.site-header .nav { animation: navin .8s var(--ease) both; }
/* hero text is typed (JS); lead + buttons follow once typing ends */

.btn { position: relative; overflow: hidden; }
.btn-green::after, .btn-yellow::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); }
.btn-green:hover::after, .btn-yellow:hover::after { animation: sheen .8s ease; }
/* pulse ring starts only after the buttons have fully faded in, so it can't flash while they appear */
.hero .btn-green { animation: none; }
.hero-inner.is-typed .btn-green { animation: pulse-ring 2.4s ease-out 1.4s infinite; }

.logos li { transition: color .3s, transform .3s; }
.logos li:hover { color: #cfe3e6; transform: translateY(-3px); }

.card, .showcase { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.solution { transition: border-color .35s; }
.compare-card:hover, .t-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.compare-card.good:hover { border-color: rgba(76,195,116,.6); }
.compare-card.bad:hover { border-color: rgba(229,72,77,.55); }
.solution:hover { border-color: rgba(245,197,24,.35); }
.solution-img img, .showcase img { transition: transform .6s ease; }
.solution:hover .solution-img img, .showcase:hover img { transform: scale(1.04); }
.solution-img, .showcase { overflow: hidden; border-radius: 14px; }
.solution-img{ max-width: 420px; max-height: 400px; }
.showcase { border-radius: 22px; }
.growth-img, .banner img { animation: bob 4.5s ease-in-out infinite; }
.faq-item { transition: border-color .3s, background .3s; }
.faq-item:hover, .faq-item[open] { border-color: rgba(76,195,116,.45); }
.x-list li, .check-list li { transition: color .25s, border-color .25s; }
.x-list li:hover, .check-list li:hover { color: #fff; }

/* ---------- Scroll reveal (staggered via --d set in JS) ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease) var(--d,0s), transform .8s var(--ease) var(--d,0s), border-color .35s; }
.showcase.preview.reveal{ padding: 28px; }
.reveal.visible { opacity: 1; transform: none; }
.compare-card.visible:hover, .t-card.visible:hover { transition-delay: 0s; transform: translateY(-5px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; } .solution, .footer-grid { grid-template-columns: 1fr; }
  .solution.reverse .solution-img { order: 0; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .banner-inner { flex-direction: column; text-align: center; }
  .banner .btn-row { justify-content: center; }
  .banner p { margin-inline: auto; }
	
	.solution{ top: inherit !important; padding: 22px;}
	
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px 20px; border-radius: 20px; background: rgba(15,23,27,.97);
    border: 1px solid var(--border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-links .btn { width: 100%; }
}
@media (max-width: 760px) {
  .section { padding: 50px 0; }
	.solution-img img{ height: 80vw; }
}
@media (max-width: 560px) {
  .testimonials { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
	.bottom-left small{ display: block; }
	.bottom-left span.devider{ display: none; }
	.section.cta{ padding-bottom: 0px; }
	.banner.foot{ padding: 50px 0;}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-inner > .lead, .hero-inner > .btn-row { opacity: 1 !important; transform: none !important; }
}

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--yellow); color: #111; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Brand logo ---------- */
.brand img { height: 44px; width: auto; }
.nav { padding-block: 4px; }

/* ===========================================================
   ANIMATION SPEC (07-10-2026) - sections 2.1 to 2.10
   Motion uses transform/opacity; one JS file drives it (js/main.js)
   =========================================================== */

/* ---- layering: later sections slide over the pinned hero (2.4) ---- */
main > section:not(.hero), .site-footer { position: relative; z-index: 1; background-color: var(--bg); }
.banner.foot { background-color: #000300; }

/* ---- 2.1 header: hides on scroll down, returns on scroll up ---- */
.site-header { transition: transform .55s var(--ease); will-change: transform; }
.site-header.is-hidden { transform: translateY(calc(-100% - 70px)); }

/* ---- 2.2 hero typewriter ---- */
.js .hero h1 { visibility: hidden; animation: reveal-fallback 0s 3s forwards; }
.js .hero h1.tw-ready { visibility: visible; }
.tw-word { white-space: nowrap; }
.tw-ch { visibility: hidden; }
.tw-ch.on { visibility: visible; }
/* zero-net-width cursor: no positioning, so the gradient text clip still covers the characters */
.tw-ch.cur::after { content: ""; display: inline-block; width: 0; height: .78em; margin-right: -3px; border-right: 3px solid var(--green); vertical-align: -.06em; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes reveal-fallback { to { visibility: visible; opacity: 1; transform: none; } }
.js .hero-inner > .lead, .js .hero-inner > .btn-row { opacity: 0; transform: translateY(22px); animation: reveal-fallback 0s 6s forwards; }
.js .hero-inner.is-typed > .lead, .js .hero-inner.is-typed > .btn-row { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero-inner.is-typed > .btn-row { opacity: 1 !important; }
.js .hero-inner.is-typed > p{ opacity: 1 !important; color: #fff; }
.js .hero-inner > .lead, .js .hero-inner.is-typed > .btn-row{ transform: translateY(22px) !important;}

/* ---- 2.3 / 2.4 hero pins and recedes while The SAP Problem slides over it ---- */
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero > .hero-inner { width: min(1120px, 100% - 40px); }
.hero.hero-stick { position: sticky; top: 0; z-index: 0; }
.hero.hero-stick .hero-inner { transform: translate3d(0, calc(var(--hp, 0) * -48px), 0) scale(calc(1 - var(--hp, 0) * .07)); opacity: calc(1 - var(--hp, 0) * .95); will-change: transform, opacity; }
.hero.hero-stick .hero-media { opacity: calc(1 - var(--hp, 0) * .8); }
#about { border-radius: 44px 44px 0 0; box-shadow: 0 -40px 90px rgba(0, 0, 0, .65); border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---- 2.4 The SAP Problem: one stacked panel per problem ---- */
.problem-stack { margin: 0 0 90px; }
.problem { position: sticky; top: 96px; margin-bottom: 14vh; height: min(64vh, 520px); }
.problem:last-child { margin-bottom: 0; }
.problem-scale { height: 100%; transform-origin: 50% 0; transform: scale(calc(1 - var(--depth, 0) * .045)); will-change: transform; }
.problem-card { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .1); box-shadow:0px 0px 32px 0px #74B0FD1F inset; padding: 25px; background: linear-gradient(180deg, #050505 0%, #000000 100%); border: 1px solid; border-image-source: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 50%, rgba(19, 98, 79, 0.2) 100%);  }
.problem-card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--depth, 0) * .3); pointer-events: none; }
.problem-text { position: relative; z-index: 1; padding: 0 clamp(26px, 4vw, 26px); }
.problem-num { display: block; font-weight: 600; font-size:50px; line-height: 1; color:#fff; margin-bottom: 16px; }

.problem-num small { font-size: .9rem; -webkit-text-stroke: 0; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.problem-text h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; margin-bottom: 12px; color:var(--green-dark); }
.problem-text p { color: #E52E2E; font-size: .95rem; max-width: 380px; }
.problem-visual { margin: 0; height: 100%; }
.problem-visual img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%); mask-image: linear-gradient(90deg, transparent, #000 32%); }
.problem-card .problem-text > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.problem-card.visible .problem-text > * { opacity: 1; transform: none; }
.problem-card.visible .problem-text > :nth-child(2) { transition-delay: .1s; }
.problem-card.visible .problem-text > :nth-child(3) { transition-delay: .2s; }
.problem-card .problem-visual { opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease) .1s, transform 1.4s var(--ease) .1s; }
.problem-card.visible .problem-visual { opacity: 1; transform: none; }

/* per-item stacking offsets */
.problem:nth-child(1) { top: 96px; }
.problem:nth-child(2) { top: 96px; }
.problem:nth-child(3) { top: 96px; }
.problem:nth-child(4) { top: 96px; }
.problem:nth-child(5) { top: 96px; }
.problem:nth-child(6) { top: 96px; }
.solution:nth-child(1) { top: 110px; }
.solution:nth-child(1)::before { left: 18px; }
.solution:nth-child(2) { top: 172px; }
.solution:nth-child(2)::before { left: 253px; }
.solution:nth-child(3) { top: 234px; }
.solution:nth-child(3)::before { left: 468px; }
.solution:nth-child(4) { top: 296px; }
.solution:nth-child(4)::before { left: 647px; }
.solution:nth-child(5)::before { left: 647px; }
.solution:nth-child(6)::before { left: 647px; }
@media (max-width: 860px) {
  .problem:nth-child(1) { top: 84px; }
  .problem:nth-child(2) { top: 96px; }
  .problem:nth-child(3) { top: 108px; }
  .problem:nth-child(4) { top: 120px; }
  .problem:nth-child(5) { top: 132px; }
  .problem:nth-child(6) { top: 144px; }
}

/* ---- 2.6 product preview: video slot ---- */
.preview { perspective: 1200px; }
.preview-frame { position: relative; border-radius: 14px; overflow: hidden; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; background: #05070a; }
.preview-frame img, .preview-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.preview-video { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .5s var(--ease-io); background: #05070a; }
.preview.is-playing .preview-video { opacity: 1; }
.preview-poster { transition: transform .8s var(--ease); }
.preview:hover .preview-poster { transform: scale(1.04); }
.preview-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #07140c; background: var(--yellow); box-shadow: 0 0 0 0 rgba(245, 197, 24, .5), 0 18px 40px rgba(0, 0, 0, .5); transition: transform .4s var(--ease), opacity .3s; animation: pulse-yellow 2.6s ease-out infinite; }
.preview-play svg { margin-left: 4px; }
.preview:hover .preview-play, .preview-play:focus-visible { transform: scale(1.1); }
.preview.is-playing .preview-play { opacity: 0; pointer-events: none; }
.preview.no-video .preview-play { display: none; }
@keyframes pulse-yellow { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .5), 0 18px 40px rgba(0, 0, 0, .5); } 100% { box-shadow: 0 0 0 26px rgba(245, 197, 24, 0), 0 18px 40px rgba(0, 0, 0, .5); } }
.preview.no-video .preview-poster { animation: bob 6s ease-in-out infinite; }

/* ---- 2.7 use cases: folder scroll ---- */
.solution { position: sticky; top: 110px; margin-bottom: 14vh; transform-origin: 50% 0; transform: scale(calc(1 - var(--depth, 0) * .04)); will-change: transform; box-shadow: 0 -18px 40px rgba(0, 0, 0, .45); border: 1px solid var(--border);  border-bottom: 0;  border-radius: 14px;  box-shadow: inset 0 1px 0 rgba(245, 197, 24, .25);  background: #0a1218; justify-items: flex-start; box-shadow: 0px 0px 32px 0px #74B0FD1F inset;  background: linear-gradient(180deg, #050505 0%, #000000 100%);
  border: 1px solid;   border-image-source: none;  border-image-source: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 50%, rgba(19, 98, 79, 0.2) 100%); }
.solution:last-child { margin-bottom: 0; }
.solution::before {
  content: attr(data-tab); position: absolute; left: 28px; bottom: 100%; margin-bottom: -1px; padding: 9px 22px 8px;  font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: #e9d98c; white-space: nowrap;  background: #0a1218; border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0px 0px 32px 0px #74B0FD1F inset;  background: linear-gradient(180deg, #050505 0%, #000000 100%);  border: 1px solid;    border-image-source: none;
  border-image-source: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 50%, rgba(19, 98, 79, 0.2) 100%);}
.solution::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: calc(var(--depth, 0) * .32); pointer-events: none; }

/* ---- 2.8 testimonials: staggered entry, spotlight, swipe carousel on small screens ---- */
.t-card { transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.t-card.is-spot, .t-card.visible.is-spot { border-color: rgba(245, 197, 24, .55); box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 197, 24, .15); transform: translateY(-6px); }
.t-controls { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.t-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.t-btn:hover { background: var(--green-dark); border-color: rgba(120, 230, 160, .5); transform: scale(1.06); }
.t-count { min-width: 56px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); }

/* ---- 2.9 faq: animated open/close (height animated in JS) ---- */
.faq-item summary { transition: color .3s; }
.faq-item summary:hover { color: #fff; }
.faq-item summary::after { transition: transform .45s var(--ease), background .3s; }
.faq-item[open] summary::after { background: var(--yellow); color: #14110a; }
.faq-body p { padding: 0 20px 18px; }
.faq-item .faq-body { opacity: 0; transform: translateY(-8px); transition: opacity .45s var(--ease) .05s, transform .45s var(--ease) .05s; box-shadow: 0px 0px 32px 0px #74B0FD1F inset;
  background: linear-gradient(180deg, #050505 0%, #000000 100%); padding-top: 15px; border-top: 1px solid #4c4c4c;; }
.faq-item[open].is-open .faq-body { opacity: 1; transform: none; }

/* ---- 2.10 footer + socials ---- */
.footer-grid { grid-template-columns: repeat(4, 1fr); }
.site-footer li a:not(.btn) { display: inline-block; transition: color .25s, transform .35s var(--ease); font-size: 16px; }
.site-footer li a:not(.btn):hover { transform: translateX(5px); }
.site-footer li a.social { display: grid; }
.site-footer li a.social:hover { transform: translateY(-4px); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials li { margin: 0; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: #cfd8dc; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; }
.site-footer li a.social:hover { transform: translateY(-4px); background: var(--yellow); color: #14110a; border-color: var(--yellow); box-shadow: 0 10px 24px rgba(245, 197, 24, .3); }
.footer-grid > div { transition-delay: calc(var(--d, 0s)); }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .problem { height: auto; margin-bottom: 10vh; }
  .problem-card { grid-template-columns: 1fr; height: auto; padding-top: 28px; padding-left: 10px; padding-right: 10px; }
  .problem-text { padding-bottom: 8px; }
  .problem-visual { height: 220px; }
  .problem-visual img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
  .solution { position: relative; top: auto; margin-bottom: 28px; transform: none; box-shadow: none; }
  .solution::before, .solution::after { display: none; }
  .hero { min-height: 0; padding: 180px 0 180px; }
	.site-header{ top: 30px; }
	.nav{ padding-left: 30px; padding-right: 30px; }
	.brand img{ height: 35px; }
	.preview-frame img, .preview-frame video{ height: 90vw; }
}
@media (max-width: 760px) {
  .testimonials { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; position: relative; padding-bottom: 6px; scrollbar-width: none; }
  .testimonials::-webkit-scrollbar { display: none; }
  .t-card { flex: 0 0 86%; scroll-snap-align: center; }
  .t-card.is-spot { transform: none; }
  .t-controls { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header.is-hidden { transform: none; }
  .hero.hero-stick .hero-inner { transform: none; opacity: 1; }
  .problem-scale, .solution { transform: none !important; }
  .problem-card .problem-text > *, .problem-card .problem-visual, .faq-item .faq-body { opacity: 1 !important; transform: none !important; }
  .tw-ch { visibility: visible; }
  .js .hero h1 { visibility: visible; }
}


/* ---------- Button hovers (from Vantrik - Home.webm) ---------- */
.btn-demo, .btn-explore { transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.btn-demo .ic-head, .btn-explore .ic-arrow { max-width: 0; margin: 0; opacity: 0; transform: translateX(-8px); transition: max-width .35s var(--ease), margin .35s var(--ease), opacity .3s var(--ease), transform .35s var(--ease); }
.btn-explore .ic-arrow { transform: translateX(-10px); }
.btn-demo:hover, .btn-demo:focus-visible { background-color: #3f9b55; border-color: #1b7a5c; box-shadow: 0 0 0 2px #1b7a5c, 0 8px 22px rgba(47,209,139,.28); transform: none; }
.btn-demo:hover .ic-head, .btn-demo:focus-visible .ic-head { max-width: 24px; margin-right: 12px; opacity: 1; transform: none; }
.btn-demo .ic-phone { transition: max-width .35s var(--ease), margin .35s var(--ease), opacity .25s var(--ease); max-width: 24px; }
.btn-demo:hover .ic-phone, .btn-demo:focus-visible .ic-phone { max-width: 0; margin: 0 -8px 0 0; opacity: 0; }
.btn-explore:hover, .btn-explore:focus-visible { background-color: #fff; border-color: #fff; color: #111; transform: none; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.btn-explore:hover .ic-arrow, .btn-explore:focus-visible .ic-arrow { max-width: 24px; margin-left: 12px; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn-demo *, .btn-explore * { transition: none !important; } }
.hero .btn-demo:hover, .hero .btn-demo:focus-visible, .hero-inner.is-typed .btn-demo:hover, .hero-inner.is-typed .btn-demo:focus-visible { animation: none; }

/* ---------- 2.8 Testimonials v2: three columns, outer two drift down, middle drifts up (Vantrik - Home_1.webm) ---------- */
.t-marquee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; height: min(886px, 100vh - 80px); overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.t-col { min-width: 0; overflow: hidden; }
.t-track { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; will-change: transform; animation: t-up 46s linear infinite; }
.t-col[data-dir="down"] .t-track { animation-name: t-down; }
.t-col:nth-child(3) .t-track { animation-delay: -9s; }
.t-col:nth-child(2) .t-track { animation-delay: -14s; }
@keyframes t-up   { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes t-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
.t-marquee:hover .t-track, .t-marquee:focus-within .t-track, .t-marquee.is-off .t-track { animation-play-state: paused; }
.t-marquee .t-card { margin: 0; padding: 28px; border-radius: 16px; border: 1px solid #132729; background: linear-gradient(180deg, #021515 0%, #01100c 55%, #010d0a 100%); transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); box-shadow: 0px 4px 12px 0px #0680FA1F inset; background: linear-gradient(180deg, #050505 0%, #000000 100%); border-image-source: none;  border-image-source: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 50%, rgba(19, 98, 79, 0.2) 100%); }
.t-marquee .t-card:hover, .t-marquee .t-card:focus-visible { transform: none; border-color: rgba(40,154,118,.6); box-shadow: 0 0 0 1px rgba(40,154,118,.25), 0 14px 36px rgba(0,0,0,.5); outline: none; }
.t-marquee .t-card figcaption { gap: 12px; margin-bottom: 38px; }
.t-marquee .t-card img { width: 48px; height: 48px; flex: none; }
.t-marquee .t-card strong { font-size: 18px; line-height: 26px; font-weight: 600; color: #ebf4fe; }
.t-marquee .t-card small { font-size: 14px; line-height: 20px; color: #cdd6df; display: block; }
.t-marquee .stars { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; color: #ebf4fe; font-size: 12px; }
.t-marquee .stars span { margin-left: 4px; font-weight: 500; }
.t-marquee .t-card blockquote { font-size: 16px; line-height: 24px; color: #ebf4fe; margin: 0; }
.t-marquee .t-card blockquote.it { font-style: italic; }
@media (max-width: 1040px) { .t-marquee .t-card { padding: 22px; } .t-marquee .t-card figcaption { margin-bottom: 24px; } }
@media (max-width: 860px) { .t-marquee { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; height: 720px; } .t-col:nth-child(3) { display: none; } .t-track { gap: 16px; } }
@media (max-width: 760px) {
  /* phones: swipeable carousel of the nine real cards */
  .t-marquee { display: flex; gap: 14px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .t-marquee::-webkit-scrollbar { display: none; }
  .t-col, .t-col:nth-child(3) { display: contents; }
  .t-track { display: contents; animation: none; }
  .t-marquee .t-card { flex: 0 0 86%; scroll-snap-align: center; }
  .t-marquee .t-card.is-dup { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .t-track { animation: none !important; }
  .t-marquee { height: auto; -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .t-marquee .t-card.is-dup { display: none; }
}

/* header CTA: grows from its centre without moving the navigation (li keeps the resting size) */
.nav-cta { position: relative; width: 157px; height: 52px; flex: none; }
.nav-cta .btn-demo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.nav-cta .btn-demo:hover, .nav-cta .btn-demo:focus-visible { transform: translate(-50%, -50%); }
@media (max-width: 860px) { .nav-cta { width: auto; height: auto; } .nav-cta .btn-demo { position: static; transform: none; } .nav-cta .btn-demo:hover, .nav-cta .btn-demo:focus-visible { transform: none; } }

/* ---------- Splash cursor (fluid simulation overlay) ---------- */
.splash-cursor { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; mix-blend-mode: screen; }
.splash-cursor canvas { display: block; width: 100% !important; height: 100% !important; }

/* ---------- Hero Vanta globe ---------- */
.hero-media .vanta-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-media.vanta-on picture, .hero-media.vanta-on img { opacity: 0; }
.hero-media picture, .hero-media img { transition: opacity .8s var(--ease); }
.hero-media.vanta-on::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(3,5,15,.55), rgba(3,5,15,0) 65%); }

/* ---------- SAP Problem cards: richer text panel ---------- */
.problem-stack { counter-reset: prob; }
.problem { counter-increment: prob; }
.problem-card { /*background:
  radial-gradient(60% 90% at 8% 0%, rgba(47,209,139,.16), transparent 60%),
  radial-gradient(50% 70% at 100% 100%, rgba(229,46,46,.12), transparent 65%),
  linear-gradient(180deg, #050505 0%, #000000 100%); */}
/* ghost index number */
.problem-text { position: relative; }
.problem-text::before { content: counter(prob, decimal-leading-zero); position: absolute; right: 6%; top: -40px; font-size: clamp(4.5rem, 9vw, 6.5rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(76,195,116,.22); pointer-events: none; z-index: -1; }
/* eyebrow pill */
.problem-num { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 20px; font-size: .8rem; line-height: 1; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #bff3d6; border: 1px solid rgba(76,195,116,.4); border-radius: 999px; background: rgba(47,209,139,.03); }
.problem-num::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4cc374; box-shadow: 0 0 0 4px rgba(76,195,116,.2), 0 0 14px #4cc374; }
/* headline with gradient */
.problem-text h3 { margin-bottom: 20px; font-size: clamp(1.7rem, 2.1vw, 2.8rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; background: linear-gradient(100deg, #fff 0%, #8ff0b8 55%, #4cc374 100%); -webkit-background-clip: text; background-clip: text; color: #fff; }
/* "what traditional SAP does wrong" callout */
.problem-text p { position: relative; max-width: 400px; padding: 14px 16px 14px 52px; font-size: .95rem; line-height: 1.5; color: #ffb4b4; border: 1px solid rgba(229,46,46,.35); border-radius: 14px; background: linear-gradient(90deg, rgba(229,46,46,.14), rgba(229,46,46,.04)); }
.problem-text p::before { content: ""; position: absolute; left: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: #e52e2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 0 16px rgba(229,46,46,.5); }
@media (max-width: 860px) { .problem-text::before { display: none; } }

/* product preview: while the video plays in its frame, keep the frame flat and still */
.preview.is-playing .preview-frame { transform: none; }
.preview.is-playing .preview-poster { transform: none; }
.preview-video { cursor: pointer; }

/* ---------- Responsive hardening ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, svg { max-width: 100%; }
@media (max-width: 980px) { .solution::before { display: none; } }
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(2rem, 7.4vw, 56px); line-height: 1.18; margin: 18px 0 14px; }
  .section-head h2 { font-size: clamp(1.75rem, 5vw, 40px); line-height: 1.15; }
  .cta h2 { font-size: clamp(1.9rem, 6vw, 44px); line-height: 1.12; letter-spacing: -.5px; }
  .solution-text h3 { font-size: clamp(1.5rem, 3.6vw, 30px); line-height: 1.2; }
  .banner h2 { font-size: clamp(1.6rem, 5vw, 34px); line-height: 1.2; }
  .section-head p, .solution-text p, .cta p, .banner p { font-size: 16px; line-height: 1.55; }
}
@media (max-width: 480px) {
  .cta-form input { flex: none; width: 100%; height: 49px; }
  .cta-form .btn-yellow { height: 49px; }
  .btn-row { flex-direction: column; align-items: stretch; width: min(100%, 320px); margin-inline: auto; }
  .btn-row .btn { justify-content: center; }
  .banner .btn-row { margin-inline: 0; }
}
@media (max-width: 760px) { .section-head h2 br, .banner h2 br, .cta h2 br { display: none; } }

/* ---------- Mobile menu: full-screen overlay + morphing toggle ---------- */
.mnav { display: none; }
@media (max-width: 1040px) {
  .nav-links { display: none !important; }
  .nav-toggle { position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .05); cursor: pointer; transition: background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), transform .35s var(--ease); -webkit-tap-highlight-color: transparent; }
  .nav-toggle:hover { transform: scale(1.06); }
  .nav-toggle:active { transform: scale(.94); }
  .nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  /* thin ring that keeps turning around the button */
  .nav-toggle::after { content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 1.5px solid rgba(255, 255, 255, .1); border-top-color: rgba(76, 195, 116, .9); animation: toggle-spin 5s linear infinite; pointer-events: none; opacity: .8; transition: opacity .4s; }
  .nav-toggle span.bars { position: relative; display: block; width: 20px; height: 14px; margin: 0; background: none; transition: none; }
  .nav-toggle .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform .5s var(--ease), opacity .3s var(--ease), width .4s var(--ease), background .3s; }
  .nav-toggle .bars i:nth-child(1) { top: 0; }
  .nav-toggle .bars i:nth-child(2) { top: 6px; width: 70%; left: 30%; }
  .nav-toggle .bars i:nth-child(3) { top: 12px; }
  .nav-toggle:hover .bars i:nth-child(2) { width: 100%; left: 0; }

  .mnav { position: fixed; inset: 0; z-index: 45; display: flex; align-items: normal; padding: 96px clamp(44px, 12vw, 120px) 48px; overflow-y: auto; background: radial-gradient(90% 60% at 10% 0%, rgba(47, 209, 139, .14), transparent 60%), linear-gradient(180deg, rgba(10, 12, 13, .94), rgba(22, 24, 26, .97)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
  .mnav nav { width: 100%; margin:inherit; }
  .mnav-list { list-style: none; margin: 0; padding: 0; }
  .mnav-list li { position: relative; opacity: 0; transform: translateY(26px); transition: opacity .3s ease, transform .3s ease; }
  .mnav-list a:not(.btn) { position: relative; display: block; padding: 13px 0; font-family: var(--font-head); font-size: clamp(1.15rem, 4.6vw, 1.6rem); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; color: rgba(255, 255, 255, .42); transition: color .3s var(--ease), transform .4s var(--ease); }
  .mnav-list a:not(.btn):hover, .mnav-list a:not(.btn):focus-visible, .mnav-list a.active { color: #fff; }
  .mnav-list a:not(.btn):hover { transform: translateX(6px); }
  /* marker dot, and a line running out to the screen edge for the current page */
  .mnav-list a:not(.btn)::before { content: ""; position: absolute; left: -26px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background .3s, box-shadow .3s, transform .3s; }
  .mnav-list a.active::before { background: #4cc374; box-shadow: 0 0 0 4px rgba(76, 195, 116, .18), 0 0 14px #4cc374; transform: scale(1.2); }
  .mnav-list a:not(.btn)::after { content: ""; position: absolute; right: 100%; top: 50%; width: clamp(44px, 12vw, 120px); height: 1px; margin-right: 22px; background: linear-gradient(90deg, transparent, #4cc374); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
  .mnav-list a.active::after { transform: scaleX(1); }
  .mnav-cta { margin-top: 26px; }
  .mnav-cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  .menu-open { overflow: hidden; }
  .menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
  .menu-open .mnav-list li { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, .12s), transform .7s var(--ease) var(--d, .12s); }
  /* header while the menu is open: pill and logo fade out, only the toggle stays */
  .site-header { transition: transform .55s var(--ease); }
  .menu-open .site-header { transform: none !important; }
  .menu-open .nav { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none !important; }
  .nav { transition: background .5s var(--ease), border-color .5s var(--ease); }
  .brand { transition: opacity .4s var(--ease); }
  .menu-open .brand { opacity: 0; pointer-events: none; }
  .menu-open .nav-toggle { background: #4cc374; border-color: #4cc374; box-shadow: 0 0 0 5px rgba(76, 195, 116, .18), 0 10px 30px rgba(76, 195, 116, .45); }
  .menu-open .nav-toggle::after { opacity: 0; }
  .menu-open .nav-toggle .bars i { background: #04140b; }
  .menu-open .nav-toggle .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav-toggle .bars i:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@keyframes toggle-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle::after { animation: none; }
  .mnav, .menu-open .mnav, .mnav-list li, .menu-open .mnav-list li, .nav-toggle .bars i { transition: none !important; }
}

/* ---------- Glowing, parallax section backgrounds (How it works / Product preview / Our Work / FAQ) ---------- */
.has-fx { position: relative; }
.has-fx > .container { position: relative; z-index: 1; }
.fx { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }
.fx-l { position: absolute; inset: 0; display: block; will-change: transform; transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0); }
.fx-l > i { position: absolute; display: block; }
/* soft glowing orbs */
.fx-orb { border-radius: 50%; width: var(--s, 54vw); height: var(--s, 54vw); max-width: 760px; max-height: 760px; background: radial-gradient(circle at 50% 50%, rgba(21, 103, 121, 0.26), var(--c2, rgba(47, 209, 139, 0)) 68%); animation: fx-float var(--t, 16s) ease-in-out infinite alternate; }
.fx-orb.o1 { left: -12%; top: 6%; --t: 18s; }
.fx-orb.o2 { right: -14%; top: 38%; --s: 52vw; --c1: var(--k2, rgba(32, 170, 200, .15)); --t: 21s; animation-delay: -6s; }
.fx-orb.o3 { left: 28%; bottom: -8%; --s: 38vw; --c1: var(--k3, rgba(245, 197, 24, .2)); --t: 15s; animation-delay: -3s; }
/* dotted grid, faded toward the edges */
.fx-grid { inset: -10% 0; background-image: radial-gradient(rgba(255, 255, 255, .24) 1px, transparent 1.6px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 55% at 50% 50%, #000, transparent); opacity: .8; }
/* thin rings that slowly turn */
.fx-ring { border-radius: 50%; border: 1px solid rgba(76, 195, 116, .35); animation: fx-spin 60s linear infinite; }
.fx-ring.r1 { width: min(52vw, 640px); aspect-ratio: 1; left: -10%; top: 12%; border-style: dashed; }
.fx-ring.r2 { width: min(40vw, 480px); aspect-ratio: 1; right: -6%; bottom: 8%; animation-direction: reverse; animation-duration: 80s; border-color: rgba(245, 197, 24, .3); }
.fx-ring.r1::after, .fx-ring.r2::after { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #4cc374; box-shadow: 0 0 14px 3px rgba(76, 195, 116, .7); }
/* glowing specks */
.fx-dot { width: 5px; height: 5px; border-radius: 50%; background: #9ff0c0; box-shadow: 0 0 12px 3px rgba(76, 195, 116, .7); animation: fx-twinkle 3.6s ease-in-out infinite alternate; }
.fx-dot.d1 { left: 14%; top: 24%; } .fx-dot.d2 { left: 84%; top: 52%; animation-delay: -1.4s; } .fx-dot.d3 { left: 40%; top: 80%; animation-delay: -2.4s; }
/* per-section colour moods */
.fx-product { --k2: rgba(76, 195, 116, .3); --k3: rgba(32, 170, 200, .26); }
.fx-product .fx-orb.o1 { --c1: rgba(47, 209, 139, .05); left: 18%; top: 22%; --s: 60vw; }
.fx-how .fx-orb.o3 { --k3: rgba(245, 197, 24, .24); }
.fx-solutions { --k2: rgba(40, 150, 230, .32); --k3: rgba(76, 195, 116, .26); }
.fx-faq { --k2: rgba(32, 170, 200, .3); --k3: rgba(47, 209, 139, .26); }
@keyframes fx-float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5%, -6%, 0) scale(1.1); } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-twinkle { from { opacity: .25; transform: scale(.7); } to { opacity: 1; transform: scale(1.3); } }
@media (max-width: 760px) { .fx-orb { --s: 90vw; } .fx-orb.o2 { --s: 100vw; } .fx-ring.r1 { width: 90vw; } .fx-ring.r2 { width: 70vw; } .fx-grid { background-size: 26px 26px; } }
@media (prefers-reduced-motion: reduce) { .fx-l { transform: none; } .fx-orb, .fx-ring, .fx-dot { animation: none; } }

/* ---------- Compact header: the same slim design at the top of the page and while scrolling ---------- */
.site-header { transition: transform .55s var(--ease), top .45s var(--ease); }
.site-header .nav, .site-header .brand img, .site-header .nav-links, .site-header .nav-cta, .site-header .nav-toggle { transition-property: padding, height, width, margin, background, border-color, box-shadow, transform; transition-duration: .45s; transition-timing-function: var(--ease); }
.site-header .brand img { transition-property: height; }
.site-header { top: 10px; }
.site-header .nav { padding: 3px 34px; }
.site-header .brand img { height: 30px; }
.site-header .nav-links { padding-block: 6px; }
.site-header .nav-cta { height: 42px; }
.site-header .nav-cta .btn-demo { padding-block: 9px; }
@media (max-width: 1040px) {
  .site-header .nav { padding: 6px 22px 6px 24px; }
  .site-header .brand img { height: 28px; }
  .site-header .nav-toggle { width: 38px; height: 38px; border-radius: 12px; }
  .site-header .nav-toggle::after { inset: -4px; border-radius: 15px; }
  .menu-open .site-header { top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .nav, .site-header .brand img { transition: none !important; } }

/* ---------- SAP Problem stack: the last card fully covers the ones before it ---------- */
/* Every card keeps the same sticky offset AND the same bottom margin, so when the list ends
   they all release together and no earlier card peeks out above the last one. */
.problem-stack { display: flow-root; margin-bottom: calc(90px - 14vh); }
.problem:last-child { margin-bottom: 14vh; }
.problem:nth-child(n) { top: 96px; }
@media (max-width: 860px) {
  .problem-stack { margin-bottom: calc(90px - 10vh); }
  .problem:last-child { margin-bottom: 10vh; }
  .problem:nth-child(n) { top: 96px; }
}

/* ---------- Our Work stack: the last folder card settles in line with the ones before it ---------- */
/* Same bottom margin on every card, so they all release together at the end of the list. */
@media (min-width: 861px) {
  .solutions { display: flow-root; margin-bottom: -14vh; }
  .solution:last-child { margin-bottom: 14vh; }
}

/* ---------- The SAP Problem: pill + title stay pinned at the top until the last card has scrolled by ---------- */
.section-lead { text-align: center; max-width: 700px; margin: 0 auto 54px; color: var(--muted); font-size: 18px; line-height: 24px; color: #ffffff; }
@media (min-width: 861px) {
  .about-head { position: sticky; top: 84px; z-index: 6; margin-bottom: 0; padding-bottom: 18px; }
  /* full-width backdrop so cards slide neatly underneath the pinned title */
  .about-head::before { content: ""; position: absolute; top: -84px; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; max-width: 100vw; z-index: -1; background: linear-gradient(180deg, var(--bg) 0, var(--bg) 82%, rgba(3, 5, 15, 0)); pointer-events: none; }
  .about-lead { margin-bottom: 40px; }
  #about .problem-stack { --problem-top: 300px; }
  #about .problem:nth-child(n) { top: var(--problem-top, 300px); height: clamp(340px, calc(100vh - var(--problem-top, 300px) - 28px), 520px); z-index: 1; }
}
@media (max-width: 860px) { .about-lead { margin-bottom: 36px; } }

/* SAP Problem: pinned title leaves together with the last card (extend its sticky box down to the card's release point) */
@media (min-width: 861px) {
  #about .container { display: flex; flex-direction: column; margin-bottom: calc(90px - 14vh); }
  #about .about-head { margin-bottom: var(--head-extend, 0px); flex: none; }
  #about .about-lead { margin-top: calc(var(--head-extend, 0px) * -1); flex: none; }
  #about .problem-stack { margin-bottom: 0; }
}

/* ---------- Our Work: pill + title pinned until the last card has scrolled by ---------- */
@media (min-width: 861px) {
  .work-head { position: sticky; top: 84px; z-index: 6; margin-bottom: var(--head-extend, 0px); padding-bottom: 18px; flex: none; }
  .work-head::before { content: ""; position: absolute; top: -84px; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; max-width: 100vw; z-index: -1; background: linear-gradient(180deg, var(--bg) 0, var(--bg) 82%, rgba(3, 5, 15, 0)); pointer-events: none; }
  #solutions .container { display: flex; flex-direction: column; }
  .work-lead { margin: calc(var(--head-extend, 0px) * -1) auto 64px; flex: none; }
  #solutions .solutions { flex: none; --sol-top: 330px; }
  #solutions .solution:nth-child(1) { top: var(--sol-top); }
  #solutions .solution:nth-child(2) { top: calc(var(--sol-top) + 33px); }
  #solutions .solution:nth-child(3) { top: calc(var(--sol-top) + 65px); }
  #solutions .solution:nth-child(4) { top: calc(var(--sol-top) + 100px); }
}

@media (min-width: 861px) {
  .work-head h2 { font-size: 40px; line-height: 44px; margin: 12px 0 0; }
  .work-head { padding-bottom: 14px; }
  .work-lead { margin-bottom: 48px; }
  #solutions .solution-img { max-height: 340px; }
}
@media (min-width: 861px) and (max-height: 860px) {
  .work-head h2 { font-size: 34px; line-height: 38px; margin-top: 8px; }
  #solutions .solution { padding: 22px 28px; gap: 28px; }
  #solutions .solution-text h3 { font-size: 26px; line-height: 30px; margin-bottom: 10px; }
  #solutions .solution-text p { font-size: 16px; line-height: 22px; margin-bottom: 10px; }
  #solutions .solution-text .check-list li { padding-top: 4px; padding-bottom: 4px; }
  #solutions .solution-img { max-height: 300px; }
  #solutions .solution-img img { height: 300px; }
}
@media (min-width: 861px) {
  .work-head::before { background: linear-gradient(180deg, rgba(3, 5, 15, .96) 0, rgba(3, 5, 15, .96) 80%, rgba(3, 5, 15, 0)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent); }
}

@media (min-width: 861px) {
  #solutions .solution:nth-child(5) { top: calc(var(--sol-top) + 135px); }
  #solutions .solution:nth-child(6) { top: calc(var(--sol-top) + 200px); }
}

/* Our Work / Use Cases: six tabs laid out side by side along the top edge of the stack (no overlaps) */
@media (min-width: 981px) {
  #solutions .solution::before { padding: 9px 16px 8px; font-size: .74rem; }
  #solutions .solution:nth-child(1)::before { left: 5px; }
  #solutions .solution:nth-child(2)::before { left: 196px; }
  #solutions .solution:nth-child(3)::before { left: 365px; }
  #solutions .solution:nth-child(4)::before { left: 501px; }
  #solutions .solution:nth-child(5)::before { left: 681px; }
  #solutions .solution:nth-child(6)::before { left: 859px; }
}

/* Product preview: full-width (edge-to-edge) video box */
#product .showcase.preview, #product .showcase.preview.reveal { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); padding: 0; border-radius: 0; border-left: 0; border-right: 0; }
#product .preview-frame { border-radius: 0; }
#product .preview-frame img, #product .preview-frame video { max-height: 90vh; }
#product .preview-frame img, #product .preview-frame video { border-radius: 0; }
