/* ==========================================================================
   Moi-Techs — design system
   Dark-first, AI-focused. No build step, no dependencies.
   Sections: 1 tokens · 2 reset · 3 typography · 4 layout · 5 buttons
             6 nav · 7 hero · 8 cards & primitives · 9 stats · 10 marquee
             11 devices · 12 sections/modules · 13 forms · 14 footer
             15 motion · 16 responsive
   ========================================================================== */

/* ---------- 1. tokens ---------------------------------------------------- */
:root {
  /* surfaces */
  --bg:            #05070F;
  --bg-2:          #080C1A;
  --surface:       #0C1222;
  --surface-2:     #111931;
  --surface-3:     #16203C;
  --line:          rgba(148, 163, 208, 0.16);
  --line-strong:   rgba(148, 163, 208, 0.30);

  /* brand */
  --indigo:        #6366F1;
  --indigo-light:  #818CF8;
  --violet:        #A855F7;
  --cyan:          #22D3EE;
  --teal:          #5EEAD4;
  --amber:         #F59E0B;

  /* text */
  --text:          #F5F7FF;
  --text-2:        #C3CBE4;
  --text-3:        #8D98B8;
  --text-4:        #667092;

  /* effects */
  --grad-brand:    linear-gradient(135deg, #818CF8 0%, #6366F1 45%, #A855F7 100%);
  --grad-cool:     linear-gradient(135deg, #22D3EE 0%, #6366F1 100%);
  --grad-text:     linear-gradient(100deg, #FFFFFF 0%, #C7D2FE 55%, #A5B4FC 100%);
  --glow-indigo:   0 0 0 1px rgba(99, 102, 241, 0.35), 0 18px 50px -12px rgba(99, 102, 241, 0.55);
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md:     0 12px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg:     0 32px 70px -20px rgba(0, 0, 0, 0.75);

  /* geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 74px;

  /* type */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
}

/* ---------- 2. reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(99, 102, 241, 0.40); color: #fff; }

:focus-visible {
  outline: 2px solid var(--indigo-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  background: var(--indigo); color: #fff; font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. typography ---------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4.1vw, 3.3rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.06rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; color: var(--text-2); }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--text); font-weight: 600; }

.lead { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--text-2); line-height: 1.72; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.accent-text {
  background: linear-gradient(100deg, #A5B4FC, #C084FC 55%, #67E8F9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* eyebrow / pill label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 11px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.09);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: .755rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo-light);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.20);
  flex: none;
}

/* ---------- 4. layout --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 880px; }

/* `clip` contains the decorative .glow blobs without creating a scroll container */
.section { padding: clamp(64px, 8.5vw, 118px) 0; position: relative; overflow: clip; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%); }

/* hairline divider between bands */
.section + .section::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
}

.section-head { max-width: 720px; margin-bottom: clamp(38px, 4.6vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.04rem; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.split.top { align-items: start; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* for 2-up tiles inside a narrower column of a .split, where grid-2 would collapse to one */
.grid-2-tight { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }

.stack   { display: flex; flex-direction: column; gap: 18px; }
.row     { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.row-tight { gap: 8px; }
.center-text { text-align: center; }
.mt-l { margin-top: 44px; }
.mt-m { margin-top: 26px; }

/* ambient glow blob, positioned by modifier */
.glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 620px; aspect-ratio: 1; border-radius: 50%;
  filter: blur(110px); opacity: .5;
}
.glow-indigo { background: radial-gradient(circle, rgba(99,102,241,.55), transparent 66%); }
.glow-violet { background: radial-gradient(circle, rgba(168,85,247,.42), transparent 66%); }
.glow-cyan   { background: radial-gradient(circle, rgba(34,211,238,.32), transparent 66%); }
.glow-tl { top: -220px; left: -180px; }
.glow-tr { top: -240px; right: -200px; }
.glow-br { bottom: -260px; right: -180px; }
.section > .container { position: relative; z-index: 1; }

/* ---------- 5. buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease,
              border-color .22s ease, color .22s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .22s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.75);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(99, 102, 241, 0.9);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(99, 102, 241, 0.14);
  transform: translateY(-2px);
}

.btn-quiet { padding: 0; color: var(--indigo-light); font-weight: 600; }
.btn-quiet:hover { color: #fff; }
.btn-sm { padding: 9px 17px; font-size: .855rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- 6. nav ----------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .28s ease, border-color .28s ease, backdrop-filter .28s ease;
}
.nav.stuck {
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav > .container {
  height: 100%;
  display: flex; align-items: center; gap: 22px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: .92rem;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: #fff; background: rgba(99, 102, 241, 0.18); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }

/* CTA mirrored into the mobile drawer by main.js — hidden at desktop widths */
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.8px;
  margin: 3.4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform .26s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

/* ---------- 7. hero ---------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(48px, 6vw, 84px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

/* the required background image sits here */
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../img/hero-bg.svg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
/* legibility scrim: darker on the left where the glass panel sits */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(5,7,15,.92) 0%, rgba(5,7,15,.72) 38%, rgba(5,7,15,.30) 68%, rgba(5,7,15,.55) 100%),
    linear-gradient(180deg, rgba(5,7,15,.55) 0%, transparent 30%, rgba(5,7,15,.85) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

/* the blurred glass panel carrying the headline copy */
.hero-panel {
  position: relative;
  padding: clamp(28px, 3.4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(255,255,255,.085), rgba(255,255,255,.028));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
/* soft top-edge highlight */
.hero-panel::before {
  content: '';
  position: absolute; inset-inline: 12%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,210,254,.75), transparent);
}

.hero-trust {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(129, 140, 248, 0.38);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: #E0E7FF;
  font-size: .775rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-trust svg { width: 14px; height: 14px; flex: none; color: var(--amber); }

.hero-panel h1 { margin-bottom: 18px; }
.hero-panel h1 .accent-text { display: inline; }

.hero-sub {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.68;
  color: #D7DEF5;
  margin-bottom: 14px;
}
.hero-kicker {
  font-size: .96rem;
  color: var(--text-3);
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta li {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3);
  font-size: .84rem;
  font-weight: 500;
}
.hero-meta svg { width: 15px; height: 15px; color: var(--teal); flex: none; }

/* floating capability chips beside the panel */
.hero-aside { display: grid; gap: 14px; }
.hero-chip {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(12,18,34,.82), rgba(12,18,34,.52));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.hero-chip .ico {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .9);
}
.hero-chip .ico svg { width: 21px; height: 21px; }
.hero-chip h4 { margin: 0 0 3px; }
.hero-chip p { margin: 0; font-size: .855rem; color: var(--text-3); line-height: 1.55; }

/* compact hero for inner pages */
.page-hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(52px, 6.5vw, 88px)) 0 clamp(40px, 5vw, 66px);
  border-bottom: 1px solid var(--line);
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(900px circle at 18% -20%, rgba(99, 102, 241, .26), transparent 62%),
    radial-gradient(720px circle at 88% 6%,  rgba(168, 85, 247, .18), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(143, 163, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(143, 163, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px circle at 70% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(700px circle at 70% 0%, #000, transparent 72%);
}
.page-hero-inner { max-width: 780px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { font-size: clamp(1.04rem, 1.4vw, 1.2rem); }

.breadcrumb {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 22px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---------- 8. cards & primitives -------------------------------------- */
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface) 0%, rgba(8, 12, 26, .72) 100%);
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
  overflow: hidden;
}
.card > * { position: relative; z-index: 1; }
/* hover sheen */
.card::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(520px circle at 50% 0%, rgba(99,102,241,.16), transparent 62%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: var(--shadow-md);
}
.card-hover:hover::after { opacity: 1; }

.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--text-3); font-size: .93rem; line-height: 1.65; }

.card-ico {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(99,102,241,.26), rgba(168,85,247,.14));
  color: var(--indigo-light);
}
.card-ico svg { width: 24px; height: 24px; }

/* numbered card (process steps, differentiators) */
.card-num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(148, 163, 208, 0.13);
}

