/* ==========================================================================
   Mirzas Softtech — "Engineered Clarity" design system
   Bootstrap 5 grid + reboot are loaded before this file; everything visual
   below is custom so the site never looks like a template.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --mst-midnight: #070B1A;      /* page base: deep midnight navy */
  --mst-navy: #0C1226;          /* section surfaces */
  --mst-navy-raised: #121A36;   /* panels, menus */
  --mst-navy-high: #18224A;     /* hover surfaces */
  --mst-line: #1E2747;          /* borders, blueprint grid */
  --mst-line-strong: #2C3866;
  --mst-blue: #2F6BFF;          /* primary action */
  --mst-blue-soft: #6E96FF;     /* links on dark */
  --mst-violet: #7B5CFF;        /* secondary accent */
  --mst-cyan: #38D5FF;          /* data streams only */
  --mst-text: #EEF1F8;
  --mst-text-muted: #98A2BD;
  --mst-text-faint: #66708C;
  --mst-paper: #F3F5FA;         /* light sections */
  --mst-paper-raised: #FFFFFF;
  --mst-paper-line: #DCE1EE;
  --mst-paper-text: #0B1020;
  --mst-paper-muted: #4F5873;
  --mst-success: #22C55E;
  --mst-error: #FF6B78;
  --mst-gradient: linear-gradient(120deg, #2F6BFF 0%, #7B5CFF 100%);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
  --gutter: 24px;
  --section-pad: clamp(88px, 11vw, 160px);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mst-midnight);
  color: var(--mst-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--mst-blue-soft); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #9DB8FF; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: inherit; margin: 0; letter-spacing: -0.02em; }
::selection { background: rgba(47, 107, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--mst-blue-soft); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--mst-blue); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { display: inline-block; vertical-align: -0.22em; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 575.98px) { :root { --gutter: 16px; } }

/* ---------- Type scale ---------- */
.display { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.028em; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--mst-text-muted); max-width: 60ch; }
.muted { color: var(--mst-text-muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--mst-blue-soft); margin-bottom: 20px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-s);
  font: 600 15px/1 var(--font-body); letter-spacing: .005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease), transform .25s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .i-arrow, .btn:focus-visible .i-arrow { transform: translateX(3px); }
.btn-primary { background: var(--mst-blue); color: #fff; box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); }
.btn-primary:hover { background: #3F78FF; color: #fff; box-shadow: 0 8px 32px -8px rgba(47, 107, 255, .7); }
.btn-ghost { background: rgba(238, 241, 248, .03); color: var(--mst-text); border-color: var(--mst-line-strong); }
.btn-ghost:hover { background: rgba(238, 241, 248, .07); border-color: #4A5788; color: #fff; }
.btn-link { min-height: 0; padding: 0; background: none; color: var(--mst-blue-soft); }
.btn-link:hover { color: #9DB8FF; }
.btn-whatsapp { background: #1DAA61; color: #fff; }
.btn-whatsapp:hover { background: #22BF6D; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(7, 11, 26, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--mst-line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mst-text); font: 600 18px/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-item > .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-s);
  color: var(--mst-text-muted); font: 500 15px/1 var(--font-body); background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav-item > .nav-trigger:hover, .nav-item:focus-within > .nav-trigger { color: var(--mst-text); background: rgba(238, 241, 248, .04); }
.nav > a.is-active, .nav-item.is-active > .nav-trigger { color: var(--mst-text); }
.nav-trigger .i { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.nav-item:hover .nav-trigger .i, .nav-item:focus-within .nav-trigger .i { transform: rotate(180deg); }
.nav-cta { margin-left: 12px; }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(860px, 92vw);
  transform: translate(-42%, 8px); opacity: 0; visibility: hidden;
  background: var(--mst-navy-raised); border: 1px solid var(--mst-line); border-radius: var(--radius-l);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); padding: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-42%, 0); transition-delay: 0s; }
.mega-group h4 { font: 500 13px/1 var(--font-body); color: var(--mst-text-faint); letter-spacing: 0; margin: 8px 10px 10px; }
.mega-group a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-s); color: var(--mst-text); font-size: 14.5px; line-height: 1.3; }
.mega-group a .i { color: var(--mst-text-faint); width: 18px; height: 18px; transition: color .2s; }
.mega-group a:hover { background: rgba(238, 241, 248, .05); color: #fff; }
.mega-group a:hover .i { color: var(--mst-blue-soft); }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--mst-line); margin-top: 8px; padding: 16px 10px 0; font-size: 14px; color: var(--mst-text-muted); }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius-s); border: 1px solid var(--mst-line-strong); background: transparent; color: var(--mst-text); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .i { width: 22px; height: 22px; }
.mobile-nav { display: none; }

