/* ==========================================================================
   Rapidora — Corporate site stylesheet
   ========================================================================== */
:root {
  --navy: #0A1F44;
  --navy-2: #12305F;
  --navy-3: #1B3D73;
  --blue: #1E6BFF;
  --blue-d: #1556D6;
  --electric: #00B4FF;
  --ink: #0B1730;
  --text: #4A5876;
  --muted: #7C8AA5;
  --line: #E6ECF5;
  --soft: #F5F8FD;
  --soft-2: #EEF3FC;
  --white: #fff;
  --ok: #12B76A;
  --warn: #F59E0B;
  --grad: linear-gradient(135deg, #1E6BFF 0%, #00B4FF 100%);
  --grad-navy: linear-gradient(160deg, #0A1F44 0%, #12305F 60%, #163A70 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06), 0 2px 8px rgba(10, 31, 68, .04);
  --shadow: 0 10px 30px -12px rgba(10, 31, 68, .18), 0 4px 12px -6px rgba(10, 31, 68, .08);
  --shadow-lg: 0 40px 80px -30px rgba(10, 31, 68, .35), 0 18px 36px -18px rgba(10, 31, 68, .2);
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: #CFE0FF; color: var(--navy); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 12px; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap; line-height: 1.2;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(30, 107, 255, .7); }
.btn-primary:hover { background: var(--blue-d); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(30, 107, 255, .75); }
.btn-outline { background: #fff; color: var(--navy); border-color: #D5DEEC; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 11px 20px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow.light { color: #7CC8FF; }
.eyebrow.center::after { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--text); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; }
.section-head.split p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; padding: 18px 0;
  transition: padding .3s var(--ease), background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { padding: 10px 0; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(10, 31, 68, .25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.42rem; letter-spacing: -.03em; }
.brand-light, .brand-light:hover { color: #fff; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a, .drop-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 10px; color: var(--ink);
  font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; position: relative;
}
.main-nav > ul > li > a:hover, .drop-toggle:hover { color: var(--blue); background: rgba(30, 107, 255, .06); }
.main-nav li.active > a, .main-nav li.active > .drop-toggle { color: var(--blue); }
.main-nav li.active > a::after, .main-nav li.active > .drop-toggle::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }
.has-drop { position: relative; }
.drop-toggle svg { transition: transform .25s; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 340px; transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.dropdown::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-drop:hover .dropdown, .has-drop.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-drop:hover .drop-toggle svg, .has-drop.open .drop-toggle svg { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; }
.dropdown a:hover, .dropdown a.current { background: var(--soft); }
.dropdown strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.dropdown small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.d-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--soft-2); color: var(--blue); display: grid; place-items: center; flex: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; padding: 170px 0 110px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 180, 255, .12), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(30, 107, 255, .09), transparent 60%),
    linear-gradient(180deg, #fff 0%, #F7FAFF 100%);
}
.hero-grid-bg, .page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(10, 31, 68, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 31, 68, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .86rem; color: var(--ink); font-weight: 500; margin-bottom: 26px;
}
.hero-badge b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-family: var(--font-head); letter-spacing: .04em; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .line2 { display: block; }
.hero .lead { max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 34px; padding-top: 30px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-proof div b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); letter-spacing: -.03em; line-height: 1.2; }
.hero-proof div small { font-size: .86rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .mk-browser { transform: perspective(2000px) rotateY(-7deg) rotateX(3deg); transform-origin: left center; }
.hero-visual .mk-phone { position: absolute; right: -22px; bottom: -46px; width: 196px; }
.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--ink); z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.hero-chip .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.hero-chip b { display: block; font-family: var(--font-head); font-size: .9rem; }
.hero-chip small { color: var(--muted); }
.hero-chip.c1 { top: -26px; left: 18%; }
.hero-chip.c2 { bottom: 40px; left: -40px; animation-delay: -3s; }
.hero-chip.c2 .ci { background: linear-gradient(135deg, #12B76A, #32D583); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust strip ---------- */
.trust { padding: 40px 0; border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trust p { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 500; max-width: 240px; }
.trust ul { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.trust li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; opacity: .82; }
.trust li .ico { color: var(--blue); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 170px 0 100px; background: var(--grad-navy); color: #C5D3EA; overflow: hidden; }
.page-hero .page-hero-bg { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }
.page-hero::after { content: ''; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(0, 180, 255, .35), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 860px; font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.page-hero .lead { color: #B9C8E2; max-width: 720px; font-size: 1.15rem; }
.page-hero .hero-actions { margin: 34px 0 0; }
.crumbs { display: flex; gap: 10px; font-size: .86rem; color: #8FA6CC; margin-bottom: 22px; }
.crumbs a { color: #B9C8E2; }
.crumbs a:hover { color: #fff; }
.page-hero.has-visual .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.page-hero.has-visual { padding-bottom: 120px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; font-size: .97rem; }
.card-ico {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--soft-2); color: var(--blue); transition: background .35s, color .35s, transform .35s var(--ease);
}
.card:hover .card-ico { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.card .more .ico { transition: transform .25s; }
.card:hover .more .ico { transform: translateX(4px); }
.card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card ul.ticks { margin-top: 18px; }
.service-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.num-tag { position: absolute; top: 28px; right: 30px; font-family: var(--font-head); font-weight: 700; color: #DCE5F3; font-size: .95rem; }

ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: .96rem; color: var(--text); }
ul.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: #E3EDFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6BFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
ul.ticks.two { columns: 2; column-gap: 30px; }
ul.ticks.two li { break-inside: avoid; }
ul.ticks.light li { color: #C5D3EA; }
ul.ticks.light li::before { background-color: rgba(30, 107, 255, .25); }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-wide { grid-template-columns: 1.15fr 1fr; }
.intro-visual { position: relative; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-family: var(--font-head); font-size: 2.3rem; line-height: 1.1; letter-spacing: -.04em; color: var(--navy); margin-bottom: 8px; }
.stat b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { font-size: .92rem; color: var(--text); line-height: 1.5; display: block; }
.stat.dark { background: var(--grad-navy); border-color: transparent; }
.stat.dark b { color: #fff; }
.stat.dark small { color: #B9C8E2; }
.stat:nth-child(2) { transform: translateY(30px); }
.stat:nth-child(4) { transform: translateY(30px); }
.pillars { display: grid; gap: 20px; margin: 30px 0 34px; }
.pillar { display: flex; gap: 18px; }
.pillar .pi { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--soft-2); color: var(--blue); display: grid; place-items: center; }
.pillar h4 { margin-bottom: 4px; }
.pillar p { margin: 0; font-size: .96rem; }

/* ---------- ERP band (dark) ---------- */
.section-dark { background: var(--grad-navy); color: #B9C8E2; position: relative; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px; background: radial-gradient(circle, rgba(30, 107, 255, .28), transparent 60%); }
.section-dark .container { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.erp-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: 32px;
  transition: background .35s, border-color .35s, transform .35s var(--ease); position: relative;
}
.erp-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(0, 180, 255, .45); transform: translateY(-6px); }
.erp-card .card-ico { background: rgba(30, 107, 255, .18); color: #6FC3FF; }
.erp-card:hover .card-ico { background: var(--grad); color: #fff; }
.erp-card h3 { color: #fff; }
.erp-card p { margin: 0; font-size: .96rem; color: #B0C0DB; }
.erp-card a.more { color: #7CC8FF; display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* ---------- Edulip feature ---------- */
.edulip-feature { overflow: hidden; }
.edulip-feature .split { grid-template-columns: .9fr 1.25fr; }
.edu-logo { display: flex; width: fit-content; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--navy); margin-bottom: 18px; letter-spacing: -.03em; }
.edu-logo span { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }
.mini-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0 36px; }
.mini-feat { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.mini-feat .ico { flex: none; color: var(--blue); margin-top: 2px; }
.mini-feat b { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.mini-feat small { color: var(--muted); line-height: 1.5; display: block; }
.edulip-visual { position: relative; }
.edulip-visual::before { content: ''; position: absolute; inset: 8% -10% -10% 10%; background: var(--grad); filter: blur(80px); opacity: .22; border-radius: 50%; z-index: 0; }
.edulip-visual > * { position: relative; z-index: 1; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.why-item { padding: 40px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; position: relative; }
.why-item:nth-child(3n) { border-right: 0; }
.why-item:nth-last-child(-n+3) { border-bottom: 0; }
.why-item:hover { background: var(--soft); }
.why-item .wi { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 20px -10px rgba(30, 107, 255, .7); }
.why-item h3 { font-size: 1.15rem; }
.why-item p { margin: 0; font-size: .96rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; counter-reset: step; }
.process::before { content: ''; position: absolute; top: 31px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, #C9D8F2 0 8px, transparent 8px 16px); }
.process .line-fill { position: absolute; top: 31px; left: 8%; height: 2px; width: 0; background: var(--grad); transition: width 2.2s var(--ease); }
.process.in .line-fill { width: 84%; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 2px solid #D5E2F7; color: var(--blue); transition: all .4s var(--ease);
}
.step:hover .step-num { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.08); box-shadow: 0 14px 28px -12px rgba(30, 107, 255, .8); }
.step small { display: block; font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: .76rem; letter-spacing: .14em; margin-bottom: 6px; }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .9rem; margin: 0; line-height: 1.6; }

/* ---------- Tech stack chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--ink); transition: border-color .25s, color .25s; }
.chips span:hover { border-color: var(--blue); color: var(--blue); }
.stack-group { margin-bottom: 26px; }
.stack-group h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ---------- Service detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-row:last-child { border-bottom: 0; }
.svc-row:nth-child(even) .svc-media { order: -1; }
.svc-media {
  border-radius: 22px; background: var(--soft); border: 1px solid var(--line); padding: 34px; position: relative; overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.svc-media::after { content: ''; position: absolute; width: 300px; height: 300px; right: -100px; top: -100px; background: radial-gradient(circle, rgba(0, 180, 255, .18), transparent 65%); }
.svc-label { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: 14px; }
.svc-label i { font-style: normal; width: 30px; height: 30px; border-radius: 8px; background: var(--soft-2); display: grid; place-items: center; font-size: .8rem; }
.deliver { margin-top: 26px; padding: 20px 22px; border-radius: 14px; background: var(--soft); border-left: 3px solid var(--blue); font-size: .94rem; }
.deliver b { color: var(--ink); font-family: var(--font-head); }

/* Service media mini-illustrations */
.svc-ill { position: relative; z-index: 1; display: grid; gap: 12px; }
.ill-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); font-size: .86rem; color: var(--ink); }
.ill-row .ii { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--soft-2); color: var(--blue); flex: none; }
.ill-row b { font-family: var(--font-head); font-weight: 600; display: block; font-size: .88rem; }
.ill-row small { color: var(--muted); font-size: .78rem; }
.ill-row .r { margin-left: auto; }
.ill-bar { height: 6px; background: var(--soft-2); border-radius: 6px; overflow: hidden; width: 90px; }
.ill-bar em { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.ill-chat { display: grid; gap: 10px; }
.ill-chat p { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: .86rem; max-width: 85%; box-shadow: var(--shadow-sm); }
.ill-chat .u { background: #fff; border: 1px solid var(--line); color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }
.ill-chat .a { background: var(--grad); color: #fff; border-bottom-left-radius: 4px; }
.ill-cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ill-cloud div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; font-size: .8rem; color: var(--ink); }
.ill-cloud div .ico { margin: 0 auto 8px; color: var(--blue); }
.ill-cloud div b { display: block; font-family: var(--font-head); font-size: .95rem; }
.ill-web { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.ill-web .wb { height: 26px; background: var(--soft); display: flex; gap: 5px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.ill-web .wb i { width: 7px; height: 7px; border-radius: 50%; background: #D5DEEC; }
.ill-web .wh { padding: 22px; background: var(--grad-navy); }
.ill-web .wh i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .85); width: 60%; margin-bottom: 8px; }
.ill-web .wh i + i { width: 40%; background: rgba(255, 255, 255, .4); }
.ill-web .wh em { display: inline-block; width: 70px; height: 20px; border-radius: 6px; background: var(--grad); margin-top: 8px; }
.ill-web .wc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.ill-web .wc span { height: 46px; border-radius: 8px; background: var(--soft-2); }
.ill-web .lh { display: flex; justify-content: space-around; padding: 10px 14px 16px; font-size: .74rem; color: var(--muted); }
.ill-web .lh b { color: var(--ok); font-family: var(--font-head); font-size: 1rem; display: block; text-align: center; }

/* ---------- Modules grid ---------- */
.module {
  display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.module:hover { border-color: #BFD3F7; box-shadow: var(--shadow); transform: translateY(-3px); }
.module .mi { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--soft-2); color: var(--blue); display: grid; place-items: center; }
.module h4 { margin-bottom: 4px; font-size: 1rem; }
.module p { margin: 0; font-size: .9rem; line-height: 1.6; }

/* Role tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; width: fit-content; margin: 0 auto 40px; }
.tab-btn { padding: 11px 22px; border-radius: 10px; border: 0; background: none; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text); cursor: pointer; transition: all .25s; }
.tab-btn.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Highlight band / stats ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { text-align: center; padding: 10px; }
.metric b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.9rem); color: #fff; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 8px; }
.metric small { color: #B0C0DB; font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: #BFD3F7; box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: left; padding: 22px 26px; background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-q .ico { flex: none; color: var(--blue); transition: transform .3s; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 26px 22px; margin: 0; }

/* ---------- Values / team ---------- */
.value { padding: 32px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.value .card-ico { background: #fff; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv .card { padding: 40px; }
.mv .card.dark { background: var(--grad-navy); border: 0; color: #B9C8E2; }
.mv .card.dark h3 { color: #fff; }
.mv .card.dark .card-ico { background: rgba(30, 107, 255, .2); color: #7CC8FF; }
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue), var(--electric)); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before { content: ''; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item b { font-family: var(--font-head); color: var(--ink); display: block; margin-bottom: 4px; }
.tl-item p { margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.contact-info { background: var(--grad-navy); color: #B9C8E2; padding: 54px 48px; position: relative; overflow: hidden; }
.contact-info::after { content: ''; position: absolute; width: 380px; height: 380px; right: -160px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 180, 255, .35), transparent 65%); }
.contact-info h2, .contact-info h3 { color: #fff; }
.contact-info h2 { font-size: 1.9rem; }
.c-list { display: grid; gap: 22px; margin: 34px 0; position: relative; z-index: 1; }
.c-list li { display: flex; gap: 16px; align-items: flex-start; }
.c-list .ci { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #7CC8FF; display: grid; place-items: center; flex: none; }
.c-list small { display: block; color: #8FA6CC; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.c-list a, .c-list span { color: #fff; font-weight: 500; }
.contact-form { padding: 54px 48px; }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label em { color: #E5484D; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #D5DEEC; background: #FBFCFE; font: inherit; font-size: .96rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30, 107, 255, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #E5484D; }
.field .err { color: #E5484D; font-size: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; display: flex; gap: 8px; align-items: center; }
.alert { padding: 16px 20px; border-radius: 12px; font-size: .95rem; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; }
.alert .ico { flex: none; margin-top: 2px; }
.alert-ok { background: #E8F8F0; color: #0B6B41; border: 1px solid #B4E8CE; }
.alert-err { background: #FDECEC; color: #A3262A; border: 1px solid #F6C4C5; }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.office .card-ico { margin-bottom: 18px; }
.office h4 { margin-bottom: 6px; }
.office p { margin: 0; font-size: .95rem; }

/* Home contact section */
.home-contact .contact-wrap { grid-template-columns: 1fr 1.2fr; }

/* ---------- Footer ---------- */
.site-footer { background: #071631; color: #93A5C6; position: relative; padding-top: 0; }
.footer-cta { padding: 0 0 0; position: relative; transform: translateY(-50%); margin-bottom: -40px; }
.footer-cta-inner {
  background: var(--grad); border-radius: 26px; padding: 54px 60px; display: flex; justify-content: space-between; align-items: center; gap: 40px;
  color: rgba(255, 255, 255, .88); position: relative; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(30, 107, 255, .7);
}
.footer-cta-inner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.footer-cta-inner > * { position: relative; }
.footer-cta h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.footer-cta p { margin: 0; max-width: 620px; }
.footer-cta .eyebrow.light { color: #fff; }
.footer-cta .eyebrow::before { background: #fff; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
body.page-contact .footer-cta { display: none; }
body.page-contact .site-footer { padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: 40px; padding: 30px 0 60px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 20px; }
.site-footer ul li { margin-bottom: 12px; font-size: .93rem; }
.site-footer a { color: #93A5C6; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: .93rem; margin: 20px 0 24px; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: #C5D3EA; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ico { flex: none; color: #5FA8FF; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 10px; }

.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); z-index: 90; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; } .reveal-d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Product interface mockups (mk-*)
   ========================================================================== */
.mk-browser { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid #DCE4F0; overflow: hidden; font-family: var(--font-body); color: var(--ink); font-size: 10px; line-height: 1.4; text-align: left; }
.mk-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F3F6FB; border-bottom: 1px solid #E3E9F2; }
.mk-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.mk-bar > i:nth-child(2) { background: #FEBC2E; }
.mk-bar > i:nth-child(3) { background: #28C840; }
.mk-addr { margin-left: 14px; flex: 1; max-width: 260px; height: 18px; border-radius: 6px; background: #fff; border: 1px solid #E3E9F2; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--muted); font-size: 9px; }
.mk-addr .ico { width: 9px; height: 9px; color: var(--ok); }
.mk-body { background: #F6F8FC; }
.mk-dash { display: grid; grid-template-columns: 128px 1fr; min-height: 360px; }
.mk-side { background: var(--navy); color: #9FB2D3; padding: 14px 10px; display: flex; flex-direction: column; }
.mk-logo { display: flex; align-items: center; gap: 7px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px; margin: 2px 4px 16px; }
.mk-logo span { width: 20px; height: 20px; border-radius: 6px; background: var(--grad); display: grid; place-items: center; font-size: 11px; }
.mk-side li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; margin-bottom: 2px; font-size: 9.5px; }
.mk-side li .ico { width: 12px; height: 12px; }
.mk-side li.on { background: rgba(30, 107, 255, .25); color: #fff; box-shadow: inset 2px 0 0 var(--electric); }
.mk-side-card { margin-top: auto; padding: 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.mk-side-card b { color: #fff; display: block; font-size: 9px; }
.mk-side-card small { font-size: 8.5px; }
.mk-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mk-top b { font-family: var(--font-head); font-size: 12px; display: block; }
.mk-top small { color: var(--muted); font-size: 9px; }
.mk-top-r { display: flex; align-items: center; gap: 8px; }
.mk-search { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; background: #fff; border: 1px solid #E3E9F2; border-radius: 7px; color: var(--muted); font-size: 8.5px; }
.mk-search .ico { width: 10px; height: 10px; }
.mk-bell { position: relative; width: 22px; height: 22px; border-radius: 7px; background: #fff; border: 1px solid #E3E9F2; display: grid; place-items: center; color: var(--text); }
.mk-bell .ico { width: 11px; height: 11px; }
.mk-bell em { position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #F04438; }
.mk-av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mk-kpi { background: #fff; border: 1px solid #E8EDF5; border-radius: 9px; padding: 9px 10px; }
.mk-kpi small { color: var(--muted); font-size: 8.5px; display: block; }
.mk-kpi b { font-family: var(--font-head); font-size: 14px; display: block; margin: 2px 0; letter-spacing: -.02em; }
.mk-kpi span { font-size: 8px; }
.mk-kpi .up { color: var(--ok); }
.mk-kpi .down { color: #D97706; }
.mk-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
.mk-row-b { grid-template-columns: 1.4fr 1fr; }
.mk-card { background: #fff; border: 1px solid #E8EDF5; border-radius: 9px; padding: 10px; min-width: 0; }
.mk-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.mk-card-h b { font-family: var(--font-head); font-size: 10px; display: flex; align-items: center; gap: 5px; }
.mk-card-h b .ico { width: 11px; height: 11px; color: var(--blue); }
.mk-pill { font-size: 8px; padding: 2px 7px; border-radius: 999px; background: var(--soft-2); color: var(--blue); font-weight: 600; }
.mk-link { font-size: 8.5px; color: var(--blue); font-weight: 600; }
.mk-chart svg { width: 100%; height: 92px; }
.mk-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mk-legend { display: flex; gap: 12px; font-size: 8px; color: var(--muted); margin-top: 4px; }
.mk-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.mk-bargrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; height: 108px; align-items: end; }
.mk-bargrid div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.mk-bargrid i { width: 100%; max-width: 18px; border-radius: 4px 4px 2px 2px; background: #D3E2FF; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.mk-bargrid div:nth-child(2) i { animation-delay: .1s; } .mk-bargrid div:nth-child(3) i { animation-delay: .2s; } .mk-bargrid div:nth-child(4) i { animation-delay: .3s; } .mk-bargrid div:nth-child(5) i { animation-delay: .4s; } .mk-bargrid div:nth-child(6) i { animation-delay: .5s; }
.mk-bargrid .hi i { background: var(--grad); }
.mk-bargrid small { font-size: 7.5px; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mk-table table { width: 100%; border-collapse: collapse; font-size: 8.8px; }
.mk-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 0 0 5px; border-bottom: 1px solid #EEF2F8; }
.mk-table td { padding: 5px 0; border-bottom: 1px solid #F2F5FA; white-space: nowrap; }
.mk-table tr:last-child td { border-bottom: 0; }
.mk-dot { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 6.5px; font-weight: 700; color: var(--navy); margin-right: 6px; vertical-align: middle; }
.mk-dot.lg { width: 30px; height: 30px; font-size: 9px; margin: 0; }
.mk-tag { font-size: 7.8px; padding: 2px 7px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.mk-tag.ok { background: #E3F8EE; color: #08875A; }
.mk-tag.wait { background: #FFF4DE; color: #B45309; }
.mk-ev { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.mk-ev .d { width: 30px; height: 32px; border-radius: 7px; background: var(--soft-2); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 6.5px; font-weight: 700; flex: none; }
.mk-ev .d b { font-size: 11px; line-height: 1; font-family: var(--font-head); }
.mk-ev .d.c2 { background: #E2F6FF; color: #0284C7; }
.mk-ev p { margin: 0; }
.mk-ev p b { font-size: 9px; display: block; }
.mk-ev p small { font-size: 8px; color: var(--muted); }

/* phone */
.mk-phone { background: #0A1F44; border-radius: 30px; padding: 8px; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2B4776; position: relative; font-size: 10px; line-height: 1.4; color: var(--ink); z-index: 2; }
.mk-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 60px; height: 14px; background: #0A1F44; border-radius: 0 0 10px 10px; z-index: 2; }
.mk-ph-screen { background: #F6F8FC; border-radius: 23px; overflow: hidden; padding: 22px 12px 10px; display: flex; flex-direction: column; gap: 9px; }
.mk-ph-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.mk-ph-top small { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 10px; }
.mk-ph-top .ico { width: 13px; height: 13px; }
.mk-ph-child { display: flex; gap: 9px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid #E8EDF5; }
.mk-ph-child b { display: block; font-size: 10px; }
.mk-ph-child small { font-size: 8.5px; color: var(--muted); }
.mk-ph-ring { position: relative; background: #fff; border: 1px solid #E8EDF5; border-radius: 12px; padding: 8px; display: flex; justify-content: center; }
.mk-ph-ring svg { width: 78px; height: 78px; }
.mk-ph-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mk-ph-ring b { font-family: var(--font-head); font-size: 14px; }
.mk-ph-ring small { font-size: 7.5px; color: var(--muted); }
.mk-ring { animation: ring 2s .5s var(--ease) both; }
@keyframes ring { from { stroke-dashoffset: 201; } }
.mk-ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mk-ph-tiles div { background: #fff; border: 1px solid #E8EDF5; border-radius: 10px; padding: 7px 8px; }
.mk-ph-tiles small { font-size: 7.5px; color: var(--muted); display: block; }
.mk-ph-tiles b { font-family: var(--font-head); font-size: 11px; display: block; }
.mk-ph-tiles em { font-style: normal; font-size: 7.5px; color: var(--blue); font-weight: 600; }
.mk-ph-item { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #E8EDF5; border-radius: 10px; padding: 7px 8px; }
.mk-ph-item .ico { width: 22px; height: 22px; padding: 5px; border-radius: 7px; background: var(--soft-2); color: var(--blue); flex: none; }
.mk-ph-item p { margin: 0; }
.mk-ph-item b { font-size: 8.5px; display: block; }
.mk-ph-item small { font-size: 7.5px; color: var(--muted); }
.mk-ph-nav { display: flex; justify-content: space-around; padding-top: 4px; }
.mk-ph-nav i { width: 14px; height: 4px; border-radius: 3px; background: #D5DEEC; }
.mk-ph-nav i.on { background: var(--blue); width: 22px; }

/* code */
.mk-code-wrap { position: relative; padding: 0 0 50px 0; font-size: 10px; line-height: 1.4; }
.mk-editor { background: #0B1730; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #1C2E52; }
.mk-bar.dark { background: #0F1F3F; border-color: #1C2E52; }
.mk-tabs { display: flex; gap: 2px; margin-left: 14px; }
.mk-tabs span { font-size: 9px; color: #6E84AD; padding: 4px 10px; border-radius: 6px 6px 0 0; }
.mk-tabs span.on { background: #0B1730; color: #DCE6F8; }
.mk-editor pre { margin: 0; padding: 18px 18px 22px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 11.5px; line-height: 1.85; color: #C9D6EE; overflow: hidden; white-space: pre; }
.mk-editor .ln { display: inline-block; width: 22px; color: #3D5583; user-select: none; }
.mk-editor .k { color: #7CA8FF; } .mk-editor .s { color: #7EE0B5; } .mk-editor .c { color: #5C7099; font-style: italic; } .mk-editor .t { color: #FFC872; } .mk-editor .f { color: #5FD4FF; } .mk-editor .n { color: #FF9E7A; }
.cursor { display: inline-block; width: 7px; height: 14px; background: var(--electric); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mk-pipe { position: absolute; right: -24px; bottom: 0; width: 250px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mk-pipe ol { margin: 0; padding: 0; list-style: none; }
.mk-pipe li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 9.5px; border-bottom: 1px dashed #EEF2F8; }
.mk-pipe li:last-child { border: 0; }
.mk-pipe li small { margin-left: auto; color: var(--muted); font-size: 8.5px; }
.mk-pipe li i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.mk-pipe li.done i { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 8px no-repeat; }
.mk-pipe li.run i { border: 2px solid #D3E2FF; border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mk-float-stat { position: absolute; left: -26px; top: 46%; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: floaty 6s ease-in-out infinite; }
.mk-float-stat small { font-size: 8.5px; color: var(--muted); display: block; }
.mk-float-stat b { font-family: var(--font-head); font-size: 15px; display: block; }
.mk-float-stat svg { width: 80px; height: 20px; }

/* college */
.mk-col, .mk-school { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mk-col .mk-row { grid-template-columns: 1fr 1.15fr; }
.mk-funnel .f { position: relative; height: 22px; margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 8.5px; z-index: 0; }
.mk-funnel .f::before { content: ''; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, #1E6BFF, #00B4FF); opacity: .16; border-radius: 6px; z-index: -1; }
.mk-funnel .f:last-child::before { opacity: .35; }
.mk-funnel .f b { font-family: var(--font-head); }
.mk-acc .p { display: grid; grid-template-columns: 1fr 70px 28px; align-items: center; gap: 8px; font-size: 8.5px; margin-bottom: 8px; }
.mk-acc .p i { height: 6px; background: #EEF2F8; border-radius: 6px; overflow: hidden; }
.mk-acc .p em { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.mk-acc .p b { text-align: right; font-family: var(--font-head); }

/* exam */
.mk-exam-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fff; border-bottom: 1px solid #E8EDF5; }
.mk-exam-top b { font-family: var(--font-head); font-size: 11px; }
.mk-timer { display: flex; align-items: center; gap: 5px; background: #FFF4DE; color: #B45309; padding: 3px 9px; border-radius: 999px; font-weight: 600; font-size: 9px; }
.mk-timer .ico { width: 11px; height: 11px; }
.mk-exam-body { display: grid; grid-template-columns: 1fr 150px; gap: 10px; padding: 12px; }
.mk-q { background: #fff; border: 1px solid #E8EDF5; border-radius: 10px; padding: 12px; }
.mk-q > small { color: var(--blue); font-weight: 600; font-size: 8.5px; }
.mk-q p { font-size: 10.5px; margin: 6px 0 10px; color: var(--ink); line-height: 1.5; }
.mk-q label { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #E8EDF5; border-radius: 8px; margin-bottom: 6px; font-size: 9.5px; }
.mk-q label i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #C2CEE0; }
.mk-q label.sel { border-color: var(--blue); background: #F0F5FF; }
.mk-q label.sel i { border: 3.5px solid var(--blue); }
.mk-q-actions { display: flex; justify-content: space-between; margin-top: 10px; }
.mk-q-actions span { font-size: 8.5px; padding: 5px 10px; border-radius: 7px; font-weight: 600; }
.mk-q-actions .ghost { border: 1px solid #E3E9F2; color: var(--text); }
.mk-q-actions .pri { background: var(--blue); color: #fff; }
.mk-pal { background: #fff; border: 1px solid #E8EDF5; border-radius: 10px; padding: 10px; }
.mk-pal > small { font-size: 8.5px; color: var(--muted); display: block; margin-bottom: 7px; }
.mk-pal > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mk-pal i { font-style: normal; height: 19px; border-radius: 5px; display: grid; place-items: center; font-size: 8px; background: #F1F4F9; color: var(--text); }
.mk-pal i.a { background: #DDF6EA; color: #08875A; }
.mk-pal i.r { background: #FFF1D6; color: #B45309; }
.mk-pal i.cur { background: var(--blue); color: #fff; }
.mk-pal-l { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; font-size: 7.8px; color: var(--muted); }
.mk-pal-l i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; vertical-align: -1px; }

/* school */
.mk-school .mk-row { grid-template-columns: 1.6fr 1fr; }
.mk-ttgrid { display: grid; grid-template-columns: 22px repeat(5, 1fr); gap: 4px; font-size: 8px; }
.mk-ttgrid .h { text-align: center; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.mk-ttgrid .p { color: var(--muted); display: grid; place-items: center; font-weight: 600; }
.mk-ttgrid .s { padding: 7px 2px; border-radius: 6px; text-align: center; font-weight: 600; font-size: 7.6px; }
.mk-ttgrid .c1 { background: #E3EDFF; color: #1E50C8; } .mk-ttgrid .c2 { background: #DDF4FF; color: #0369A1; } .mk-ttgrid .c3 { background: #EAE6FF; color: #5B3FD0; } .mk-ttgrid .c4 { background: #E0F7EC; color: #08875A; } .mk-ttgrid .c5 { background: #FFF1DD; color: #B45309; }
.mk-rc .r { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #F2F5FA; font-size: 9px; }
.mk-rc .r b { color: var(--blue); font-family: var(--font-head); }
.mk-rc-f { margin-top: 8px; padding: 8px; border-radius: 8px; background: var(--grad); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.mk-rc-f small { font-size: 8.5px; opacity: .85; }
.mk-rc-f b { font-family: var(--font-head); font-size: 13px; }

/* mockups on dark hero */
.page-hero .mk-browser { border-color: rgba(255, 255, 255, .12); }
.mock-stage { position: relative; }
.mock-stage .mk-phone { position: absolute; width: 180px; right: -20px; bottom: -60px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 30px; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .process::before, .process .line-fill { display: none; }
}

@media (max-width: 1024px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; padding: 96px 24px 30px; box-shadow: -20px 0 60px -20px rgba(10, 31, 68, .3);
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; z-index: 99;
  }
  .nav-open .main-nav { transform: none; }
  .nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(7, 22, 49, .45); z-index: 98; }
  .site-header { z-index: 101; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .drop-toggle { width: 100%; justify-content: space-between; padding: 14px 14px; font-size: 1.02rem; }
  .main-nav li.active > a::after, .main-nav li.active > .drop-toggle::after { display: none; }
  .main-nav li.active > a { background: var(--soft); }
  .dropdown { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 0 8px; max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transition: max-height .35s var(--ease); }
  .has-drop:hover .dropdown { transform: none; }
  .has-drop.open .dropdown { max-height: 300px; transform: none; }
  .has-drop:not(.open):hover .drop-toggle svg { transform: none; }
  .nav-cta-mobile { display: block; margin-top: 16px; }
  .nav-cta-mobile .btn { width: 100%; justify-content: center; color: #fff; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  .nav-cta { display: none; }

  .hero { padding: 140px 0 90px; }
  .hero-inner, .split, .split-wide, .edulip-feature .split, .page-hero.has-visual .container, .svc-row, .section-head.split { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 720px; margin: 0 auto; width: 100%; }
  .hero-visual .mk-browser { transform: none; }
  .split.reverse > :first-child, .svc-row:nth-child(even) .svc-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .why-item:nth-child(2n) { border-right: 0; }
  .why-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .why-item:nth-last-child(-n+2) { border-bottom: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact-wrap, .home-contact .contact-wrap { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 40px; }
  .offices { grid-template-columns: 1fr 1fr; }
  .section { padding: 90px 0; }
  .mock-stage { margin-bottom: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 120px 0 70px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { gap: 22px; }
  .hero-visual .mk-phone { width: 140px; right: -6px; bottom: -40px; }
  .hero-chip.c1 { left: 6%; top: -30px; }
  .hero-chip.c2 { left: -6px; bottom: 20px; }
  .grid-2, .grid-3, .grid-4, .why-grid, .mv, .offices, .stat-grid { grid-template-columns: 1fr; }
  .stat:nth-child(2), .stat:nth-child(4) { transform: none; }
  .why-item { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .why-item:last-child { border-bottom: 0 !important; }
  .process { grid-template-columns: 1fr 1fr; }
  .mini-feats, .form-grid { grid-template-columns: 1fr; }
  ul.ticks.two { columns: 1; }
  .card, .erp-card { padding: 28px; }
  .contact-info, .contact-form { padding: 40px 26px; }
  .footer-cta-inner { padding: 36px 26px; border-radius: 20px; }
  .footer-cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-contact ul { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 70px; }
  .svc-row { padding: 50px 0; gap: 34px; }
  .svc-media { padding: 22px; min-height: 0; }
  .tabs { width: 100%; }
  .tab-btn { flex: 1; padding: 10px 12px; }
  /* scale mockups down on small screens */
  .mk-dash { grid-template-columns: 1fr; }
  .mk-side { display: none; }
  .mk-kpis { grid-template-columns: repeat(2, 1fr); }
  .mk-search { display: none; }
  .mk-row, .mk-row-b, .mk-col .mk-row, .mk-school .mk-row { grid-template-columns: 1fr; }
  .mk-exam-body { grid-template-columns: 1fr; }
  .mk-pipe { position: relative; right: auto; width: auto; margin-top: 12px; }
  .mk-code-wrap { padding-bottom: 0; }
  .mk-float-stat { display: none; }
  .mk-editor pre { font-size: 10px; }
  .mock-stage .mk-phone { display: none; }
}
@media (max-width: 420px) {
  .process { grid-template-columns: 1fr; }
  .hero-chip { display: none; }
}

/* ---------- Brand logo (image) ---------- */
.brand-logo { height: 44px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }
.brand-light .brand-logo { height: 46px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
@media (max-width: 720px) { .brand-logo { height: 36px; } }
/* room for the overlapping footer CTA */
main > section:last-child { padding-bottom: 200px; }
body.page-contact main > section:last-child { padding-bottom: 110px; }
@media (max-width: 1024px) { main > section:last-child { padding-bottom: 260px; } }
@media (max-width: 720px) { main > section:last-child { padding-bottom: 300px; } }
.site-footer .btn-light { color: var(--navy); }
.site-footer .btn-light:hover { color: var(--blue); }
.site-footer .btn-ghost-light, .site-footer .btn-ghost-light:hover { color: #fff; }

/* ---------- Header over dark inner-page heroes ---------- */
@media (min-width: 1025px) {
  .dark-hero .site-header:not(.scrolled) .main-nav > ul > li > a,
  .dark-hero .site-header:not(.scrolled) .drop-toggle { color: #DCE6F8; }
  .dark-hero .site-header:not(.scrolled) .main-nav > ul > li > a:hover,
  .dark-hero .site-header:not(.scrolled) .drop-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
  .dark-hero .site-header:not(.scrolled) .main-nav li.active > a,
  .dark-hero .site-header:not(.scrolled) .main-nav li.active > .drop-toggle { color: #fff; }
}
.dark-hero .site-header:not(.scrolled) .nav-toggle { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.dark-hero .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.dark-hero.nav-open .site-header .nav-toggle { background: #fff; border-color: var(--line); }
.dark-hero.nav-open .site-header .nav-toggle span { background: var(--navy); }

/* Mockup text colour must not inherit from dark sections */
.mk-code-wrap, .mk-pipe, .mk-float-stat { color: var(--ink); }

/* Gradient numbers on light metric rows */
.metric b.grad-text { color: transparent; }

/* Edulip hero lets the dashboard overlap the next section */
.edulip-hero { overflow: visible; z-index: 2; }
.edulip-hero::after { display: none; }