/* feature card with a top gradient rule */
.card-rule::before {
  content: '';
  position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: var(--grad-brand);
  opacity: .8;
}

/* checklist */
.ticks { display: grid; gap: 11px; }
.ticks li {
  display: flex; align-items: flex-start; gap: 11px;
  color: var(--text-2);
  font-size: .93rem;
  line-height: 1.6;
}
.ticks svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--teal); }

/* small pill / tag */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-3);
  font-size: .775rem;
  font-weight: 500;
  white-space: nowrap;
}
.tag-brand {
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(99, 102, 241, 0.14);
  color: #C7D2FE;
}

/* quote / testimonial */
.quote {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface-2), rgba(8,12,26,.7));
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: .8;
  color: rgba(129, 140, 248, .45);
}
.quote blockquote { margin: 14px 0 22px; color: var(--text-2); font-size: 1rem; line-height: 1.72; }
.quote-by { display: flex; align-items: center; gap: 13px; }
.quote-avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.quote-by strong { display: block; font-size: .93rem; }
.quote-by span { font-size: .82rem; color: var(--text-4); }

/* content placeholder — visibly unfinished on purpose */
.todo {
  border-style: dashed !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: linear-gradient(155deg, rgba(245,158,11,.07), rgba(8,12,26,.6)) !important;
}
.todo-flag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  color: #FCD34D;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.todo-note {
  padding: 16px 20px;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--r);
  background: rgba(245, 158, 11, 0.06);
  color: #FDE68A;
  font-size: .88rem;
}
.todo-note code {
  font-family: var(--font-mono);
  font-size: .82em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
}