@media (max-width: 1099.98px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 99; overflow-y: auto;
    background: var(--mst-midnight); padding: 16px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--mst-midnight); border-bottom-color: var(--mst-line); }
  .mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--mst-line); color: var(--mst-text); font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
  .mobile-nav a.m-link.is-active { color: var(--mst-blue-soft); }
  .mobile-nav details { border-bottom: 1px solid var(--mst-line); }
  .mobile-nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 600 22px/1.2 var(--font-display); cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav details[open] summary .i { transform: rotate(180deg); }
  .mobile-nav .m-sub { display: grid; gap: 2px; padding: 0 0 16px; }
  .mobile-nav .m-sub a { color: var(--mst-text-muted); padding: 8px 0; font-size: 16px; }
  .mobile-nav .m-actions { display: grid; gap: 12px; margin-top: 28px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-pad) 0; }
.section-tight { padding: clamp(64px, 8vw, 104px) 0; }
.section-navy { background: var(--mst-navy); }
.section-paper { background: var(--mst-paper); color: var(--mst-paper-text); }
.section-paper .lede, .section-paper .muted { color: var(--mst-paper-muted); }
.section-paper .kicker { color: var(--mst-blue); }
.section-paper a:not(.btn) { color: #1F55E0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 20px 64px; margin-bottom: clamp(40px, 6vw, 72px); align-items: end; }
@media (min-width: 992px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .section-head .lede { margin-bottom: 6px; } }
.section-head .h2 { max-width: 20ch; }
.section-head .lede { margin: 0; }
.section-foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Blueprint grid: faint engineering lines, faded at the edges */
.blueprint { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blueprint::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(110, 150, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(110, 150, 255, .07) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--header-h); overflow: hidden; isolation: isolate; }
.hero-engine { position: absolute; inset: 0; z-index: -1; }
.hero-engine canvas { width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--mst-midnight) 0%, rgba(7, 11, 26, .92) 30%, rgba(7, 11, 26, .25) 62%, rgba(7, 11, 26, 0) 100%), linear-gradient(0deg, var(--mst-midnight) 0%, rgba(7, 11, 26, 0) 28%); }
.hero-main { flex: 1; display: flex; align-items: center; padding: clamp(32px, 6vh, 80px) 0 40px; pointer-events: none; }
.hero-copy { max-width: 740px; pointer-events: auto; }
.hero-title { margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font: 500 clamp(18px, 1.7vw, 21px)/1.45 var(--font-display); letter-spacing: -0.01em; color: var(--mst-text); margin-bottom: 14px; max-width: 34ch; }
.hero-text { color: var(--mst-text-muted); font-size: 17px; max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-legend { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-legend button {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--mst-line); background: rgba(12, 18, 38, .6); color: var(--mst-text-muted); font: 500 13px/1 var(--font-body); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.hero-legend button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--mst-blue)); box-shadow: 0 0 10px var(--dot, var(--mst-blue)); }
.hero-legend button:hover, .hero-legend button.is-on { color: var(--mst-text); border-color: var(--mst-line-strong); background: rgba(24, 34, 74, .8); }

@media (max-width: 991.98px) {
  .hero-engine { inset: var(--header-h) 0 auto; height: 300px; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 11, 26, 0) 0, rgba(7, 11, 26, 0) calc(var(--header-h) + 210px), var(--mst-midnight) calc(var(--header-h) + 300px)); }
  .hero-main { padding-top: 260px; }
}

/* Floating interface panels over the engine (desktop only) */
.hero-panels { position: absolute; inset: var(--header-h) 0 0 auto; width: 46%; pointer-events: none; display: none; }
@media (min-width: 1200px) { .hero-panels { display: block; } }
.float-panel {
  position: absolute; width: 214px; padding: 13px 15px; border-radius: var(--radius-m);
  background: rgba(18, 26, 54, .72); border: 1px solid rgba(110, 150, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
  font-size: 12.5px; color: var(--mst-text-muted);
  will-change: transform;
}
.float-panel strong { display: block; color: var(--mst-text); font: 600 14px/1.3 var(--font-display); margin-bottom: 8px; }
.float-panel .fp-row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid rgba(110, 150, 255, .1); font-family: var(--font-mono); font-size: 11.5px; }
.float-panel .fp-row span:last-child { color: var(--mst-text); }
.float-panel .fp-tag { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(56, 213, 255, .12); color: var(--mst-cyan); font-size: 11px; font-weight: 600; }
.fp-1 { top: 4%; right: 3%; }
.fp-2 { top: 63%; right: 40%; }
.fp-3 { top: 62%; right: 6%; }

/* Proof strip */
.proof { border-top: 1px solid var(--mst-line); padding: 22px 0; display: flex; align-items: center; gap: 32px; position: relative; z-index: 1; background: rgba(7, 11, 26, .6); }
.proof-label { flex: none; margin: 0; padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); font-size: 14px; color: var(--mst-text-muted); width: calc(300px + max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)))); line-height: 1.45; }
.proof-label b { color: var(--mst-text); font-weight: 600; }
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; color: var(--mst-text-faint); font: 500 15px/1 var(--font-display); letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 767.98px) { .proof { flex-direction: column; align-items: stretch; gap: 14px; } .proof-label { width: auto; padding-right: var(--gutter); } }

