/* ============================================================
   Self-hosted webfonts — Sora and Inter, latin + latin-ext.

   Served from our own origin, so rendering text costs the visitor
   no request to a third party. Both are variable fonts: one file
   per family and subset covers the whole weight range, which is why
   font-weight below is a range rather than a single value.
   ============================================================ */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2-variations'), url('../fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/sora-latin-ext.woff2') format('woff2-variations'), url('../fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2-variations'), url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2-variations'), url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Sentradesk — v1 "Sophisticated Enterprise"
   Deep navy · refined cyan/indigo accent · glass · tasteful motion
   ============================================================ */

:root {
  --bg:        #070A12;
  --bg-2:      #0A0E1A;
  --surface:   #0F1524;
  --surface-2: #131A2C;
  --line:      rgba(146, 168, 214, 0.12);
  --line-2:    rgba(146, 168, 214, 0.20);
  --text:      #EAF0FB;
  --muted:     #94A2BE;
  --muted-2:   #7684A3;   /* 4.86:1 on --surface — the old #64738F was 3.81:1, under AA */
  --accent:    #38E1FF;
  --accent-2:  #6366F1;
  --accent-3:  #22D3A6;
  --glow:      rgba(56, 225, 255, 0.35);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1200px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Ambient background ---------- */
.bg-aura {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: var(--bg);
}
.bg-aura::before, .bg-aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.bg-aura::before {
  width: 60vw; height: 60vw; top: -20vw; left: -10vw;
  background: radial-gradient(circle, rgba(56,225,255,0.22), transparent 60%);
  animation: drift1 26s var(--ease) infinite alternate;
}
.bg-aura::after {
  width: 55vw; height: 55vw; top: 20vh; right: -15vw;
  background: radial-gradient(circle, rgba(99,102,241,0.22), transparent 60%);
  animation: drift2 32s var(--ease) infinite alternate;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image:
    linear-gradient(rgba(146,168,214,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146,168,214,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 40%, transparent 100%);
}
@keyframes drift1 { to { transform: translate(10vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, 6vh) scale(1.1); } }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section { position: relative; padding: clamp(64px, 9vw, 128px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(56,225,255,0.05);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.2vw, 46px); margin: 20px 0 16px; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, #a5b4fc 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  color: #05070d; background: linear-gradient(100deg, var(--accent), #7dd3fc 60%, var(--accent-2));
  box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--glow); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(56,225,255,0.06); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent; padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(7,10,18,0.72); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line); padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand b { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand span { color: var(--muted-2); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; color: var(--text); cursor: pointer; }

/* ---------- Announcement ----------
   Not used on the corporate site: a product promo does not belong in the
   chrome of every page. Kept because re-adding a site-wide banner should be a
   markup change and nothing more — drop the .announce div back in above the
   header and main.js offsets the fixed header beneath it automatically,
   sliding it up to top:0 as the bar scrolls away. */
.announce {
  position: relative; z-index: 101; text-align: center; font-size: 13.5px; color: var(--muted);
  padding: 9px 16px; border-bottom: 1px solid var(--line); background: rgba(56,225,255,0.04);
}
.announce a { color: var(--accent); text-decoration: none; font-weight: 600; }
.announce a:hover { text-decoration: underline; }
.announce .tag { display:inline-block; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#05070d; background:var(--accent); padding:2px 7px; border-radius:5px; margin-right:8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(120px, 16vw, 180px); padding-bottom: clamp(70px, 9vw, 120px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 780px); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 22px 0; }
.hero .lead { font-size: clamp(17px, 1.8vw, 20px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; color: var(--muted-2); font-size: 13.5px; }
.hero-trust b { color: var(--text); font-family: var(--font-head); }
.hero-trust .dot { color: var(--accent); }

/* Floating dashboard mock */
.mock {
  position: relative; border-radius: var(--radius); padding: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mock::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5;
}
.mock-top { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; }
.mock-top i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-top i:first-child { background: #ff5f57; } .mock-top i:nth-child(2){ background:#febc2e;} .mock-top i:nth-child(3){ background:#28c840;}
.mock-top span { margin-left: auto; font-size: 11px; color: var(--muted-2); font-family: var(--font-head); }
.mock-live { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--accent-3); }
.mock-live::before { content:""; width:7px;height:7px;border-radius:50%;background:var(--accent-3); box-shadow:0 0 8px var(--accent-3); animation:pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.mock-stat { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.mock-stat small { color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.mock-stat b { display: block; font-family: var(--font-head); font-size: 22px; margin-top: 4px; }
.mock-stat b.accent { color: var(--accent); }
.mock-chart { height: 120px; display: flex; align-items: flex-end; gap: 7px; padding: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mock-chart span { flex: 1; background: linear-gradient(to top, var(--accent-2), var(--accent)); border-radius: 4px 4px 0 0; opacity: .85; animation: grow 1.2s var(--ease) backwards; }
@keyframes grow { from { height: 0 !important; } }
.mock-row { display:flex; align-items:center; gap:10px; padding:11px 12px; margin-top:10px; background:rgba(255,255,255,0.02); border:1px solid var(--line); border-radius:var(--radius-sm); font-size:12.5px; }
.mock-row .pin { width:8px;height:8px;border-radius:50%; background:var(--accent); box-shadow:0 0 10px var(--glow); }
.mock-row .m { color:var(--muted); } .mock-row .r { margin-left:auto; color:var(--accent-3); font-family:var(--font-head); }

/* ---------- Hero particle wave ---------- */
/* Full-bleed, frameless backdrop — the wave sits behind the hero copy and
   dissolves straight into the page. */
.wave-panel {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  overflow: hidden;
  opacity: 0.42;
}
.wave-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 58%, rgba(56,225,255,0.09), transparent 70%);
}
#wave-canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block;
  /* Feather every edge so there is no visible boundary against the page. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 16%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 16%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.wave-tag {
  position: absolute; right: 26px; bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
  padding: 0; border: 0; background: none;
}
.wave-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); animation: pulse 1.6s infinite; }

/* ---------- Marquee / trust logos ---------- */
.trust { padding: 44px 0; border-block: 1px solid var(--line); }
.trust p { text-align: center; color: var(--muted-2); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.logo-row span {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 2vw, 22px);
  color: var(--muted); opacity: .7; letter-spacing: -0.01em; transition: color .3s, opacity .3s;
}
.logo-row span:hover { color: var(--text); opacity: 1; }

/* ---------- Platform cards ---------- */
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  display: flex; flex-direction: column;
}
.pcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.pcard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.pcard:hover::before { transform: scaleX(1); }
.pcard .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 24px;
  background: rgba(56,225,255,0.08); border: 1px solid var(--line-2); margin-bottom: 18px;
}
.pcard .badge { position:absolute; top:20px; right:20px; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#05070d; background:var(--accent-3); padding:3px 8px; border-radius:6px; }
.pcard h3 { margin-bottom: 4px; }
.pcard .klass { font-family: var(--font-head); font-size: 12px; color: var(--accent); letter-spacing: .04em; margin-bottom: 12px; }
.pcard p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.pcard ul { list-style: none; margin-bottom: 20px; display: grid; gap: 7px; }
.pcard li { font-size: 13px; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.pcard li::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 2px; border-radius: 5px; background: rgba(34,211,166,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3A6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.pcard .more { margin-top: auto; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.pcard .more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.pcard:hover .more svg { transform: translateX(4px); }

/* ---------- Value / why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.vcard { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .3s; }
.vcard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.vcard .ic { font-size: 22px; width:46px;height:46px;border-radius:12px; display:grid;place-items:center; background:rgba(99,102,241,0.1); border:1px solid var(--line-2); margin-bottom:16px; }
.vcard h3 { font-size: 17px; margin-bottom: 8px; }
.vcard p { color: var(--muted); font-size: 14px; }

/* ---------- Stats band ---------- */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(56,225,255,0.03), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Featured (ScanTraceQR) ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(150deg, var(--surface-2), var(--surface)); position: relative; overflow: hidden; }
.feature-split::before { content:""; position:absolute; width:380px;height:380px; border-radius:50%; filter:blur(90px); background:radial-gradient(circle,rgba(56,225,255,0.18),transparent 70%); top:-120px; right:-80px; }
.feature-split h2 { font-size: clamp(26px, 3.4vw, 38px); }
.feature-split ul { list-style:none; display:grid; gap:12px; margin:22px 0 26px; }
.feature-split li { display:flex; gap:11px; color:var(--muted); font-size:15px; }
.feature-split li b { color: var(--text); }
.qr-visual { position:relative; z-index:1; display:grid; place-items:center; }
.qr-card { width:100%; max-width:340px; background:rgba(255,255,255,0.03); border:1px solid var(--line-2); border-radius:18px; padding:20px; }
.qr-code { width:120px; height:120px; margin:0 auto 16px; border-radius:12px; background:
  conic-gradient(from 0deg, #0a0e1a 25%, #0f1524 0 50%, #0a0e1a 0 75%, #0f1524 0);
  background-size:20px 20px; border:1px solid var(--line-2); position:relative; }
.qr-code::after { content:""; position:absolute; inset:34% ; border-radius:6px; background:var(--accent); box-shadow:0 0 20px var(--glow); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner { padding: clamp(40px, 6vw, 72px); border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(ellipse at top, rgba(99,102,241,0.14), var(--surface) 70%); position: relative; overflow: hidden; }
.cta-inner::before { content:""; position:absolute; inset:0; background: linear-gradient(120deg, transparent, rgba(56,225,255,0.06), transparent); }
.cta-inner h2 { font-size: clamp(30px, 5vw, 52px); }
.cta-inner .lead { margin: 18px auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 40px 32px; margin-bottom: 48px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; color: var(--muted-2); font-size: 13px; }
.foot-legal .ph { color: var(--muted-2); }
.foot-legal mark { background: rgba(56,225,255,0.14); color: var(--accent); padding: 1px 6px; border-radius: 5px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; }

/* ---------- Custom cursor (custom-cursor.js) ---------- */
/* Hidden until the script initialises it, so pointer/touch devices and a failed
   script load both fall back to the native cursor with nothing stranded on screen. */
/* .cursor is a bare positioning host — the library overwrites its inline transform
   every frame, so all scaling lives on the children. */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1000; width: 0; height: 0;
  pointer-events: none; user-select: none; -webkit-user-select: none;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.cursor-ring, .cursor-dot {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  transition: transform .28s var(--ease), opacity .28s var(--ease),
              background-color .28s var(--ease), border-color .28s var(--ease);
}
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid var(--accent); background: rgba(56,225,255,0.05);
}
.cursor-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: var(--accent); box-shadow: 0 0 10px var(--glow);
}
.cursor--initialized { opacity: 1; visibility: visible; }
.cursor--off-screen, .cursor--disabled { opacity: 0; }

/* Hovering a link, button or card: ring swells and softens, dot recedes. */
.cursor--focused .cursor-ring { transform: scale(1.75); background: rgba(56,225,255,0.10); border-color: var(--accent-2); }
.cursor--focused .cursor-dot { transform: scale(0.4); opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .cursor { transition: opacity .3s linear; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .mock { max-width: 460px; }
  .platforms-grid, .why-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 36px 20px; }
  .feature-split { grid-template-columns: 1fr; padding: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  /* Brand, one CTA and the toggle have to share ~350px without colliding. */
  .nav { gap: 12px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 17px; }
  .brand span { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 14px; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; padding: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
  .nav-links.open a { padding: 12px 14px; }
  .platforms-grid, .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Inner pages — components shared by platform, company and
   legal pages. Everything below reuses the tokens declared in
   :root above; no new colours are introduced.
   ============================================================ */

/* Visually hidden, still announced by screen readers. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 11px 18px; border-radius: 0 0 12px 12px;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  color: #05070d; background: var(--accent); text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* Visible focus for keyboard users everywhere. */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(112px, 14vw, 156px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 58px); margin: 20px 0 18px; max-width: 18ch; }
.page-hero .lead { font-size: clamp(16px, 1.7vw, 19.5px); max-width: 62ch; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero.center .hero-cta, .page-hero.center .breadcrumb { justify-content: center; }
.page-hero .hero-cta { margin-top: 32px; }

.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
/* The 18ch cap suits a full-width hero; beside a panel the column is already narrow. */
.hero-split h1 { max-width: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li { list-style: none; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--muted-2); opacity: .6; }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Key-figure strip ---------- */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 40px; }
.kpi {
  padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.kpi b { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.kpi span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Alternating feature split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; margin-bottom: clamp(56px, 7vw, 96px);
}
.split:last-child { margin-bottom: 0; }
.split.flip > *:first-child { order: 2; }
/* Grid items default to min-width:auto, so a panel row that refuses to shrink
   would widen the whole track and push the page sideways. */
.split > *, .hero-split > *, .contact-grid > *, .legal-layout > * { min-width: 0; }
.split h3 { font-size: clamp(23px, 2.8vw, 31px); margin: 18px 0 14px; }
.split p { color: var(--muted); font-size: 15.5px; }
.split .checklist { margin-top: 22px; }

/* ---------- Check list ---------- */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.checklist li b, .checklist li strong { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 7px;
  background: rgba(34,211,166,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3A6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Panel (generic glass surface) ---------- */
.panel {
  position: relative; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.04);
}
.panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-head h4 { font-size: 14px; letter-spacing: -0.01em; }
.panel-head .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--font-head); color: var(--accent-3); }
.panel-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); animation: pulse 1.6s infinite; }

/* Rows inside a panel — used for map pins, log lines, queue tickets… */
.rows { display: grid; gap: 8px; }
.row-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 11px 13px; font-size: 12.5px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.row-item > * { min-width: 0; }
.row-item .m { overflow-wrap: anywhere; }
.row-item .pin { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.row-item .pin.warn { background: #FBBF24; box-shadow: 0 0 10px rgba(251,191,36,.5); }
.row-item .pin.ok { background: var(--accent-3); box-shadow: 0 0 10px rgba(34,211,166,.5); }
.row-item .m { color: var(--muted); }
.row-item .r { margin-left: auto; font-family: var(--font-head); color: var(--accent-3); white-space: nowrap; }
.row-item .r.muted { color: var(--muted-2); }
.row-item code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--muted); }

/* ---------- Module chips (ERP modules, integrations, sectors) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 100px; font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.chip i { font-style: normal; font-size: 15px; }

/* ---------- Numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Spec table ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spec-row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--text); }
.spec-row dd { color: var(--muted); font-size: 14.5px; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th {
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); background: rgba(255,255,255,0.02);
  position: sticky; top: 0;
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: rgba(56,225,255,0.03); }
.cmp tbody th { font-family: var(--font-head); font-weight: 600; color: var(--text); white-space: nowrap; }
.cmp tbody th small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--accent); margin-top: 3px; }
.cmp td { color: var(--muted); }
.cmp a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cmp a:hover { text-decoration: underline; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .3s, background .3s;
}
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary {
  display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  padding: 18px 22px; font-family: var(--font-head); font-size: 16px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338E1FF' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); font-size: 15px; max-width: 72ch; }
.faq .answer a { color: var(--accent); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--text); }
.field label .opt { color: var(--muted-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-2);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(56,225,255,0.04);
  box-shadow: 0 0 0 3px rgba(56,225,255,0.10);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A2BE' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px; padding-right: 42px; }
.field select option { background: var(--surface); color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field .error { font-size: 12.5px; color: #FCA5A5; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #F87171; }
.field.invalid .error { display: block; }
.form-note { font-size: 13px; color: var(--muted-2); }
.form-note a { color: var(--accent); }
.form-status {
  display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px;
  border: 1px solid rgba(34,211,166,0.35); background: rgba(34,211,166,0.08); color: var(--text);
}
.form-status.show { display: block; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); }

/* ---------- Contact routes ---------- */
.routes { display: grid; gap: 14px; }
.route {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .3s, transform .3s var(--ease);
}
.route:hover { border-color: var(--line-2); transform: translateY(-3px); }
.route .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgba(56,225,255,0.08); border: 1px solid var(--line-2); }
.route h3 { font-size: 15.5px; margin-bottom: 4px; }
.route p { color: var(--muted); font-size: 13.5px; }
.route .val { display: block; margin-top: 6px; color: var(--accent); font-family: var(--font-head); font-size: 13.5px; font-weight: 600; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.member { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: center; }
.member .av {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #05070d;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}
.member h3 { font-size: 16px; }
.member span { display: block; margin-top: 4px; font-size: 13px; color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; max-width: 760px; }
.tl-item { position: relative; padding: 0 0 34px 34px; border-left: 1px solid var(--line-2); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--glow);
}
.tl-item time { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { font-size: 17px; margin: 7px 0 6px; }
.tl-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: linear-gradient(140deg, rgba(56,225,255,0.06), rgba(99,102,241,0.05));
}
.callout .ic { flex: none; font-size: 20px; }
.callout h3 { font-size: 16px; margin-bottom: 6px; }
.callout p { color: var(--muted); font-size: 14.5px; max-width: 78ch; }
.callout a { color: var(--accent); }

/* ---------- Legal / long-form prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 14px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { font-size: 13.5px; color: var(--muted-2); padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); }
.prose th { font-family: var(--font-head); font-size: 13px; color: var(--text); background: rgba(255,255,255,0.02); }

.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: 100px; display: grid; gap: 2px; }
.legal-nav h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.legal-nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 7px 12px; border-radius: 9px; transition: color .2s, background .2s; }
.legal-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ---------- Active nav state ---------- */
.nav-links a.active { color: var(--text); background: rgba(56,225,255,0.08); }

/* ---------- 404 ---------- */
.notfound { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(80px, 18vw, 180px); line-height: 1; letter-spacing: -0.05em; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 34px; }
.notfound .links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.notfound .links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-split, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > *:first-child { order: 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav h4 { width: 100%; margin-bottom: 4px; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- Late corrections ---------- */
/* Content links inside components that have no colour rule of their own would
   otherwise fall back to the browser's default blue, which is unreadable here. */
.consent a, .spec a, .step p a, .kpi a, .callout p a { color: var(--accent); }
/* Keep the comparison table's action column on one line. */
.cmp td:last-child { white-space: nowrap; }
/* Below ~380px there is no room for a header CTA beside the brand and toggle;
   the same action is one tap away inside the menu. */
@media (max-width: 380px) {
  .nav-cta .btn-primary { display: none; }
}
