/* ============================================================
   BlackTMS — shared styles
   CONNECT • OPTIMIZE • AUTOMATE
   ============================================================ */

:root {
  --bg: #050713;
  --bg-2: #080b18;
  --panel: rgba(11, 16, 37, .72);
  --panel-strong: rgba(13, 20, 46, .92);
  --line: rgba(123, 154, 255, .18);
  --line-strong: rgba(115, 151, 255, .34);
  --text: #f6f8ff;
  --muted: #9ca8c6;
  --muted-2: #7f8dab;
  --blue: #1688ff;
  --blue-2: #52c7ff;
  --violet: #7c3cff;
  --violet-2: #bd5cff;
  --green: #43e6aa;
  --amber: #ffb454;
  --shadow: 0 28px 80px rgba(0,0,0,.55);
  --radius: 24px;
  --max: 1240px;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(84, 49, 255, .15), transparent 30%),
    radial-gradient(circle at 20% 8%, rgba(0, 133, 255, .14), transparent 28%),
    linear-gradient(180deg, #040611 0%, #070a16 48%, #050713 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(89, 119, 207, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 119, 207, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 80%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(0,0,0,.52) 100%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, .brand, .kicker, .eyebrow { font-family: var(--font-display); }

/* Accessible focus — visible on dark surfaces */
:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--blue); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 100; transition: top .2s ease; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav-shell {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(4, 6, 17, .72);
  border-bottom: 1px solid rgba(126, 151, 229, .12);
}
nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.04em; font-size: 26px; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(65,134,255,.42)); }
.brand .black { color: #d8dfef; text-shadow: 0 1px 0 #fff3; }
.brand .tms {
  background: linear-gradient(100deg, #39a9ff 20%, #6974ff 57%, #a84cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.brand .logo-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.brand .logo-text::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.52) 50%,
    transparent 80%
  );
  background-size: 300% 100%;
  background-position: 150% center;
  animation: logo-shine 4s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes logo-shine {
  0%, 20%  { background-position: 150% center; }
  60%, 100% { background-position: -100% center; }
}

.nav-links { display: flex; align-items: center; gap: 26px; color: #bec8df; font-size: 14px; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: #fff; }
.nav-demo-link {
  padding: 6px 14px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(65,134,255,.38) !important;
  color: #39a9ff !important;
  background: rgba(65,134,255,.07);
  font-weight: 600;
  transition: background .2s, border-color .2s, color .2s !important;
  white-space: nowrap;
}
.nav-demo-link:hover {
  background: rgba(65,134,255,.16) !important;
  border-color: rgba(65,134,255,.7) !important;
  color: #fff !important;
}

/* mobile menu toggle */
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(139, 166, 255, .24); background: rgba(10, 14, 31, .76);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #cfd8ef; border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  border: 1px solid rgba(139, 166, 255, .24); background: rgba(10, 14, 31, .76);
  color: #f8faff; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(148, 172, 255, .58); box-shadow: 0 12px 30px rgba(23, 74, 255, .15); }
.btn-primary {
  border: 0;
  background: linear-gradient(105deg, #087cff 0%, #3e66ff 48%, #7e32ff 100%);
  box-shadow: 0 16px 42px rgba(42, 94, 255, .34), inset 0 1px 0 rgba(255,255,255,.24);
}

/* ---------- Hero ---------- */
.hero { min-height: 760px; padding: 92px 0 54px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 44px; align-items: center; }

.eyebrow {
  display: inline-flex; gap: 12px; align-items: center;
  color: #89a8ff; letter-spacing: .26em; font-weight: 800; font-size: 12px;
  text-transform: uppercase; margin-bottom: 24px;
}
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(180deg, var(--blue-2), var(--violet-2)); box-shadow: 0 0 12px currentColor; }

h1 { font-size: clamp(48px, 5.6vw, 80px); line-height: 1.0; letter-spacing: -.05em; margin: 0; max-width: 790px; font-weight: 800; }
.gradient-text {
  background: linear-gradient(96deg, #50c6ff 0%, #7182ff 48%, #bb5cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(79, 104, 255, .14);
}
.hero p { max-width: 640px; color: #aeb8d1; font-size: 18px; line-height: 1.65; margin: 26px 0 18px; }
.hero .sub-line { color: #8ea0c8; font-size: 15px; margin: 0 0 30px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.proof-line { display: flex; gap: 12px; align-items: center; margin-top: 28px; color: #8794b3; font-size: 13px; flex-wrap: wrap; }
.proof-line span { color: #d6dded; font-weight: 700; }

.hero-visual { position: relative; min-height: 570px; perspective: 1400px; isolation: isolate; }
.orb {
  position: absolute; width: 430px; height: 430px; border-radius: 50%; right: 10%; top: 12%;
  background:
    radial-gradient(circle at 42% 38%, rgba(95, 201, 255, .34), transparent 18%),
    radial-gradient(circle at 56% 58%, rgba(126, 53, 255, .42), transparent 27%),
    radial-gradient(circle, rgba(36, 79, 255, .22), transparent 62%);
  filter: blur(8px); z-index: -2;
}
.logo-mark {
  position: absolute; width: min(248px, 56%); right: 1%; top: -14px;
  filter: drop-shadow(0 30px 60px rgba(41, 56, 255, .4));
  opacity: .95; z-index: 1;
}
.command-card {
  position: absolute; inset: 230px 0 20px 30px; border-radius: 30px; z-index: 2;
  border: 1px solid rgba(115, 151, 255, .25);
  background:
    linear-gradient(145deg, rgba(17, 24, 53, .94), rgba(7, 10, 25, .92)),
    radial-gradient(circle at top right, rgba(120, 65, 255, .16), transparent 36%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08), 0 0 80px rgba(40, 82, 255, .14);
  transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d;
  overflow: hidden; padding: 26px;
}
.command-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255,255,255,.035) 44%, transparent 66%);
  transform: translateX(-100%); animation: shine 7s ease-in-out infinite; pointer-events: none;
}
@keyframes shine { 0%,60% { transform: translateX(-120%); } 78%,100% { transform: translateX(120%); } }

.demo-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px;
  color: #b9c5e5; background: rgba(8, 12, 30, .78); border: 1px solid rgba(130, 155, 235, .18);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.demo-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }

.card-head { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.card-head strong { font-size: 20px; letter-spacing: -.02em; }

.entity-switcher { margin-top: 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.entity {
  padding: 14px 12px; border-radius: 14px; color: #9eabc8;
  border: 1px solid rgba(122, 151, 235, .15); background: rgba(7, 11, 28, .64);
  font-size: 12px; text-align: center;
}
.entity.active {
  color: #fff; border-color: rgba(59, 137, 255, .56);
  background: linear-gradient(135deg, rgba(28, 114, 255, .24), rgba(107, 55, 255, .2));
  box-shadow: inset 0 0 30px rgba(32, 89, 255, .11);
}
.metric-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 16px; }
.metric, .flow-panel {
  min-height: 150px; padding: 18px; border-radius: 18px;
  border: 1px solid rgba(125, 151, 231, .16);
  background: linear-gradient(150deg, rgba(15, 22, 48, .74), rgba(6, 10, 25, .84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.metric small, .flow-panel small { color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.metric .big { margin-top: 12px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.metric p { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #8f9bbb; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 58px; margin-top: 14px; }
.bars span { flex:1; min-width:4px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #56c8ff, #3569ff 58%, #833dff); box-shadow: 0 0 16px rgba(68, 119, 255, .18); animation: pulsebar 4s ease-in-out infinite; }
.bars span:nth-child(2n) { animation-delay: -.8s; }
@keyframes pulsebar { 0%,100%{ filter:brightness(.8); transform:scaleY(.95);} 50%{ filter:brightness(1.22); transform:scaleY(1.03);} }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: center; margin-top: 24px; }
.flow-step {
  position: relative; min-height: 64px; display: grid; place-items: center; text-align: center;
  border-radius: 15px; border: 1px solid rgba(126, 151, 238, .2); background: rgba(8, 13, 31, .78);
  color: #d9e0f2; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; width: 12px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet)); box-shadow: 0 0 10px var(--blue); z-index: 2;
}

/* ---------- Generic section ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 820px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { color: #86a8ff; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 800; }
h2 { margin: 12px 0 14px; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
h3 { font-weight: 700; }
.section-head p { margin:0; color: #99a6c4; line-height: 1.7; font-size: 17px; }

/* ---------- Problem section ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.problem-item {
  padding: 20px; border-radius: 18px; border: 1px solid rgba(126, 151, 235, .14);
  background: rgba(7, 11, 27, .6); color: #aab6d4; font-size: 14px; line-height: 1.5; min-height: 120px;
  display: flex; align-items: flex-start; gap: 12px;
}
.problem-item::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px rgba(255,180,84,.6);
}

/* ---------- Pillars (CONNECT / OPTIMIZE / AUTOMATE) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  border: 1px solid rgba(128, 153, 235, .16);
  background: linear-gradient(155deg, rgba(17, 24, 52, .8), rgba(7, 11, 27, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 54px rgba(0,0,0,.22);
  overflow: hidden;
}
.pillar .tag { font-family: var(--font-display); letter-spacing: .22em; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.pillar.c-blue .tag { color: var(--blue-2); }
.pillar.c-cyan .tag { color: #6fd6ff; }
.pillar.c-violet .tag { color: var(--violet-2); }
.pillar h3 { margin: 16px 0 12px; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; }
.pillar p { margin: 0; color: #96a3c0; line-height: 1.65; font-size: 15px; }
.pillar .rule { height: 3px; width: 54px; margin-bottom: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--violet)); }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.service {
  position: relative; min-height: 250px; padding: 26px; border-radius: var(--radius);
  border: 1px solid rgba(128, 153, 235, .16);
  background: linear-gradient(155deg, rgba(17, 24, 52, .77), rgba(7, 11, 27, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 54px rgba(0,0,0,.22);
  overflow: hidden; transform-style: preserve-3d;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.service:hover { border-color: rgba(114, 145, 255, .48); box-shadow: 0 22px 70px rgba(20, 48, 160, .18); }
.service::after {
  content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -70px;
  border-radius: 50%; background: radial-gradient(circle, rgba(52, 118, 255, .22), transparent 68%); pointer-events: none;
}
.service.violet::after { background: radial-gradient(circle, rgba(137, 55, 255, .25), transparent 68%); }
.service.large { grid-column: span 6; }
.service.small { grid-column: span 4; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(21, 126, 255, .28), rgba(19, 54, 128, .15));
  border: 1px solid rgba(93, 157, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(37, 115, 255, .14);
}
.icon svg { width: 24px; height: 24px; stroke: #cfe0ff; }
.violet .icon { background: linear-gradient(145deg, rgba(131, 50, 255, .28), rgba(73, 26, 125, .15)); border-color: rgba(167, 100, 255, .38); }
.violet .icon svg { stroke: #e2ccff; }
.service h3 { margin: 22px 0 10px; font-size: 23px; letter-spacing: -.02em; }
.service p { margin: 0; color: #96a3c0; line-height: 1.65; max-width: 530px; }
.service .link { display:inline-block; margin-top: 16px; color: #cfdcff; font-size: 13px; font-weight: 700; }

/* ---------- Command spotlight ---------- */
.command-shell {
  border: 1px solid rgba(118, 148, 238, .18); border-radius: 34px;
  background:
    radial-gradient(circle at 8% 0%, rgba(33, 128, 255, .16), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(128, 48, 255, .18), transparent 36%),
    linear-gradient(150deg, rgba(13, 19, 43, .9), rgba(6, 9, 24, .95));
  padding: 44px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow);
}
.command-badge {
  display:inline-flex; align-items:center; gap:9px; padding: 8px 14px; border-radius:999px;
  font-size: 12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#dfe7ff;
  border:1px solid rgba(140,165,255,.3); background: rgba(10,16,38,.7);
}
.command-badge::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--blue-2); box-shadow:0 0 14px var(--blue-2); }
.command-feats { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; margin-top: 30px; }
.feat {
  padding: 24px; border-radius: 20px; border:1px solid rgba(126,151,235,.16);
  background: rgba(7, 11, 27, .66);
}
.feat h4 { margin:0 0 10px; font-size: 18px; letter-spacing:-.01em; font-family: var(--font-display); }
.feat p { margin:0; color:#93a0bf; line-height:1.6; font-size:14px; }
.feat .chips { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.feat .chips span { font-size:11px; color:#9fb0d6; padding:5px 10px; border-radius:999px; background:rgba(13,20,46,.7); border:1px solid rgba(120,150,235,.16); }
.modules { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.module {
  font-size:13px; color:#c7d2ec; padding:10px 16px; border-radius:12px;
  border:1px solid rgba(120,150,235,.2); background:rgba(9,14,32,.7); font-weight:600;
  position:relative; cursor:default;
  transition:border-color .2s, background .2s, transform .2s;
}
.module:hover {
  border-color:rgba(65,134,255,.55);
  background:rgba(16,26,58,.85);
  transform:translateY(-2px);
}
.module b { color:#fff; font-weight:700; }

/* Module hover tooltip */
.mod-tooltip {
  position:fixed;
  z-index:9999;
  max-width:280px;
  padding:13px 16px;
  border-radius:12px;
  background:rgba(8,14,30,.97);
  border:1px solid rgba(65,134,255,.35);
  box-shadow:0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(65,134,255,.08);
  color:#c8d4ee;
  font-size:13px;
  line-height:1.6;
  pointer-events:none;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease;
  backdrop-filter:blur(16px);
}
.mod-tooltip.show {
  opacity:1;
  transform:translateY(0);
}
.mod-tooltip strong {
  display:block;
  margin-bottom:5px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  background:linear-gradient(90deg,#39a9ff,#a84cff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- Outcomes ("What you gain") ---------- */
.outcome-shell {
  border: 1px solid rgba(118, 148, 238, .16); border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(33, 128, 255, .14), transparent 32%),
    radial-gradient(circle at 94% 100%, rgba(128, 48, 255, .16), transparent 34%),
    linear-gradient(145deg, rgba(13, 19, 43, .88), rgba(6, 9, 24, .94));
  padding: 40px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow);
}
.outcomes { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; margin-top:26px; }
.outcome { padding: 22px; border-radius: 20px; background: rgba(7, 11, 27, .72); border:1px solid rgba(126, 151, 235, .14); }
.outcome b { display:block; font-size: 20px; margin-bottom:8px; font-family: var(--font-display); }
.outcome span { color:#8f9dbb; line-height:1.55; font-size:14px; }

/* ---------- Industries / solutions ---------- */
.industry-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
.industry {
  position: relative; padding: 30px; border-radius: var(--radius); overflow:hidden;
  border:1px solid rgba(126,151,235,.16);
  background: linear-gradient(155deg, rgba(16,23,50,.82), rgba(6,10,25,.92));
}
.industry::before {
  content:""; position:absolute; left:0; top:24px; bottom:24px; width:3px; border-radius:3px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
}
.industry h3 { margin:0 0 10px; font-size:21px; letter-spacing:-.02em; padding-left: 14px; }
.industry p { margin:0; color:#93a0bf; line-height:1.6; font-size:15px; padding-left:14px; }

/* ---------- Multi-entity feature band ---------- */
.feature-band {
  display:grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items:center;
  border:1px solid rgba(118,148,238,.16); border-radius:34px; padding:44px;
  background:
    radial-gradient(circle at 92% 8%, rgba(128,48,255,.16), transparent 40%),
    linear-gradient(150deg, rgba(13,19,43,.9), rgba(6,9,24,.95));
  box-shadow: var(--shadow);
}
.feature-band h2 { margin-top:0; }
.entity-map { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; }
.entity-node {
  padding:18px 12px; border-radius:16px; text-align:center; font-size:13px; color:#a9b6d6;
  border:1px solid rgba(122,151,235,.16); background:rgba(7,11,28,.66); min-height:70px;
  display:grid; place-items:center;
}
.entity-node.lead {
  grid-column: span 3; color:#fff; font-weight:700; letter-spacing:.02em;
  border-color: rgba(59,137,255,.5);
  background: linear-gradient(135deg, rgba(28,114,255,.24), rgba(107,55,255,.2));
}

/* ---------- About ---------- */
.about-shell { display:grid; grid-template-columns: 1fr 1fr; gap:34px; align-items:start; }
.about-shell p { color:#a3b0cd; line-height:1.75; font-size:16px; }
.exp-list { display:flex; flex-wrap:wrap; gap:9px; margin-top:8px; }
.exp-list span {
  font-size:13px; color:#c2cde8; padding:8px 13px; border-radius:10px;
  border:1px solid rgba(120,150,235,.18); background:rgba(9,14,32,.66);
}

/* ---------- Contact form ---------- */
.contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap:34px; align-items:start; }
.form-card {
  border:1px solid rgba(126,151,235,.18); border-radius:28px; padding:32px;
  background: linear-gradient(150deg, rgba(14,21,46,.9), rgba(6,10,25,.95));
  box-shadow: var(--shadow);
}
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.field { display:flex; flex-direction:column; gap:7px; margin-bottom:14px; }
.field label { font-size:13px; color:#b6c1dd; font-weight:600; }
.field label .req { color: var(--violet-2); }
.field input, .field select, .field textarea {
  background: rgba(7,11,27,.7); border:1px solid rgba(122,151,235,.2);
  border-radius:12px; padding:13px 14px; color:#eef2ff; font-size:14px; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color:#6b779a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: rgba(82,199,255,.6); box-shadow: 0 0 0 3px rgba(40,120,255,.16);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6a8a; }
.field .err { font-size:12px; color:#ff8aa3; display:none; }
.field.invalid .err { display:block; }
.form-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:6px; }
.form-note { font-size:12px; color:#7e8aa8; margin-top:14px; line-height:1.5; }
.form-success {
  display:none; padding:16px 18px; border-radius:14px; margin-bottom:18px;
  border:1px solid rgba(67,230,170,.4); background:rgba(13,40,33,.6); color:#bff3df; font-size:14px;
}
.form-success.show { display:block; }
.contact-side h3 { font-size:22px; margin:18px 0 10px; }
.contact-side p { color:#9aa7c5; line-height:1.7; font-size:16px; }
.contact-meta { margin-top:22px; display:flex; flex-direction:column; gap:10px; font-size:14px; color:#b2bdd9; }
.contact-meta a:hover { color:#fff; }

/* ---------- CTA ---------- */
.cta {
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items:center;
  padding: 44px; border-radius: 32px; border:1px solid rgba(137, 161, 240, .2);
  background:
    linear-gradient(110deg, rgba(16, 91, 255, .19), rgba(8, 13, 31, .84) 46%, rgba(112, 41, 255, .19)),
    #0a0e20;
  box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
  overflow:hidden; position:relative;
}
.cta::before { content:""; position:absolute; width:360px; height:360px; right:-130px; top:-160px; border-radius:50%; background:radial-gradient(circle, rgba(117,64,255,.28), transparent 65%); }
.cta h2 { margin:0 0 12px; }
.cta p { margin:0; color:#a0acc7; line-height:1.65; }
.cta-actions { display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; position:relative; z-index:2; }

/* ---------- Footer ---------- */
footer { padding: 50px 0 56px; color: #77839f; border-top: 1px solid rgba(125, 151, 235, .1); margin-top: 30px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:30px; margin-bottom:34px; }
.footer-tag { color:#8aa0d6; letter-spacing:.2em; font-size:12px; font-weight:800; text-transform:uppercase; margin:14px 0 12px; }
.footer-note { max-width: 360px; font-size: 13px; line-height: 1.6; }
.footer-col h5 { color:#cdd6ee; font-size:13px; text-transform:uppercase; letter-spacing:.14em; margin:0 0 14px; }
.footer-col a { display:block; color:#8b97b4; font-size:14px; margin-bottom:9px; transition:color .18s ease; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; font-size:12px; padding-top:22px; border-top:1px solid rgba(125,151,235,.08); }

/* ---------- Legal / utility pages ---------- */
.page-hero { padding: 80px 0 30px; }
.page-hero h1 { font-size: clamp(38px, 4.4vw, 60px); }
.legal { padding-bottom: 80px; }
.legal-body { max-width: 820px; color:#aab6d2; line-height:1.8; font-size:16px; }
.legal-body h2 { font-size: 24px; margin: 36px 0 10px; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color:#7fbfff; }

/* 404 */
.notfound { min-height: 70vh; display:grid; place-items:center; text-align:center; padding: 80px 0; }
.notfound .code { font-family: var(--font-display); font-size: clamp(90px, 16vw, 180px); line-height:1; font-weight:800; }
.notfound p { color:#9aa7c5; font-size:18px; margin: 12px 0 28px; }

/* ---------- Reveal animation (only when JS is active) ---------- */
.js .reveal { opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.on { opacity:1; transform:translateY(0); }

/* ============================================================
   Demo Teaser Section
   ============================================================ */
.demo-band {
  background: linear-gradient(160deg, #060d1f 0%, #080e20 55%, #060c1c 100%);
  border-top: 1px solid rgba(65,134,255,.1);
  border-bottom: 1px solid rgba(65,134,255,.1);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.demo-band::before {
  content: '';
  position: absolute;
  top: -180px; right: -80px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(65,134,255,.09) 0%, transparent 68%);
  pointer-events: none;
}
.demo-band::after {
  content: '';
  position: absolute;
  bottom: -200px; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,76,255,.06) 0%, transparent 65%);
  pointer-events: none;
}
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: center;
}
.demo-copy h2 { font-size: clamp(28px,3.5vw,42px); line-height: 1.15; }

/* ── Dashboard Mockup ── */
.dash-mockup {
  background: rgba(8,14,28,.92);
  border: 1px solid rgba(65,134,255,.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(65,134,255,.06), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.dash-mockup:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }

/* Animated shimmer sweep over mockup */
.dash-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.03) 50%, transparent 70%);
  background-size: 300% 100%;
  background-position: 150% center;
  animation: mock-shine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}
@keyframes mock-shine {
  0%,25% { background-position: 150% center; }
  65%,100% { background-position: -100% center; }
}

.dm-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(4,8,16,.8);
  border-bottom: 1px solid rgba(65,134,255,.1);
}
.dm-logo { width: 20px; height: 20px; border-radius: 4px; background: linear-gradient(135deg,#4186ff,#a84cff); flex-shrink:0; }
.dm-title { width: 120px; height: 8px; border-radius: 4px; background: rgba(65,134,255,.2); }
.dm-dot { margin-left:auto; width:7px; height:7px; border-radius:50%; background:#0dd98e; box-shadow:0 0 6px #0dd98e; animation: pd2 2.5s ease-in-out infinite; }
@keyframes pd2 { 0%,100%{opacity:1}50%{opacity:.4} }

.dm-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:10px; }
.dm-kpi {
  border-radius: 8px;
  padding: 10px;
  background: rgba(10,16,32,.7);
  border: 1px solid rgba(65,134,255,.12);
  position: relative;
  overflow: hidden;
}
.dm-kpi::before { content:''; position:absolute; top:0;left:0;right:0; height:2px; border-radius:8px 8px 0 0; }
.dm-k1::before { background: linear-gradient(90deg,#39a9ff,#4186ff); }
.dm-k2::before { background: linear-gradient(90deg,#6974ff,#a84cff); }
.dm-k3::before { background: linear-gradient(90deg,#0dd98e,#06d6a0); }
.dm-k4::before { background: linear-gradient(90deg,#ff3f5e,#ff7096); }
.dm-kv { width: 60%; height: 14px; border-radius: 3px; background: rgba(238,243,255,.18); margin-bottom:6px; }
.dm-kl { width: 80%; height: 7px; border-radius: 3px; background: rgba(65,134,255,.15); }

.dm-charts { display:grid; grid-template-columns:1.4fr 1fr; gap:8px; padding:0 10px; }
.dm-chart-big, .dm-chart-sm {
  background: rgba(10,16,32,.7); border:1px solid rgba(65,134,255,.1);
  border-radius:8px; padding:10px; overflow:hidden;
}
.dm-chart-label { width:45%; height:7px; border-radius:3px; background:rgba(65,134,255,.18); margin-bottom:10px; }
.dm-bars { display:flex; align-items:flex-end; gap:4px; height:54px; }
.dm-b { flex:1; border-radius:3px 3px 0 0; background:linear-gradient(180deg,rgba(57,169,255,.7) 0%,rgba(65,134,255,.35) 100%); animation:bar-pulse 3s ease-in-out infinite; }
.dm-b:nth-child(even) { background:linear-gradient(180deg,rgba(168,76,255,.65) 0%,rgba(105,116,255,.3) 100%); animation-delay:.4s; }
@keyframes bar-pulse { 0%,100%{opacity:1}50%{opacity:.7} }
.dm-hbars { display:flex; flex-direction:column; gap:6px; padding-top:4px; }
.dm-hb { height:8px; border-radius:3px; background:linear-gradient(90deg,rgba(65,134,255,.75),rgba(168,76,255,.4)); }

.dm-table { padding:8px 10px 10px; }
.dm-th { height:7px; width:100%; background:rgba(65,134,255,.08); border-radius:3px; margin-bottom:6px; }
.dm-row { display:flex; gap:8px; align-items:center; padding:5px 0; border-bottom:1px solid rgba(65,134,255,.05); }
.dm-row:last-child { border-bottom:none; }
.dm-cell { height:7px; border-radius:3px; background:rgba(255,255,255,.08); }
.dm-cell.w40{width:40%}.dm-cell.w20{width:20%}.dm-cell.w15{width:15%}
.dm-cell.green { background:rgba(13,217,142,.25); }
.dm-cell.red { background:rgba(255,63,94,.22); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links {
    display:none; position:absolute; top:78px; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0; padding:8px 20px 18px;
    background: rgba(5,8,20,.97); border-bottom:1px solid rgba(126,151,229,.14);
    backdrop-filter: blur(22px);
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding:13px 0; width:100%; border-bottom:1px solid rgba(125,151,235,.08); }
  .nav-toggle { display:flex; }
  .nav-cta { display:none; }
  .hero { padding-top: 64px; }
  .hero-grid, .cta, .feature-band, .about-shell, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; margin-top: 12px; }
  .command-card { left: 0; }
  .pillars { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: repeat(2,1fr); }
  .service.large, .service.small { grid-column: span 6; }
  .command-feats, .outcomes, .industry-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap:24px; }
  .cta-actions { justify-content:flex-start; }
  .demo-layout { grid-template-columns: 1fr; }
  .dash-mockup { transform: none; max-width: 480px; margin: 0 auto; }
  .dash-mockup:hover { transform: translateY(-4px); }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  nav { height: 68px; }
  .nav-links { top:68px; }
  .brand { font-size:22px; }
  .hero { min-height:auto; padding-top:54px; }
  h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .hero-visual { min-height: 500px; }
  .logo-mark { width: 240px; top: -12px; right: 4%; }
  .command-card { inset: 220px 0 0 0; padding: 18px; transform:none; }
  .metric-grid, .form-row { grid-template-columns:1fr; }
  .section { padding:68px 0; }
  .service.large, .service.small { grid-column: span 12; }
  .problem-grid { grid-template-columns: 1fr; }
  .outcome-shell, .cta, .command-shell, .feature-band, .form-card { padding: 24px; border-radius: 24px; }
  .entity-switcher { grid-template-columns:1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity:1 !important; transform:none !important; }
  .command-card { transform: none !important; }
}