/* ---------- Ecosystem (industries) ---------- */
.eco { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 992px) { .eco { grid-template-columns: 340px 1fr; gap: 48px; } }
.eco-tabs { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 991.98px) { .eco-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; gap: 8px; } .eco-tabs::-webkit-scrollbar { display: none; } }
.eco-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: var(--radius-m);
  background: none; border: 1px solid transparent; color: var(--mst-text-muted); font: 500 17px/1.2 var(--font-display); letter-spacing: -0.01em; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s, border-color .25s;
}
.eco-tab .i { width: 22px; height: 22px; color: var(--mst-text-faint); transition: color .25s; }
.eco-tab small { margin-left: auto; font: 500 12px/1 var(--font-body); color: var(--mst-text-faint); }
.eco-tab:hover { color: var(--mst-text); background: rgba(238, 241, 248, .03); }
.eco-tab[aria-selected="true"] { color: var(--mst-text); background: var(--mst-navy-raised); border-color: var(--mst-line); }
.eco-tab[aria-selected="true"] .i { color: var(--accent, var(--mst-blue)); }
@media (max-width: 991.98px) { .eco-tab { flex: none; width: auto; padding: 12px 16px; font-size: 15px; border-color: var(--mst-line); } .eco-tab small { display: none; } }

.eco-panel { position: relative; border: 1px solid var(--mst-line); border-radius: var(--radius-l); background: var(--mst-navy-raised); overflow: hidden; min-height: 440px; }
.eco-pane { display: none; padding: clamp(28px, 4vw, 48px); position: relative; }
.eco-pane.is-active { display: grid; gap: 32px; animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eco-pane::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: .14; pointer-events: none; }
.eco-pane h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; max-width: 22ch; }
.eco-pane > p { color: var(--mst-text-muted); max-width: 62ch; margin: 0; }
.eco-flow { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .eco-flow { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.eco-flow > div { padding: 18px 20px; border-radius: var(--radius-m); border: 1px solid var(--mst-line); font-size: 15px; line-height: 1.55; }
.eco-flow .before { color: var(--mst-text-muted); background: rgba(7, 11, 26, .4); }
.eco-flow .after { color: var(--mst-text); background: rgba(47, 107, 255, .08); border-color: rgba(47, 107, 255, .35); }
.eco-flow b { display: block; font: 500 13px/1 var(--font-body); margin-bottom: 8px; color: var(--mst-text-faint); }
.eco-flow .after b { color: var(--mst-blue-soft); }
.eco-flow .arrow { display: flex; align-items: center; justify-content: center; color: var(--mst-text-faint); border: 0; padding: 0; }
@media (max-width: 767.98px) { .eco-flow .arrow { transform: rotate(90deg); } }
.eco-products { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid var(--mst-line-strong); color: var(--mst-text); font-size: 14.5px; font-weight: 500; transition: border-color .2s, background-color .2s; }
.chip-link .i { width: 18px; height: 18px; color: var(--accent, var(--mst-blue-soft)); }
.chip-link:hover { border-color: var(--accent, var(--mst-blue)); background: rgba(238, 241, 248, .04); color: #fff; }

/* ---------- Product explorer ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mst-line-strong); background: transparent;
  color: var(--mst-text-muted); font: 500 14px/1 var(--font-body); cursor: pointer; transition: all .2s var(--ease);
}
.filter:hover { color: var(--mst-text); border-color: #4A5788; }
.filter[aria-pressed="true"] { background: var(--mst-text); border-color: var(--mst-text); color: var(--mst-midnight); }
.filter .count { opacity: .55; margin-left: 4px; }
.section-paper .filter { border-color: var(--mst-paper-line); color: var(--mst-paper-muted); background: var(--mst-paper-raised); }
.section-paper .filter:hover { color: var(--mst-paper-text); border-color: #B7C0D6; }
.section-paper .filter[aria-pressed="true"] { background: var(--mst-paper-text); border-color: var(--mst-paper-text); color: #fff; }

.explorer { display: grid; grid-template-columns: 1fr; border: 1px solid var(--mst-line); border-radius: var(--radius-l); overflow: hidden; background: var(--mst-navy); }
@media (min-width: 992px) { .explorer { grid-template-columns: 360px 1fr; min-height: 620px; } }
.explorer-list { border-right: 1px solid var(--mst-line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 991.98px) { .explorer-list { border-right: 0; border-bottom: 1px solid var(--mst-line); flex-direction: row; overflow-x: auto; max-height: none; scrollbar-width: none; } .explorer-list::-webkit-scrollbar { display: none; } }
.ex-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: var(--radius-m);
  background: transparent; color: var(--mst-text-muted); text-align: left; cursor: pointer; transition: background-color .2s, color .2s;
}
.ex-item .ex-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--mst-line); color: var(--mst-text-faint); transition: color .2s, border-color .2s, background-color .2s; }
.ex-item .ex-icon .i { width: 20px; height: 20px; }
.ex-item b { display: block; font: 600 15px/1.25 var(--font-display); letter-spacing: -0.01em; color: inherit; }
.ex-item span.ex-cat { display: block; font-size: 12.5px; color: var(--mst-text-faint); margin-top: 3px; }
.ex-item:hover { background: rgba(238, 241, 248, .03); color: var(--mst-text); }
.ex-item[aria-selected="true"] { background: var(--mst-navy-raised); color: var(--mst-text); }
.ex-item[aria-selected="true"] .ex-icon { color: #fff; border-color: transparent; background: var(--accent, var(--mst-blue)); }
.ex-item.is-hidden { display: none; }
@media (max-width: 991.98px) { .ex-item { flex: none; width: auto; padding: 10px 12px; } .ex-item span.ex-cat { display: none; } .ex-item .ex-icon { width: 34px; height: 34px; } }

.explorer-stage { position: relative; padding: clamp(24px, 3.5vw, 44px); overflow: hidden; }
.ex-pane { display: none; }
.ex-pane.is-active { display: grid; gap: 28px; animation: paneIn .45s var(--ease); }
.ex-pane-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ex-pane-head h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin-bottom: 8px; }
.ex-pane-head p { color: var(--mst-text-muted); margin: 0; max-width: 52ch; }
.ex-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--mst-text-muted); border: 1px solid var(--mst-line); }
.ex-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--mst-blue)); }
.ex-body { display: grid; gap: 28px; }
@media (min-width: 1200px) { .ex-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--mst-text-muted); }
.feature-list li .i { width: 20px; height: 20px; color: var(--mst-cyan); margin-top: 1px; }
.feature-list li b { display: block; color: var(--mst-text); font-weight: 600; margin-bottom: 2px; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Interface panel mockups (CSS-built software screens) ---------- */
.ui {
  --accent: var(--mst-blue);
  border-radius: 12px; border: 1px solid var(--mst-line-strong); background: #0A1022; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  font-size: 12px; color: var(--mst-text-muted); user-select: none;
}
.ui-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--mst-line); background: #0D1430; }
.ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3460; }
.ui-bar i:first-child { background: #3A4577; }
.ui-bar em { margin-left: 10px; font-style: normal; font-size: 11.5px; color: var(--mst-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.ui-side { border-right: 1px solid var(--mst-line); padding: 12px 8px; display: grid; align-content: start; gap: 2px; }
.ui-side span { display: block; padding: 7px 10px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-side span.on { background: rgba(110, 150, 255, .1); color: var(--mst-text); box-shadow: inset 2px 0 0 var(--accent); }
.ui-main { padding: 14px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.ui-title { display: flex; justify-content: space-between; align-items: center; color: var(--mst-text); font: 600 13px/1 var(--font-display); }
.ui-title small { font: 500 10.5px/1 var(--font-body); color: var(--mst-text-faint); }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-stat { padding: 10px; border-radius: 8px; border: 1px solid var(--mst-line); background: rgba(18, 26, 54, .6); min-width: 0; }
.ui-stat small { display: block; font-size: 10px; color: var(--mst-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-stat b { display: block; margin-top: 4px; font: 600 13px/1.1 var(--font-mono); color: var(--mst-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-stat:first-child b { color: var(--accent); }
.ui-chart { height: 64px; border-radius: 8px; border: 1px solid var(--mst-line); background: rgba(18, 26, 54, .4); display: flex; align-items: flex-end; gap: 5px; padding: 8px 10px; }
.ui-chart i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--accent), rgba(47, 107, 255, .15)); opacity: .85; }
.ui-table { border: 1px solid var(--mst-line); border-radius: 8px; overflow: hidden; }
.ui-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--mst-line); font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; }
.ui-row > span { overflow: hidden; text-overflow: ellipsis; }
.ui-row:first-child { border-top: 0; background: rgba(18, 26, 54, .6); color: var(--mst-text-faint); font-family: var(--font-body); font-weight: 500; }
.ui-row .ok { color: #57D99A; }
.ui-row .warn { color: #F5C451; }
.ui-shot { display: block; width: 100%; height: auto; }
.ui-sample { display: block; padding: 6px 12px; font-size: 10.5px; color: var(--mst-text-faint); border-top: 1px solid var(--mst-line); text-align: right; }
@media (max-width: 575.98px) { .ui-body { grid-template-columns: 1fr; } .ui-side { display: none; } }

/* ---------- Services: capability map ---------- */
.capabilities { border-top: 1px solid var(--mst-line); }
.cap { border-bottom: 1px solid var(--mst-line); }
.cap summary {
  list-style: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 20px;
  padding: 26px 4px; cursor: pointer; transition: padding .35s var(--ease);
}
.cap summary::-webkit-details-marker { display: none; }
@media (min-width: 992px) { .cap summary { grid-template-columns: 44px minmax(0, 5fr) minmax(0, 6fr) 28px; } }
.cap-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--mst-line); color: var(--mst-text-faint); transition: all .3s var(--ease); }
.cap-icon .i { width: 22px; height: 22px; }
.cap-name { font: 600 clamp(19px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--mst-text); transition: transform .35s var(--ease); }
.cap-short { color: var(--mst-text-muted); font-size: 15.5px; display: none; }
@media (min-width: 992px) { .cap-short { display: block; } }
.cap-toggle { width: 28px; height: 28px; display: grid; place-items: center; color: var(--mst-text-faint); transition: transform .35s var(--ease), color .2s; }
.cap summary:hover .cap-icon, .cap[open] .cap-icon { color: #fff; background: var(--mst-blue); border-color: var(--mst-blue); }
.cap summary:hover .cap-name { transform: translateX(6px); }
.cap[open] .cap-toggle { transform: rotate(45deg); color: var(--mst-text); }
.cap-detail { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 0 4px 32px 68px; }
@media (min-width: 992px) { .cap-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-left: 68px; gap: 20px 32px; } }
@media (max-width: 575.98px) { .cap-detail { padding-left: 4px; } }
.cap-detail p { color: var(--mst-text-muted); margin: 0; max-width: 58ch; }
.cap-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
@media (max-width: 575.98px) { .cap-points { grid-template-columns: 1fr; } }
.cap-points li { display: flex; gap: 10px; font-size: 14.5px; color: var(--mst-text); line-height: 1.4; }
.cap-points .i { width: 18px; height: 18px; color: var(--mst-cyan); margin-top: 1px; }

/* ---------- Clients directory (paper) ---------- */
.dir-tools { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
@media (min-width: 992px) { .dir-tools { grid-template-columns: 1fr 340px; align-items: center; } }
.dir-tools .filters { margin: 0; }
.search { position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mst-paper-muted); pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: var(--radius-s); border: 1px solid var(--mst-paper-line); background: var(--mst-paper-raised); color: var(--mst-paper-text); font: 400 15px/1 var(--font-body); }
.search input:focus { outline: none; border-color: var(--mst-blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }
.dir { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--mst-paper-line); }
@media (min-width: 768px) { .dir { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1200px) { .dir { grid-template-columns: 1fr 1fr 1fr; } }
.dir-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 2px; border-bottom: 1px solid var(--mst-paper-line); align-items: baseline; }
.dir-row b { font: 600 15.5px/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--mst-paper-text); }
.dir-row .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--mst-paper-muted); }
.dir-row .meta a { color: #1F55E0; font-weight: 500; }
.dir-row .cat { font-size: 12px; font-weight: 500; color: var(--mst-paper-muted); white-space: nowrap; }
.dir-row.is-hidden { display: none; }
.dir-empty { display: none; padding: 40px 0; color: var(--mst-paper-muted); }
.dir-empty.is-on { display: block; }
.dir-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--mst-paper-line); border: 1px solid var(--mst-paper-line); border-radius: var(--radius-m); overflow: hidden; margin-bottom: 48px; }
@media (min-width: 992px) { .dir-summary { grid-template-columns: repeat(5, 1fr); } }
.dir-summary div { background: var(--mst-paper-raised); padding: 20px; }
.dir-summary b { display: block; font: 600 30px/1 var(--font-display); letter-spacing: -0.03em; color: var(--mst-paper-text); margin-bottom: 8px; }
.dir-summary span { font-size: 13.5px; color: var(--mst-paper-muted); line-height: 1.35; display: block; }

/* ---------- Portfolio ---------- */
.folio { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .folio { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .folio { grid-template-columns: repeat(3, 1fr); } .folio-featured .work:first-child { grid-column: span 2; grid-row: span 2; } }
.work { display: flex; flex-direction: column; border-radius: var(--radius-l); border: 1px solid var(--mst-line); background: var(--mst-navy); overflow: hidden; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.work:hover { border-color: var(--mst-line-strong); transform: translateY(-3px); }
.work.is-hidden { display: none; }
.browser { position: relative; flex: 1; min-height: 220px; display: flex; flex-direction: column; background: #0A1022; border-bottom: 1px solid var(--mst-line); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #0D1430; border-bottom: 1px solid var(--mst-line); flex: none; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2A3460; }
.browser-bar em { margin-left: 10px; padding: 2px 10px; border-radius: 4px; background: rgba(7, 11, 26, .6); font: 400 11px/1.5 var(--font-mono); font-style: normal; color: var(--mst-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: 100%; object-fit: cover; object-position: top; flex: 1; transition: transform 1.2s var(--ease); }
.work:hover .browser img { transform: scale(1.03); }
.browser-art { flex: 1; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; overflow: hidden; --c: var(--mst-blue); }
.browser-art::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -22%; top: -38%; border-radius: 50%; background: radial-gradient(circle, var(--c), transparent 65%); opacity: .22; pointer-events: none; }
.wf-nav { display: flex; align-items: center; gap: 10px; }
.wf-nav i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); opacity: .7; }
.wf-nav span { height: 6px; width: 34px; border-radius: 3px; background: rgba(238, 241, 248, .1); }
.wf-nav span:first-of-type { margin-left: auto; }
.wf-hero { flex: 1; min-height: 90px; border-radius: 8px; background: linear-gradient(135deg, rgba(238, 241, 248, .06), rgba(238, 241, 248, .02)); border: 1px solid rgba(110, 150, 255, .1); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; }
.wf-hero i { display: block; height: 10px; width: 62%; border-radius: 5px; background: rgba(238, 241, 248, .16); }
.wf-hero i + i { width: 44%; height: 7px; background: rgba(238, 241, 248, .08); }
.wf-hero b { display: block; width: 74px; height: 20px; border-radius: 4px; background: var(--c); opacity: .6; margin-top: 6px; }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wf-cards span { height: 44px; border-radius: 6px; background: rgba(238, 241, 248, .04); border: 1px solid rgba(110, 150, 255, .08); }
.folio-featured .work:first-child .wf-hero { min-height: 240px; }
.folio-featured .work:first-child .wf-cards span { height: 90px; }
.work-info { padding: 20px 22px 22px; display: grid; gap: 6px; }
.work-info .type { font-size: 13px; color: var(--mst-text-faint); }
.work-info h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
.work-info p { font-size: 14.5px; color: var(--mst-text-muted); margin: 2px 0 8px; }
.work-info a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; width: fit-content; }
.work-info a .i { width: 16px; height: 16px; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 992px) { .why { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } .why-aside { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 40px; background: var(--mst-line); border: 1px solid var(--mst-line); border-radius: var(--radius-m); overflow: hidden; }
.stat { background: var(--mst-midnight); padding: 22px; }
.section-navy .stat { background: var(--mst-navy); }
.stat b { display: block; font: 600 clamp(32px, 3.6vw, 44px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--mst-text); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--mst-text-muted); }
.stats-note { margin-top: 12px; font-size: 12.5px; color: var(--mst-text-faint); }
.strengths { list-style: none; margin: 0; padding: 0; }
.strength { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--mst-line); transition: opacity .4s var(--ease); }
.strength:last-child { border-bottom: 1px solid var(--mst-line); }
.strength h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.025em; }
.strength p { color: var(--mst-text-muted); margin: 0; max-width: 56ch; }
@media (min-width: 992px) { .js .strengths .strength { opacity: .38; } .js .strengths .strength.is-lit { opacity: 1; } }