/* ---------- 9. stats --------------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  background: linear-gradient(160deg, var(--surface) 0%, rgba(8,12,26,.9) 100%);
  text-align: center;
  transition: background .26s ease;
}
.stat:hover { background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span {
  display: block;
  margin-top: 10px;
  color: var(--text-3);
  font-size: .845rem;
  font-weight: 500;
  letter-spacing: .01em;
}

/* big single figures (talent pool, impact) */
.figure-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface-2), rgba(8,12,26,.75));
}
.figure-card b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, #A5B4FC, #C084FC 60%, #67E8F9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.figure-card p { margin: 12px 0 0; font-size: .93rem; color: var(--text-3); }

/* ---------- 10. marquee ------------------------------------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 52s; }
@keyframes slide { to { transform: translateX(-50%); } }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(150deg, var(--surface), rgba(8,12,26,.6));
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .22s ease, color .22s ease, transform .22s ease;
}
.chip:hover { border-color: rgba(129,140,248,.5); color: #fff; transform: translateY(-2px); }
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--grad-brand);
}
.chip-ai { border-color: rgba(129, 140, 248, .32); background: rgba(99, 102, 241, .12); color: #DDE3FF; }
.chip-ai .dot { background: linear-gradient(135deg, #67E8F9, #A855F7); }

/* client wordmarks */
.client-mark {
  display: inline-flex; align-items: center;
  padding: 16px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}
.client-mark:hover { color: #fff; border-color: var(--line-strong); background: rgba(255,255,255,.05); }

/* ---------- 11. device frames ------------------------------------------ */
/* premium side-by-side phone showcase */
.showcase {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 2.4vw, 30px);
  padding: clamp(20px, 3vw, 40px) 0 0;
  perspective: 1800px;
}

.device {
  position: relative;
  flex: 0 0 auto;
  width: clamp(146px, 17.5vw, 246px);
  padding: 8px;
  border-radius: 30px;
  background: linear-gradient(160deg, #2B3352, #10162A 55%, #232A45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    var(--shadow-lg),
    0 0 60px -18px rgba(99, 102, 241, 0.55);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}
.device::before { /* speaker notch */
  content: '';
  position: absolute; top: 15px; left: 50%;
  width: 34%; height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.device img {
  display: block;
  width: 100%;
  border-radius: 23px;
  background: #0B1020;
}
.device figcaption {
  margin-top: 16px;
  color: var(--text-3);
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: .01em;
}

/* fanned depth — centre device leads */
.showcase .device:nth-child(1) { transform: rotateY(11deg) translateY(20px) scale(.9);  z-index: 1; opacity: .92; }
.showcase .device:nth-child(2) { transform: translateY(-8px) scale(1.05); z-index: 3; }
.showcase .device:nth-child(3) { transform: rotateY(-11deg) translateY(20px) scale(.9); z-index: 1; opacity: .92; }
.showcase .device:hover { transform: translateY(-16px) scale(1.07) rotateY(0deg); z-index: 4; opacity: 1; }

/* flat variant for galleries */
.showcase-flat { flex-wrap: wrap; perspective: none; align-items: flex-start; }
.showcase-flat .device,
.showcase-flat .device:nth-child(n) { transform: none; opacity: 1; }
.showcase-flat .device:hover { transform: translateY(-10px); }

/* ---------- 12. modules ------------------------------------------------ */

/* service list rows (services page) */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--surface) 0%, rgba(8,12,26,.6) 100%);
}
.service-row + .service-row { margin-top: 22px; }
.service-row h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }

