/* Suprora components — the website's component CSS (site.css), driven by tokens.css.
   Mode-dependent colours use the semantic tokens (surface, text, action…), so any element
   with data-theme="dark" or class="on-dark" becomes a navy section. */

:host {
  --font: var(--font-sans);
  --mono: var(--font-mono);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
.on-dark {
  --surface: var(--navy-900); --surface-alt: var(--navy-950);
  --text: var(--on-dark); --text-muted: var(--on-dark-2); --text-subtle: var(--on-dark-2);
  --hairline: var(--line-dark); --hairline-strong: rgba(255, 255, 255, 0.22);
  --link: var(--accent-on-dark); --focus: var(--accent-on-dark);
  --action: var(--white); --action-hover: var(--light-hover); --on-action: var(--navy-800);
}
[data-theme="dark"], .on-dark { background: var(--surface); color: var(--text); }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--surface);
  font-feature-settings: "ss01" on, "cv11" on; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4vw, var(--pad)); }
.section { padding-block: clamp(88px, 11vw, var(--section-y)); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, var(--section-y-tight)); }
.bg-paper { background: var(--surface-alt); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, var(--gap-split)); }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* type (fluid versions of the token styles) */
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); display: inline-flex; align-items: center; gap: 10px; }
.label--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.display { font-size: clamp(44px, 7.1vw, 116px); line-height: .94; letter-spacing: -.048em; font-weight: 560; text-wrap: balance; }
.hero { font-size: clamp(44px, min(5.3vw, 9.2vh), 90px); line-height: .94; letter-spacing: -.048em; font-weight: 560; text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.6vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 560; text-wrap: balance; }
.h2 { font-size: clamp(34px, 4.1vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 560; text-wrap: balance; }
.h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 560; }
.h4 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 560; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--text-muted); text-wrap: pretty; max-width: 58ch; }
.muted { color: var(--text-muted); }
.statement { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.metric { font-size: clamp(64px, 10.5vw, 168px); line-height: .9; letter-spacing: -.06em; font-weight: 520; display: flex; flex-wrap: wrap; align-items: baseline; gap: .12em .2em; }
.metric .from { color: var(--text-subtle); }
.metric .to-arrow { width: .5em; height: .5em; color: var(--accent); align-self: center; }
.positioning { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.positioning i { font-style: normal; color: var(--accent-on-dark); }

/* buttons */
.btn {
  --bg: var(--action); --fg: var(--on-action); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 24px; border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { --bg: var(--action-hover); }
.btn .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--text); --bd: var(--hairline-strong); }
.btn--ghost:hover { --bg: var(--text); --fg: var(--surface); --bd: var(--text); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap-inline); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.link-arrow .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--hairline-strong); font-size: 14px; color: var(--text); transition: background .25s, color .25s, border-color .25s; }
a.chip:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* header */
.site-header { height: var(--header-h); color: var(--ink); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: var(--line); }
.site-header[data-theme="dark"] { color: #fff; background: transparent; }
.site-header[data-theme="dark"].is-scrolled { background: rgba(4, 10, 31, .72); border-bottom-color: var(--line-dark); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 20px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 450; opacity: .82; }
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: currentColor; }
.nav__link .chev { width: 12px; height: 12px; }
.site-header .btn { margin-left: 10px; }

/* hero index (product strip at the bottom of a dark hero) */
.hero-index__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.hero-index__item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 4px 0; }
.hero-index__item + .hero-index__item { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.hero-index__item .num { font-size: 12px; color: var(--accent-on-dark); }
.hero-index__item strong { font-weight: 520; font-size: 16px; letter-spacing: -.01em; color: #fff; }
.hero-index__item span { font-size: 13.5px; color: var(--on-dark-2); }

/* engines (three columns under a top rule) */
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.engine { border-top: 1px solid var(--text); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.engine__top { display: flex; justify-content: space-between; align-items: baseline; }
.engine__top .num { font-size: 13px; color: var(--text-subtle); }
.engine p { color: var(--text-muted); }
.engine__proof { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* product card */
.product-card { display: flex; flex-direction: column; gap: 22px; }
.product-card__visual { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint, var(--surface-alt)); isolation: isolate; }
.product-card__visual > .stage { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.product-card:hover .product-card__visual > .stage { transform: scale(1.025); }
.product-card__meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding-inline: 4px; }
.product-card__meta .num { font-size: 13px; color: var(--text-subtle); }
.product-card__meta .h3, .product-card__meta p, .product-card__cat { grid-column: 2; }
.product-card__meta p { color: var(--text-muted); max-width: 46ch; }
.product-card__cat { font-size: 13px; color: var(--text-subtle); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.product-card__meta .go { grid-column: 3; grid-row: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline-strong); display: inline-flex; align-items: center; justify-content: center; transition: background .3s, color .3s, border-color .3s; }
.product-card__meta .go svg { width: 16px; height: 16px; }
.product-card:hover .go { background: var(--text); border-color: var(--text); color: var(--surface); }

/* device frames */
.showcase { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint, var(--surface-alt)); isolation: isolate; }
.frame-browser { position: absolute; border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-frame); display: flex; flex-direction: column; }
.frame-browser__bar { height: 28px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #eef1f6; border-bottom: 1px solid #e1e5ee; }
.frame-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #cfd5e2; }
.frame-browser__bar b { margin-left: 12px; height: 14px; flex: 0 1 220px; border-radius: 7px; background: #fff; }
.frame-browser--dark { background: #05070f; }
.frame-browser--dark .frame-browser__bar { background: #121624; border-color: #1d2233; }
.frame-browser--dark .frame-browser__bar i { background: #2b3146; }
.frame-browser--dark .frame-browser__bar b { background: #1d2233; }
.frame-browser img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top left; }
.frame-tablet { position: absolute; border-radius: var(--radius-device); background: #10131c; padding: 10px; box-shadow: var(--shadow-device); }
.frame-tablet img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 13px; }
.frame-phone { position: absolute; border-radius: 30px; background: #10131c; padding: 8px; box-shadow: var(--shadow-device); }
.frame-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; }
.cutout { position: absolute; filter: drop-shadow(0 30px 40px rgba(10, 20, 48, .28)); }

/* facts */
.facts { display: grid; border-top: 1px solid var(--hairline); }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); padding-top: 3px; }
.facts dd { color: var(--text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }

/* numbered list */
.problem-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.problem-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--hairline); font-size: 18px; letter-spacing: -.01em; }
.problem-list .num { font-size: 12px; color: var(--text-subtle); padding-top: 5px; }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, var(--gap-split)); }
.how-step { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 40px; opacity: .32; transition: opacity .5s var(--ease); }
.how-step.is-active { opacity: 1; }
.how-step .num { font-size: 13px; color: var(--link); }
.how-step p { color: var(--text-muted); font-size: 18px; max-width: 42ch; }
.how-step ul { display: flex; flex-direction: column; gap: 8px; }
.how-step li { display: flex; gap: 12px; color: var(--text-muted); font-size: 16px; }
.how-step li::before { content: ""; width: 14px; height: 1px; background: var(--text-subtle); margin-top: 13px; flex: none; }
.how__visual { position: relative; border-radius: var(--radius-lg); background: var(--tint, var(--surface-alt)); overflow: hidden; }

/* capabilities */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.cap { padding: 28px 28px 36px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 12px; }
.cap:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--hairline); }
.cap .num { font-size: 12px; color: var(--text-subtle); }
.cap p { color: var(--text-muted); font-size: 16px; }