/* ---------- Process timeline (a true sequence, so it is numbered) ---------- */
.process { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; }
@media (min-width: 992px) { .process { grid-template-columns: repeat(6, 1fr); gap: 24px; } }
.process-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--mst-line-strong); }
.process-line i { position: absolute; inset: 0 0 auto; height: 0; background: var(--mst-gradient); transition: height .2s linear; }
@media (min-width: 992px) { .process-line { left: 0; right: 0; top: 19px; bottom: auto; width: auto; height: 1px; } .process-line i { inset: 0 auto 0 0; height: 1px; width: 0; transition: width .2s linear; } }
.step { position: relative; padding: 0 0 36px 64px; }
@media (min-width: 992px) { .step { padding: 64px 0 0; } }
.step-num { position: absolute; left: 0; top: 0; width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: var(--mst-midnight); border: 1px solid var(--mst-line-strong); color: var(--mst-text-muted); font: 600 14px/1 var(--font-display); transition: all .4s var(--ease); }
.section-navy .step-num { background: var(--mst-navy); }
.step.is-done .step-num { background: var(--mst-blue); border-color: var(--mst-blue); color: #fff; box-shadow: 0 0 0 6px rgba(47, 107, 255, .15); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--mst-text-muted); margin: 0; }

/* ---------- Enquiry / CTA ---------- */
.enquire { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 992px) { .enquire { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.contact-lines { display: grid; gap: 4px; margin-top: 36px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--mst-line); color: var(--mst-text); }
.contact-line:first-child { border-top: 1px solid var(--mst-line); }
.contact-line .i { width: 22px; height: 22px; color: var(--mst-blue-soft); }
.contact-line small { display: block; font-size: 13px; color: var(--mst-text-faint); }
.contact-line span { font-weight: 500; }
.contact-line:hover { color: #fff; }
.contact-line:hover .i-arrow { transform: translateX(4px); }
.contact-line .i-arrow { margin-left: auto; color: var(--mst-text-faint); transition: transform .3s var(--ease); }

.form-panel { position: relative; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-l); background: var(--mst-navy-raised); border: 1px solid var(--mst-line); }
.form-panel h3 { font-size: 22px; margin-bottom: 6px; }
.form-panel > p { color: var(--mst-text-muted); font-size: 15px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--mst-text); margin-bottom: 8px; }
.field label .opt { color: var(--mst-text-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--mst-line-strong); background: rgba(7, 11, 26, .55); color: var(--mst-text);
  font: 400 15px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398A2BD' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { background: var(--mst-navy-raised); color: var(--mst-text); }
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--mst-text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mst-blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .2); background: rgba(7, 11, 26, .8); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--mst-error); }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: var(--mst-error); }
.field.has-error .field-error { display: block; }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--mst-text-faint); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-s); border: 1px solid rgba(255, 107, 120, .4); background: rgba(255, 107, 120, .08); color: #FFC4CA; font-size: 14.5px; margin-bottom: 20px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--mst-text-faint); font-size: 13px; max-width: 40ch; }

