/* ===================================================
   Xoghaye Business Technology Solutions
   Design system: Fraunces (display) + Source Sans 3 (text)
   + IBM Plex Mono (eyebrows, meta, numerals)
=================================================== */

:root {
  /* Brand purple */
  --p-950: #1a0f33;
  --p-900: #2a1259;
  --p-800: #3d1a80;
  --p-700: #5223a8;
  --p-600: #6d33cc;
  --p-500: #8b5cf6;
  --p-300: #b79cff;
  --p-100: #ebe4fb;
  --p-50:  #f6f2fe;

  /* Neutrals */
  --ink:        #17102a;
  --ink-soft:   #4a4360;
  --ink-muted:  #7b7391;
  --paper:      #ffffff;
  --paper-tint: #faf8fd;
  --line:       #e9e3f4;
  --line-soft:  #f1ecf9;

  --white: #ffffff;

  /* Elevation — wide, low-opacity, never heavy */
  --lift-1: 0 1px 2px rgba(26, 15, 51, 0.04);
  --lift-2: 0 4px 20px rgba(26, 15, 51, 0.07);
  --lift-3: 0 18px 48px rgba(26, 15, 51, 0.12);
  --lift-4: 0 32px 80px rgba(26, 15, 51, 0.18);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max-width: 1200px;
  --header-height: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { scroll-margin-top: var(--header-height); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}

h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

::selection { background: var(--p-100); color: var(--p-900); }

:focus-visible {
  outline: 2px solid var(--p-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; }

.section-alt {
  background: var(--paper-tint);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-600);
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-header p {
  color: var(--ink-muted);
  font-size: 1.06rem;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--p-600), var(--p-800));
  color: var(--white);
  box-shadow: var(--lift-2);
}
.btn-primary:hover { box-shadow: var(--lift-3); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--p-700);
}
.btn-outline:hover {
  border-color: var(--p-600);
  background: var(--p-50);
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--p-600);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1.5px;
  width: 0;
  background: var(--p-600);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--p-700); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 24px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-height) + 116px) 0 128px;
  background:
    radial-gradient(ellipse 60% 50% at 12% 8%, rgba(139, 92, 246, 0.34), transparent 70%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(109, 51, 204, 0.32), transparent 70%),
    linear-gradient(158deg, #150c2b 0%, var(--p-900) 52%, var(--p-800) 100%);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-300);
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.06;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--p-300);
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-actions .btn-primary {
  background: var(--white);
  color: var(--p-900);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.hero-actions .btn-primary:hover { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3); }

.hero-meta {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-meta li:first-child { padding-left: 0; border-left: none; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  padding: 40px 34px 34px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--lift-4);
}

/* The mark is deep purple, so it needs a light plate to read on dark. */
.hero-card img {
  width: 196px;
  margin: 0 auto 28px;
  padding: 20px 26px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  overflow: hidden;
}

.hero-stat {
  background: rgba(38, 20, 74, 0.55);
  padding: 20px 14px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-stat span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 88px;
  align-items: start;
}

.about-text h2,
.about-timeline h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 24px;
}

.about-text p { margin-bottom: 20px; text-wrap: pretty; }

.about-quote {
  position: relative;
  margin: 32px 0 0;
  padding: 26px 30px;
  background: var(--p-50);
  border-radius: var(--r-md);
  border-left: 2px solid var(--p-600);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--p-900);
}

.timeline { position: relative; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--p-500), var(--line));
}

.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--p-600);
}

.timeline-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--p-700);
  margin-bottom: 5px;
}

.timeline-item p { font-size: 0.98rem; }

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-box {
  padding: 40px 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat-box:first-child { border-left: none; }

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--p-800);
  margin-bottom: 10px;
}

.stat-box span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Vision & Mission ---------- */

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.vm-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 52px 46px;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.vm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.vm-card > * { position: relative; z-index: 1; }

.vm-card.vision {
  background: linear-gradient(150deg, #150c2b, var(--p-800));
}
.vm-card.mission {
  background: linear-gradient(150deg, var(--p-700), var(--p-500));
}

.vm-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  color: var(--white);
}

.vm-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.vm-card p { font-size: 1.02rem; line-height: 1.65; }