/* case study (use inside a dark section) */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, var(--gap-split)); align-items: start; }
.case__metric { font-size: clamp(48px, 5.8vw, 92px); line-height: .92; letter-spacing: -.055em; font-weight: 520; color: var(--text); }
.case__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.case__cols h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 16px; }
.case__cols ul { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.case__cols li { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; }
.case__cols .before li { color: var(--text-muted); }
.case__cols .after li { color: var(--text); }

/* logo wall */
.logos { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 24px; padding-top: 28px; }
.logos__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-cell { height: 120px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); padding: 20px; position: relative; }
.logo-cell img { max-height: 46px; width: auto; max-width: 78%; opacity: .92; }
.logo-cell .wordmark { font-weight: 640; font-size: 30px; letter-spacing: .08em; color: var(--navy-800); }
.logo-cell small { position: absolute; left: 14px; top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.logo-cell--partner { background: var(--paper); border-radius: 0 16px 16px 0; }
.compex-lockup { display: flex; align-items: center; gap: 10px; color: var(--navy-800); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.compex-lockup img { height: 34px; width: auto; max-width: none; }

/* method */
.method__nav { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.method__nav button { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--hairline); color: var(--text-subtle); font-size: 18px; letter-spacing: -.01em; }
.method__nav button .num { font-size: 12px; }
.method__nav button .bar { width: 48px; height: 2px; background: var(--hairline); position: relative; overflow: hidden; }
.method__nav button .bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.method__nav button[aria-current="step"] { color: var(--text); }
.method-step { display: flex; flex-direction: column; gap: 22px; }
.method-step__num { font-family: var(--mono); font-size: clamp(64px, 8vw, 128px); line-height: .9; letter-spacing: -.04em; color: var(--accent); font-weight: 400; }
.method-step p { color: var(--text-muted); font-size: 19px; max-width: 46ch; }

/* phases (Industry 4.0 programme) */
.programme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, var(--gap-grid)); }
.phase { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); color: var(--ink); }
.phase .num { font-size: 13px; color: var(--accent-ink); }
.phase ul { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
.phase li { color: var(--ink-2); font-size: 15.5px; }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; }
.cta .btn-row { justify-content: flex-end; }

/* footer */
.site-footer { background: var(--navy-950); color: var(--on-dark); padding-top: clamp(72px, 9vw, 120px); }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-bottom: 72px; }
.footer__brand img { height: 22px; width: auto; }
.footer__brand p { margin-top: 20px; color: var(--on-dark-2); max-width: 36ch; font-size: 15.5px; }
.footer__col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--on-dark); opacity: .86; font-size: 15.5px; }
.footer__col span { color: var(--on-dark-2); font-size: 15.5px; }
.footer__word { font-size: clamp(56px, 17.4vw, 288px); line-height: .8; letter-spacing: -.06em; font-weight: 600; color: rgba(255, 255, 255, .06); white-space: nowrap; overflow: hidden; margin-bottom: -.06em; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--on-dark-2); }

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; height: 54px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 132, 224, .14); }

/* team convergence (dark band) */
.team__logo { display: inline-block; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .035); }
.team__logo img { height: var(--h, 28px); width: auto; max-width: none; opacity: .92; }
.team__core { width: 150px; aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 80px rgba(40, 120, 255, .3); }
.team__core img { width: 74%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