.form-success { text-align: left; animation: paneIn .6s var(--ease); }
.success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: var(--mst-success); margin-bottom: 24px; }
.success-mark svg { width: 30px; height: 30px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--mst-text-muted); }
.ref-no { display: inline-block; margin: 6px 0 24px; padding: 8px 14px; border-radius: var(--radius-s); border: 1px dashed var(--mst-line-strong); font: 500 15px/1 var(--font-mono); color: var(--mst-text); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; border-bottom: 1px solid var(--mst-line); }
.page-hero .h1 { max-width: 18ch; margin-bottom: 24px; }
.page-hero .lede { max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--mst-text-faint); list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--mst-line-strong); }
.crumbs a { color: var(--mst-text-muted); }
.crumbs a:hover { color: var(--mst-text); }
.page-hero-glow { position: absolute; width: 680px; height: 680px; right: -200px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .22), transparent 62%); pointer-events: none; }

/* ---------- Product detail ---------- */
.pd-hero { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1100px) { .pd-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; } }
.pd-hero .h1 { font-size: clamp(36px, 4.8vw, 58px); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pd-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--mst-line); border: 1px solid var(--mst-line); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 768px) { .pd-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .pd-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.pd-feature { background: var(--mst-midnight); padding: 28px; }
.pd-feature .i { width: 24px; height: 24px; color: var(--mst-cyan); margin-bottom: 18px; }
.pd-feature h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.015em; }
.pd-feature p { color: var(--mst-text-muted); font-size: 15px; margin: 0; }
.pd-about { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 992px) { .pd-about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.pd-about .prose p { font-size: 17px; color: var(--mst-text-muted); }
.fact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--mst-line); }
.fact-list li { padding: 16px 0; border-bottom: 1px solid var(--mst-line); display: grid; gap: 4px; }
.fact-list small { color: var(--mst-text-faint); font-size: 13px; }
.fact-list span { color: var(--mst-text); }