/* stack group (technology page) */
.stack-group {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface) 0%, rgba(8,12,26,.7) 100%);
}
.stack-group h4 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.stack-group h4 svg { width: 19px; height: 19px; color: var(--indigo-light); flex: none; }

/* industries */
.industry {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.028);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.industry:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, .42);
  background: rgba(99, 102, 241, .1);
  color: #fff;
}
.industry svg { width: 19px; height: 19px; flex: none; color: var(--indigo-light); }

/* office / presence cards */
.office {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface-2), rgba(8,12,26,.72));
}
.office .flag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--teal);
}
.office h3 { font-size: 1.28rem; margin-bottom: 8px; }
.office address { font-style: normal; color: var(--text-3); font-size: .93rem; line-height: 1.7; }
.office-links { display: grid; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.office-links a { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .9rem; }
.office-links a:hover { color: #fff; }
.office-links svg { width: 16px; height: 16px; color: var(--indigo-light); flex: none; }

/* connection graphic: 2 countries */
.presence {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 6vw, 90px);
  padding: clamp(30px, 5vw, 52px) 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px circle at 50% 0%, rgba(99,102,241,.14), transparent 60%),
    linear-gradient(155deg, var(--surface), rgba(8,12,26,.6));
  overflow: hidden;
}
.presence-node { position: relative; z-index: 2; text-align: center; }
.presence-node .pin {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(99, 102, 241, .14), 0 14px 34px -10px rgba(99, 102, 241, .9);
}
.presence-node .pin svg { width: 26px; height: 26px; }
.presence-node strong { display: block; font-family: var(--font-display); font-size: 1.06rem; }
.presence-node span { font-size: .82rem; color: var(--text-4); }
.presence-arc { flex: 1 1 120px; max-width: 340px; min-width: 90px; z-index: 1; }
.presence-arc svg { width: 100%; height: auto; overflow: visible; }

/* news / insight cards */
.post { display: flex; flex-direction: column; }
.post-thumb {
  aspect-ratio: 16 / 10;
  margin: -28px -28px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(340px circle at 30% 20%, rgba(99,102,241,.4), transparent 60%),
    radial-gradient(300px circle at 78% 82%, rgba(168,85,247,.34), transparent 60%),
    var(--surface-3);
  display: grid; place-items: center;
}
.post-thumb svg { width: 42px; height: 42px; color: rgba(255, 255, 255, .28); }
.post-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .09em;
}
.post-meta .sep { opacity: .5; }
.post h3 { font-size: 1.14rem; margin-bottom: 10px; }
.post .btn-quiet { margin-top: auto; padding-top: 18px; }

/* leadership / person card */
.person {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface-2), rgba(8, 12, 26, .72));
  text-align: center;
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}
.person:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, .42);
  box-shadow: var(--shadow-md);
}
.person-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--surface-3);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, .34), 0 0 0 7px rgba(99, 102, 241, .12),
              0 16px 34px -14px rgba(0, 0, 0, .8);
}
/* rendered by main.js when a photo file is absent */
span.person-photo {
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  user-select: none;
}
.person h3 { font-size: 1.16rem; margin-bottom: 5px; }
.person p { margin: 0; color: var(--indigo-light); font-size: .9rem; font-weight: 500; }

/* award card */
.award {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), rgba(8,12,26,.7));
  text-align: center;
}
.award .medal {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(245,158,11,.3), rgba(245,158,11,.06));
  color: #FBBF24;
}
.award .medal svg { width: 27px; height: 27px; }
.award h4 { margin-bottom: 8px; }
.award p { font-size: .88rem; color: var(--text-3); }