/* ---------- Values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}

.value-card {
  text-align: center;
  padding: 44px 24px 40px;
  border-left: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.value-card:first-child { border-left: none; }
.value-card:hover { background: var(--p-50); }

.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--p-50);
  border: 1px solid var(--p-100);
  color: var(--p-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.value-card:hover .value-icon {
  background: var(--p-600);
  color: var(--white);
  border-color: var(--p-600);
}

.value-card h4 { font-size: 1rem; margin-bottom: 9px; }
.value-card p { font-size: 0.87rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 42px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift-3);
  border-color: transparent;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--p-600), var(--p-800));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 26px;
  box-shadow: 0 8px 20px rgba(82, 35, 168, 0.22);
}

.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }

.service-card > p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  margin-bottom: 24px;
}

.service-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.55;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

.service-list li:first-child { border-top: none; padding-top: 0; }
.service-list li svg { color: var(--p-500); margin-top: 4px; width: 17px; height: 17px; }
.service-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- Approach ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.approach-card {
  position: relative;
  background: var(--paper);
  padding: 40px 34px 36px;
  transition: background 0.3s var(--ease);
}

.approach-card:hover { background: var(--p-50); }

.approach-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--p-100);
  margin-bottom: 18px;
  transition: color 0.3s var(--ease);
}

.approach-card:hover .approach-num { color: var(--p-500); }

.approach-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.approach-card p { font-size: 0.92rem; color: var(--ink-muted); }

/* ---------- Why choose us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  display: flex;
  gap: 18px;
  padding: 32px 30px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-2);
  border-color: var(--p-100);
}

.why-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--p-50);
  border: 1px solid var(--p-100);
  color: var(--p-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.why-card h4 { font-size: 1.02rem; margin-bottom: 7px; }
.why-card p { font-size: 0.89rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Industries ---------- */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.industry-card {
  position: relative;
  text-align: center;
  padding: 38px 18px 32px;
  border-radius: var(--r-lg);
  color: var(--white);
  background: linear-gradient(155deg, var(--p-800), var(--p-600));
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.industry-card:nth-child(even) {
  background: linear-gradient(155deg, #170d30, var(--p-700));
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lift-3);
}

.industry-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.9);
}

.industry-card h4 {
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* ---------- Team ---------- */

.team-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.team-text p { margin-bottom: 18px; text-wrap: pretty; }

.team-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.role-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 20px 30px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.role-card:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }

.role-card .icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--p-50);
  border: 1px solid var(--p-100);
  color: var(--p-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.role-card h4 { font-size: 0.93rem; }

/* ---------- Systems (homepage grid) ---------- */

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.system-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

.system-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift-3);
  border-color: transparent;
}

.system-card .sys-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--p-600), var(--p-800));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.system-card h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.system-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.system-card .sys-for {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--p-600);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Systems detail page ---------- */

.sys-hero {
  position: relative;
  padding: calc(var(--header-height) + 92px) 0 88px;
  background:
    radial-gradient(ellipse 60% 50% at 12% 10%, rgba(139, 92, 246, 0.32), transparent 70%),
    radial-gradient(ellipse 55% 55% at 88% 90%, rgba(109, 51, 204, 0.3), transparent 70%),
    linear-gradient(158deg, #150c2b 0%, var(--p-900) 55%, var(--p-800) 100%);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-align: center;
}

.sys-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.sys-hero .container { position: relative; z-index: 1; }
.sys-hero .eyebrow { color: var(--p-300); }

.sys-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  margin-bottom: 20px;
  text-wrap: balance;
}

.sys-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 auto;
  text-wrap: pretty;
}

.sys-block {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.sys-block:first-of-type { border-top: none; }

.sys-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--p-500);
  margin-bottom: 14px;
}

.sys-block h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

.sys-block > div > p { margin-bottom: 18px; text-wrap: pretty; }

.sys-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.sys-audience span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--p-700);
  background: var(--p-50);
  border: 1px solid var(--p-100);
  padding: 6px 14px;
  border-radius: 999px;
}

.sys-panel {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
}

.sys-panel h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.module-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 30px;
}

.module-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.89rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.module-list svg { color: var(--p-500); margin-top: 3px; width: 15px; height: 15px; }

.sys-why {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.sys-why li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 9px 0;
}

.sys-why svg { color: var(--p-600); margin-top: 4px; width: 16px; height: 16px; }
.sys-why strong { color: var(--ink); font-weight: 600; }

/* shared-capabilities band */

.shared-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.shared-item {
  background: rgba(26, 15, 51, 0.5);
  padding: 30px 28px;
}

.shared-item h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shared-item h4 svg { color: var(--p-300); width: 18px; height: 18px; }

.shared-item p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- App showcase ---------- */

.app-section {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(ellipse 55% 45% at 15% 5%, rgba(139, 92, 246, 0.26), transparent 70%),
    radial-gradient(ellipse 50% 50% at 88% 95%, rgba(109, 51, 204, 0.28), transparent 70%),
    linear-gradient(165deg, #150c2b, var(--p-900) 55%, var(--p-800));
  overflow: hidden;
  border: none;
}

.app-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.app-section .container { position: relative; z-index: 1; }
.app-section .section-header h2 { color: var(--white); }
.app-section .section-header p { color: rgba(255, 255, 255, 0.68); }
.app-section .eyebrow { color: var(--p-300); }

.app-banner {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--lift-4);
  margin-bottom: 72px;
}

.app-banner img { width: 100%; height: auto; }