/* ---------- Product grid (products page) ---------- */
.p-group { margin-bottom: 72px; }
.p-group:last-child { margin-bottom: 0; }
.p-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--mst-line); }
.p-group-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.p-group-head span { color: var(--mst-text-faint); font-size: 14px; }
.p-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .p-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
.p-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-l); border: 1px solid var(--mst-line); background: var(--mst-navy); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.p-card:hover { border-color: var(--accent, var(--mst-line-strong)); background: var(--mst-navy-raised); }
.p-card .p-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(238, 241, 248, .04); border: 1px solid var(--mst-line); color: var(--accent, var(--mst-blue-soft)); margin-bottom: 22px; }
.p-card .p-icon .i { width: 22px; height: 22px; }
.p-card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.02em; }
.p-card h3 a { color: var(--mst-text); }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.p-card p { color: var(--mst-text-muted); font-size: 15px; margin-bottom: 20px; }
.p-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.p-card li { display: flex; gap: 10px; font-size: 14px; color: var(--mst-text); }
.p-card li .i { width: 16px; height: 16px; color: var(--mst-cyan); margin-top: 3px; }
.p-card .p-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--mst-line); }
.p-card .p-foot span { font-size: 13.5px; color: var(--mst-text-faint); }
.p-card .p-foot .btn { position: relative; z-index: 1; }