/* partner logo slot */
.partner-slot {
  display: grid; place-items: center;
  min-height: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-4);
  text-align: center;
  font-size: .82rem;
  transition: border-color .22s ease, background .22s ease;
}
.partner-slot:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.partner-slot img { max-height: 46px; width: auto; filter: grayscale(1) brightness(1.9); opacity: .78; }

/* CTA band */
.cta-band {
  position: relative;
  padding: clamp(40px, 6vw, 72px) clamp(26px, 5vw, 64px);
  border: 1px solid rgba(129, 140, 248, .3);
  border-radius: var(--r-xl);
  background:
    radial-gradient(760px circle at 15% 0%, rgba(99,102,241,.3), transparent 62%),
    radial-gradient(620px circle at 88% 100%, rgba(168,85,247,.26), transparent 62%),
    linear-gradient(150deg, var(--surface-2), rgba(8,12,26,.85));
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 620px; margin-inline: auto; font-size: 1.05rem; }
.cta-band .row { justify-content: center; margin-top: 30px; }

/* ---------- 13. forms -------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.field { display: grid; gap: 8px; }
.field label { font-size: .855rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--amber); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(5, 7, 15, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: .94rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: rgba(5, 7, 15, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .2);
}
.field select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D98B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
}
.field .err { display: none; color: #FCA5A5; font-size: .8rem; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #EF4444; }
.field.invalid .err { display: block; }

.form-note { color: var(--text-4); font-size: .82rem; }
.form-status {
  display: none;
  padding: 14px 18px;
  border: 1px solid rgba(94, 234, 212, .4);
  border-radius: var(--r-sm);
  background: rgba(94, 234, 212, .1);
  color: #99F6E4;
  font-size: .9rem;
}
.form-status.show { display: block; }

/* ---------- 14. footer ------------------------------------------------- */
.footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(52px, 6vw, 76px) 0 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px 30px;
}
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: .9rem; color: var(--text-3); max-width: 330px; }
.footer-id {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--text-4);
}
.footer h5 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: var(--text-3); font-size: .9rem; transition: color .18s ease; }
.footer-links a:hover { color: #fff; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-3);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.socials a:hover {
  color: #fff; border-color: rgba(129,140,248,.5);
  background: rgba(99,102,241,.16); transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: .82rem;
}

/* ---------- 15. motion ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- 16. responsive -------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .service-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  /* mobile drawer */
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: grid; gap: 4px;
    max-height: calc(100dvh - var(--nav-h));
    padding: 18px var(--gutter) 28px;
    overflow-y: auto;
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 16px; border-radius: var(--r-sm); font-size: 1rem; }

  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav > .container { justify-content: space-between; }

  .nav-cta-mobile { display: block; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-cta-mobile .btn { width: 100%; padding: 14px 24px; }

  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero-panel { padding: 26px 22px; border-radius: var(--r-lg); }
  .hero-actions .btn { width: 100%; }
  /* fixed widths would overflow the container here — divide the row instead */
  .showcase { gap: 8px; perspective: none; }
  .showcase .device,
  .showcase .device:nth-child(n) {
    transform: none; opacity: 1;
    width: calc((100% - 16px) / 3);
  }
  .showcase-flat .device,
  .showcase-flat .device:nth-child(n) { width: calc((100% - 16px) / 3); }
  .card { padding: 24px 22px; }
  .post-thumb { margin: -24px -22px 20px; }
  .footer-bottom { justify-content: flex-start; }
}

/* below this the three-across row gets too narrow to read — stack it */
@media (max-width: 560px) {
  .showcase { flex-direction: column; align-items: center; }
  .showcase .device,
  .showcase .device:nth-child(n),
  .showcase-flat .device,
  .showcase-flat .device:nth-child(n) { width: min(272px, 76vw); }
}

@media (max-width: 440px) {
  .presence { flex-direction: column; }
  .presence-arc { display: none; }
}

/* ---------- print ------------------------------------------------------ */
@media print {
  .nav, .footer, .hero-bg, .glow, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