.app-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 76px;
}

.app-intro h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 20px;
  text-wrap: balance;
}

.app-intro p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  text-wrap: pretty;
}

.app-feature-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.app-feature-list svg { color: var(--p-300); margin-top: 3px; width: 18px; height: 18px; }
.app-feature-list strong { color: var(--white); font-weight: 600; }

.app-highlight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.app-highlight:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.app-highlight h4 {
  color: var(--white);
  font-size: 1.04rem;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.app-highlight h4 svg { color: var(--p-300); width: 19px; height: 19px; }

.app-highlight p {
  font-size: 0.91rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.app-highlight a { color: var(--p-300); text-decoration: underline; text-underline-offset: 3px; }

.app-shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}

.app-shot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  padding: 14px 14px 18px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

.app-shot:hover {
  transform: translateY(-6px);
  box-shadow: var(--lift-4);
  border-color: rgba(255, 255, 255, 0.26);
}

.app-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}

.app-shot span {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.app-cta { text-align: center; }

.app-cta .btn-white {
  background: var(--white);
  color: var(--p-900);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.app-cta .btn-white:hover { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3); }

.app-cta-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.app-cta-note a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: var(--r-xl);
  padding: 76px 56px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(ellipse 60% 70% at 20% 10%, rgba(139, 92, 246, 0.3), transparent 70%),
    linear-gradient(140deg, #150c2b, var(--p-800));
  overflow: hidden;
  box-shadow: var(--lift-3);
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  margin-bottom: 14px;
  text-wrap: balance;
}

.cta-banner p { color: rgba(255, 255, 255, 0.7); margin-bottom: 34px; }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta-actions .btn-primary {
  background: var(--white);
  color: var(--p-900);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 52px;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-item:hover { border-color: var(--p-100); box-shadow: var(--lift-1); }

.contact-item .icon-wrap {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--p-50);
  border: 1px solid var(--p-100);
  color: var(--p-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.contact-item p, .contact-item a { font-size: 0.98rem; color: var(--ink); }
.contact-item a { transition: color 0.25s var(--ease); }
.contact-item a:hover { color: var(--p-700); }

.map-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 210px;
  margin-top: 4px;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  box-shadow: var(--lift-2);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 17px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper-tint);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: #a8a1bb; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--p-500);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.field textarea { resize: vertical; min-height: 128px; }

.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 14px; text-align: center; }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  text-align: center;
}

.form-status.show { display: block; }
.form-status.ok { color: #1a7f52; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: #120a24;
  color: rgba(255, 255, 255, 0.6);
  padding: 84px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  width: 168px;
  height: auto;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--r-sm);
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s var(--ease);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.42);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.62); transition: color 0.25s var(--ease); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--p-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: var(--lift-3);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s var(--ease);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--p-600); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===================================================
   Responsive
=================================================== */

@media (max-width: 1024px) {
  /* Eight nav links need more room than a tablet has. */
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 10px; }

  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px 32px;
    box-shadow: var(--lift-3);
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }

  .section { padding: 92px 0; }
  .section-header { margin-bottom: 56px; }

  .hero { padding: calc(var(--header-height) + 84px) 0 96px; }
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: -1; }
  .hero-lead { max-width: none; }

  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .team-wrap { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-card:nth-child(3n + 1) { border-left: none; }
  .value-card:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .app-intro { grid-template-columns: 1fr; gap: 44px; }
  .app-shots { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { margin-top: 72px; }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-block { grid-template-columns: 1fr; gap: 34px; padding: 56px 0; }
  .shared-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-hero { padding: calc(var(--header-height) + 64px) 0 68px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }

  .hero-meta { gap: 14px; }
  .hero-meta li { padding: 0; border-left: none; width: 100%; }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-box { border-left: none; padding: 30px 16px; }
  .stat-box:nth-child(even) { border-left: 1px solid var(--line); }
  .stat-box:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-box strong { font-size: 2.1rem; }

  .vm-grid { grid-template-columns: 1fr; }
  .vm-card { padding: 40px 30px; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card { border-left: none; }
  .value-card:nth-child(even) { border-left: 1px solid var(--line); }
  .value-card:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .service-card { padding: 34px 28px; }
  .approach-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .team-roles { grid-template-columns: repeat(2, 1fr); }

  .app-shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .app-banner { margin-bottom: 44px; }
  .app-intro { margin-bottom: 48px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 34px 26px; }

  .cta-banner { padding: 52px 28px; border-radius: var(--r-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: 20px; right: 20px; }
  .systems-grid { grid-template-columns: 1fr; }
  .module-list { grid-template-columns: 1fr; }
  .shared-grid { grid-template-columns: 1fr; }
  .sys-panel { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .brand-text { font-size: 1.02rem; }
  .brand-text span { font-size: 0.55rem; }
  .hero h1 { font-size: 2.15rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .team-roles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