/* ---------- Industry page blocks ---------- */
.ind-block { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 64px 0; border-top: 1px solid var(--mst-line); scroll-margin-top: calc(var(--header-h) + 24px); }
.ind-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 992px) { .ind-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.ind-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--accent); }
.ind-title .i { width: 28px; height: 28px; }
.ind-title span { font: 500 15px/1 var(--font-body); color: var(--mst-text-muted); }
.ind-block h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; margin-bottom: 16px; }
.ind-block p { color: var(--mst-text-muted); }
.ind-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* ---------- Generic content ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 14px; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--mst-text-muted); font-size: 17px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--mst-text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(110, 150, 255, .4); }
.prose > :first-child { margin-top: 0; }

.split { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } }

.tiles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--mst-line); border: 1px solid var(--mst-line); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 768px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .tiles.cols-3 { grid-template-columns: repeat(3, 1fr); } .tiles.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--mst-midnight); padding: 30px; }
.section-navy .tile { background: var(--mst-navy); }
.tile .i { width: 26px; height: 26px; color: var(--mst-blue-soft); margin-bottom: 20px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.015em; }
.tile p { color: var(--mst-text-muted); font-size: 15px; margin: 0; }
.tile a.more { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; font-weight: 600; }

.post-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 992px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--mst-line); border-radius: var(--radius-l); background: var(--mst-navy); transition: border-color .3s var(--ease); }
.post:hover { border-color: var(--mst-line-strong); }
.post-meta { font-size: 13px; color: var(--mst-text-faint); }
.post h2, .post h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; }
.post h2 a, .post h3 a { color: var(--mst-text); }
.post h2 a::after, .post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { color: var(--mst-text-muted); font-size: 15px; margin: 0; }
.post .read { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--mst-blue-soft); }

.map-frame { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--mst-line); background: var(--mst-navy); aspect-ratio: 16 / 9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(185deg) saturate(.6) brightness(.95); }
.map-frame button { width: 100%; height: 100%; border: 0; background: transparent; color: var(--mst-text-muted); display: grid; place-items: center; gap: 8px; font: 500 15px/1.4 var(--font-body); cursor: pointer; }

.notice { padding: 16px 18px; border-radius: var(--radius-m); border: 1px solid var(--mst-line-strong); background: rgba(18, 26, 54, .6); color: var(--mst-text-muted); font-size: 14.5px; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--mst-line); background: var(--mst-navy-raised); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 992px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -340px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, .3), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; max-width: 22ch; margin-bottom: 10px; }
.cta-band p { color: var(--mst-text-muted); margin: 0; max-width: 56ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--mst-line); padding: 72px 0 32px; background: var(--mst-midnight); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand p { color: var(--mst-text-muted); font-size: 15px; margin: 18px 0 0; max-width: 34ch; }
.footer-col h4 { font: 600 14px/1 var(--font-body); color: var(--mst-text); letter-spacing: 0; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--mst-text-muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--mst-text); }
.footer-col address { font-style: normal; color: var(--mst-text-muted); font-size: 14.5px; line-height: 1.6; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-s); border: 1px solid var(--mst-line-strong); color: var(--mst-text-muted); }
.social a:hover { color: #fff; border-color: #4A5788; }
.social .i { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--mst-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--mst-text-faint); }
.footer-bottom a { color: var(--mst-text-faint); }
.footer-bottom a:hover { color: var(--mst-text); }

/* ---------- Floating actions ---------- */
.fab-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px; border-radius: 999px; background: #1DAA61; color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(29, 170, 97, .65); transition: transform .3s var(--ease), box-shadow .3s; }
.fab-whatsapp:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(29, 170, 97, .8); }
.fab-whatsapp .i { width: 22px; height: 22px; }
@media (max-width: 575.98px) { .fab-whatsapp span { display: none; } .fab-whatsapp { width: 52px; padding: 0; justify-content: center; right: 16px; bottom: 16px; } }
.to-top { position: fixed; right: 20px; bottom: 84px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mst-navy-raised); border: 1px solid var(--mst-line-strong); color: var(--mst-text); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .3s var(--ease); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--mst-navy-high); }
@media (max-width: 575.98px) { .to-top { right: 20px; bottom: 80px; } }

/* ---------- Loader (first visit only, max ~700ms) ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: var(--mst-midnight); transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.show-loader .loader { display: grid; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader svg { width: 72px; height: 72px; }
.loader path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw .7s var(--ease) forwards; }
.loader circle { opacity: 0; animation: fadeIn .3s .45s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Cursor ring (desktop, fine pointer only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 999; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid rgba(110, 150, 255, .55); pointer-events: none; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(47, 107, 255, .08); }

/* ---------- Motion: reveal + page transition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js body.page-leave main { opacity: 0; transition: opacity .2s ease; }
.js .hero-title .line > span { transform: translateY(105%); }
.js.is-ready .hero-title .line > span { transform: none; transition: transform 1s var(--ease); }
.js.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.js.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.js .hero-fade { opacity: 0; transform: translateY(12px); }
.js.is-ready .hero-fade { opacity: 1; transform: none; transition: opacity .9s .35s var(--ease), transform .9s .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero-fade, .js .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .cursor { display: none; }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--mst-midnight); }
.admin-wrap { max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.admin-card { background: var(--mst-navy); border: 1px solid var(--mst-line); border-radius: var(--radius-l); padding: 24px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; }
.admin-tools .field { min-width: 180px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-weight: 500; color: var(--mst-text-faint); padding: 10px 12px; border-bottom: 1px solid var(--mst-line); white-space: nowrap; }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--mst-line); vertical-align: top; color: var(--mst-text-muted); }
.admin-table td b { color: var(--mst-text); font-weight: 600; }
.admin-table .msg { max-width: 360px; white-space: pre-wrap; }
.status { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.status-New { background: rgba(47, 107, 255, .15); color: var(--mst-blue-soft); }
.status-Contacted { background: rgba(245, 196, 81, .12); color: #F5C451; }
.status-Converted { background: rgba(34, 197, 94, .12); color: #57D99A; }
.status-Closed { background: rgba(152, 162, 189, .12); color: var(--mst-text-muted); }
.table-scroll { overflow-x: auto; }
.login-box { max-width: 400px; margin: 12vh auto 0; }
@media (max-width: 991.98px) { .dir-summary div:last-child:nth-child(odd) { grid-column: span 2; } }
