:root {
  --primary: #2563EB;
  --primary-dim: #1d4ed8;
  --primary-100: #eff4ff;
  --secondary: #0F172A;
  --accent: #14B8A6;
  --success: #22C55E;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --card: #FFFFFF;
  --border: #E7EBF3;
  --ink: #0F172A;
  --ink-soft: #475467;
  --ink-faint: #8A93A6;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1240px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #09090B;
  --surface: #0F1115;
  --card: #131519;
  --border: #22252B;
  --ink: #F4F6FB;
  --ink-soft: #AAB2C5;
  --ink-faint: #6B7280;
  --primary-100: #12213f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
  min-width: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-100);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
  min-width: 0;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 14px;
}

section {
  padding: 104px 0;
}

@media (max-width:768px) {
  section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px color-mix(in srgb, var(--primary) 75%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--secondary);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .35);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transform: scale(0);
  animation: ripple .6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .35s ease, border-color .35s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

nav.primary-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 11px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

nav.primary-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all .25s;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: block;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

.nav-cta {
  padding: 12px 20px;
  font-size: 14px;
}

#mobileCta {
  display: none;
}

@media (max-width:1220px) {
  nav.primary-nav {
    position: fixed;
    inset: 76px 0 0 0;
    z-index: 99;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  nav.primary-nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  nav.primary-nav a {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
    position: relative;
    z-index: 101;
  }

  #mobileCta {
    display: flex;
    margin-top: 16px;
    text-align: center;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 88px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width:980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 22px;
}

.hero-copy h1 .grad {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
}

.hero-meta strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.hero-meta span {
  font-size: 13px;
  color: var(--ink-faint);
}

.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.signal-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
}

.signal-bg .ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.signal-core {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%), var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-core svg {
  width: 120px;
  height: 120px;
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: .6;
  }
}

.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 3;
  animation: floaty 5s ease-in-out infinite;
}

.float-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.float-card small {
  display: block;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 11px;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.fc-1 {
  top: 6%;
  left: 0%;
  animation-delay: .2s;
}

.fc-2 {
  top: 20%;
  right: 0%;
  animation-delay: 1.1s;
}

.fc-3 {
  bottom: 22%;
  left: -4%;
  animation-delay: .7s;
}

.fc-4 {
  bottom: 4%;
  right: 8%;
  animation-delay: 1.6s;
}

@media (max-width:980px) {
  .hero-visual {
    height: 400px;
    margin-top: 20px;
  }

  .float-card {
    padding: 9px 12px;
    font-size: 12px;
  }

  .fc-1 {
    left: 2%;
  }

  .fc-3 {
    left: 0%;
  }
}

@media (max-width:560px) {
  .hero-visual {
    height: 300px;
  }
}

@media (max-width:560px) {

  .fc-2,
  .fc-4 {
    display: none;
  }
}

/* ===== TRUST BAR ===== */
.trust {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  align-items: center;
  margin-bottom: 52px;
}

.trust-logos span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink-faint);
  letter-spacing: -.01em;
  opacity: .75;
  transition: opacity .25s, color .25s;
}

.trust-logos span:hover {
  opacity: 1;
  color: var(--ink-soft);
}

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width:768px) {
  .counters {
    grid-template-columns: repeat(2, 1fr);
  }
}

.counters strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  color: var(--ink);
  font-weight: 800;
}

.counters span {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 6%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.service-card h3 {
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.service-link svg {
  width: 15px;
  height: 15px;
  transition: transform .25s;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ===== WHY CHOOSE US ===== */
.why-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width:900px) {
  .why-wrap {
    grid-template-columns: 1fr;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width:560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: box-shadow .3s, transform .3s;
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-card svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}

.why-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.why-side {
  position: sticky;
  top: 110px;
}

/* ===== PROCESS ===== */
.process-track {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
}

.process-line {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}

@media (max-width:980px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .process-line {
    display: none;
  }
}

@media (max-width:700px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width:400px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-faint);
  margin-bottom: 14px;
  transition: all .4s ease;
  font-size: 15px;
}

.process-step.on .process-num {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-100);
}

.process-step h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.process-step p {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .25));
}

.project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  color: var(--secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.project-body {
  padding: 22px;
}

.project-body .cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.project-body h3 {
  margin: 6px 0 8px;
}

.project-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.project-stats {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.project-stats strong {
  color: var(--ink);
  font-family: var(--font-display);
}

/* ===== TECH STACK ===== */
.tech-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.tech-marquee:hover .tech-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
}

.tech-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== TESTIMONIALS ===== */
.testi-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.testi-slide {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.testi-slide.active {
  display: block;
  animation: fadeUp .5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testi-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 18px;
}

.testi-stars svg {
  width: 18px;
  height: 18px;
  color: #F59E0B;
  fill: #F59E0B;
}

.testi-slide p.quote {
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.55;
}

.testi-person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}

.testi-person strong {
  display: block;
  font-size: 14.5px;
}

.testi-person span {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  margin-top: 2px;
}

.testi-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}

.testi-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  transition: all .25s;
}

.testi-dots button.active {
  background: var(--primary);
  width: 22px;
  border-radius: 5px;
}

.testi-arrows {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: -56px;
  right: -56px;
  transform: translateY(-50%);
  pointer-events: none;
}

.testi-arrows button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}

.testi-arrows button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.testi-arrows svg {
  width: 18px;
  height: 18px;
}

@media (max-width:860px) {
  .testi-arrows {
    left: 0;
    right: 0;
    position: static;
    margin-top: 20px;
    transform: none;
  }

  .testi-arrows {
    display: flex;
    justify-content: center;
    gap: 14px;
  }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}

.faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--ink-faint);
}

.faq-item.open .faq-q svg {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 640px;
}

/* ===== CTA BAND ===== */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--secondary), #142248 60%, var(--primary-dim));
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  top: -140px;
  right: -100px;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, .75);
  max-width: 480px;
  margin: 0 auto 30px;
  position: relative;
}

.cta-band .btn {
  position: relative;
}

@media (max-width:600px) {
  .cta-band {
    padding: 48px 24px;
  }
}

@media (max-width:400px) {
  .cta-band {
    padding: 36px 16px;
    border-radius: var(--radius-md);
  }
}

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
}

@media (max-width:900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.contact-info-card+.contact-info-card {
  margin-top: 16px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row strong {
  display: block;
  font-size: 14px;
}

.contact-row span {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.map-placeholder {
  margin-top: 16px;
  height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    linear-gradient(var(--surface), var(--surface)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, var(--border) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, var(--border) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}

.map-placeholder svg {
  width: 18px;
  height: 18px;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 520px) {
  .contact-form {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .contact-info-card {
    padding: 18px 16px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width:520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
  outline: none;
}

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

/* ===== FOOTER ===== */
footer {
  background: var(--secondary);
  color: #cbd5e1;
  padding-top: 72px;
}

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

@media (max-width:860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
}

@media (max-width:520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

footer h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: .03em;
}

footer ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

footer ul a {
  font-size: 14px;
  color: #94a3b8;
  transition: color .2s;
}

footer ul a:hover {
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  margin: 14px 0 20px;
  max-width: 280px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.social-row a:hover {
  background: var(--primary);
}

.social-row svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 13.5px;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form button {
  padding: 11px 16px;
  border-radius: 9px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
}

.footer-bottom .legal-links a:hover {
  color: #fff;
}

/* ===== SHARED UTILS / REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

.skip-link:focus {
  left: 16px !important;
  top: 16px !important;
}

.divider-owl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.divider-owl svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   SHARED - INTERNAL PAGE COMPONENTS
   (extends homepage design tokens - same palette/type/radii)
========================================================= */

/* ---- Inner hero (non-home pages) ---- */
.inner-hero {
  position: relative;
  padding: 60px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 82% -10%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 60%),
    radial-gradient(700px 360px at -6% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--ink-soft);
  font-weight: 600;
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
  opacity: .6;
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

.inner-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  max-width: 820px;
}

.inner-hero .lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 16px;
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

@media (max-width:980px) {
  .inner-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.inner-hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.inner-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.inner-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.inner-hero-stats div {
  display: flex;
  flex-direction: column;
}

.inner-hero-stats strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}

.inner-hero-stats span {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.hero-ctas-inline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* =========================================================
   SERVICE PAGE HERO — TWO-COLUMN GRID
   ========================================================= */

.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 52px;
  align-items: center;
  padding-top: 8px;
}

@media (max-width: 1100px) {
  .svc-hero-grid {
    grid-template-columns: 1fr 340px;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .svc-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.svc-hero-visual {
  position: relative;
  padding: 20px 0;
}

/* Illustration card */
.svc-illus-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.svc-illus-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 85% 15%, color-mix(in srgb, var(--primary) 14%, transparent), transparent),
    radial-gradient(ellipse 60% 50% at 10% 85%, color-mix(in srgb, var(--accent) 10%, transparent), transparent);
  pointer-events: none;
  z-index: 0;
}

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

/* Window chrome (dots) */
.svc-win-chrome {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 18px;
}

.svc-win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.svc-win-dot.r { background: #FF5F57; }
.svc-win-dot.y { background: #FEBC2E; }
.svc-win-dot.g { background: #28C840; }

/* Floating metric badges on hero visual */
.svc-badge {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 4;
  animation: floaty 5s ease-in-out infinite;
}

.svc-badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary);
}

.svc-badge small {
  display: block;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 10.5px;
  line-height: 1.2;
}

.svc-badge-1 {
  top: 2px;
  left: -10px;
  animation-delay: 0.4s;
}

.svc-badge-2 {
  bottom: 2px;
  right: -10px;
  animation-delay: 1.6s;
}

@media (max-width: 560px) {
  .svc-badge { display: none; }
}

/* =========================================================
   SERVICE PAGE — OUR SOLUTION DASHBOARD PANEL
   ========================================================= */

.svc-solution-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.svc-panel-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  font-family: var(--font-display);
}

.svc-panel-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  font-family: var(--font-display);
}

.svc-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.svc-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.svc-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.svc-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 5px;
}

.svc-metric span {
  font-size: 11px;
  color: var(--ink-faint);
}

.svc-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-bar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.svc-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.svc-bar-pct {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
}

.svc-bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.svc-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ---- Glass card ---- */
.glass-card {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ---- Two-col split (problem/solution, story/mission etc.) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width:900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.split.reverse {
  direction: rtl;
}

.split.reverse>* {
  direction: ltr;
}

.split-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 32px;
}

.split-visual svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* ---- Checklist ---- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.check-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 1px;
}

.check-list li strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---- Problem cards (row of pain points) ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid #EF4444;
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.problem-card svg {
  width: 20px;
  height: 20px;
  color: #EF4444;
  margin-bottom: 10px;
}

.problem-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.problem-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---- Benefit tiles ---- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.benefit-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  transition: transform .3s, box-shadow .3s;
}

.benefit-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.benefit-tile .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-100);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.benefit-tile h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.benefit-tile p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---- Stat badges row ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.stat-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}

.stat-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--primary);
}

.stat-badge span {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---- Vertical timeline (About / process) ---- */
.v-timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 36px;
}

.v-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.v-item {
  position: relative;
  padding-bottom: 38px;
}

.v-item:last-child {
  padding-bottom: 0;
}

.v-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--primary);
}

.v-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 6px;
}

.v-item .v-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  display: block;
}

.v-item p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: #fff;
}

.team-card .info {
  padding: 18px;
}

.team-card h4 {
  font-size: 15.5px;
  margin-bottom: 2px;
}

.team-card span {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.team-card .socials {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.team-card .socials a {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.team-card .socials svg {
  width: 13px;
  height: 13px;
  color: var(--ink-soft);
}

/* ---- Values grid ---- */
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.value-card svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---- Tabs (industries served / tech categories) ---- */
.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all .2s;
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-100);
}

/* ---- Industry cards ---- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.industry-card .ic-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.industry-card .ic-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.industry-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* ---- Case study gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width:768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-item {
  border-radius: 14px;
  height: 170px;
  border: 1px solid var(--border);
}

/* ---- Quote block ---- */
.quote-block {
  border-left: 3px solid var(--primary);
  padding: 6px 0 6px 24px;
  margin: 28px 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.quote-block span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---- Prose (article body) ---- */
.prose {
  max-width: 720px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.prose h2 {
  font-size: 26px;
  margin: 40px 0 16px;
  color: var(--ink);
}

.prose h3 {
  font-size: 19px;
  margin: 28px 0 12px;
  color: var(--ink);
}

.prose p {
  margin-bottom: 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--border);
}

.prose a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose code {
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid var(--border);
}

/* ---- TOC ---- */
.toc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 100px;
}

.toc-card h5 {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.toc-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-card a {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: block;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  transition: all .2s;
}

.toc-card a:hover,
.toc-card a.active {
  color: var(--primary);
  border-color: var(--primary);
}

/* ---- Author box ---- */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 34px 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.author-box h5 {
  font-size: 15px;
  margin-bottom: 3px;
}

.author-box p {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---- Share buttons ---- */
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0;
}

.share-row span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
}

.share-row a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all .2s;
}

.share-row a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.share-row svg {
  width: 15px;
  height: 15px;
}

/* ---- Blog cards ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-thumb {
  height: 180px;
  position: relative;
}

.blog-thumb .cat-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.blog-card .body {
  padding: 22px;
}

.blog-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta svg {
  width: 13px;
  height: 13px;
}

.blog-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* ---- Featured article ---- */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
}

@media (max-width:860px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
}

.featured-article .fa-visual {
  min-height: 280px;
}

.featured-article .fa-body {
  padding: 40px;
}

@media (max-width:600px) {
  .featured-article .fa-body {
    padding: 24px 20px;
  }
}

/* ---- Search + filter bar ---- */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.search-bar input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 14.5px;
}

.category-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.category-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all .2s;
}

.category-pill.active,
.category-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.pagination a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all .2s;
}

.pagination a.active,
.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Newsletter block (standalone) ---- */
.newsletter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
}

@media (max-width:560px) {
  .newsletter-block {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }
}

.newsletter-block .nl-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 22px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-block input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}

/* ---- Comments (design only) ---- */
.comment {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.comment .c-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
}

.comment .c-body {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.comment .c-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment .c-head strong {
  font-size: 13.5px;
}

.comment .c-head span {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.comment p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.comment.reply {
  margin-left: 56px;
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 12px;
}

/* ---- Portfolio filter grid ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.pf-item {
  transition: opacity .3s, transform .3s;
}

.pf-item.hidden {
  display: none;
}

/* ---- Case study hero stat strip ---- */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 36px;
}

@media (max-width:700px) {
  .cs-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cs-stats div {
  background: var(--card);
  padding: 24px;
  text-align: center;
}

.cs-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--primary);
}

.cs-stats span {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---- Small helpers ---- */
.mt-0 {
  margin-top: 0 !important;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.text-balance {
  max-width: 640px;
}

.hidden {
  display: none !important;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.active-link {
  color: var(--primary) !important;
  background: var(--primary-100);
}

/* ---- Article layout (blog single) ---- */
.article-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width:900px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-grid .toc-card {
    position: static;
    margin-bottom: 8px;
    order: -1;
  }

  .article-grid > .prose,
  .article-grid > [class*="prose"] {
    order: 1;
  }
}

/* ================================================================
   GLOBAL MOBILE SAFEGUARDS
   Appended last so they override without touching component rules
   ================================================================ */

/* Prevent any element from causing horizontal scroll */
*, *::before, *::after {
  max-width: 100%;
}

/* Restore exceptions that intentionally exceed 100% */
.tech-track,
.cta-band::before,
.signal-bg,
.signal-bg .ring,
.node,
.float-card,
.svc-badge {
  max-width: none;
}

/* ---- Testimonial slide ---- */
@media (max-width:560px) {
  .testi-slide {
    padding: 26px 20px;
  }

  .testi-slide p.quote {
    font-size: 16px;
  }
}

/* ---- Logo on very small screens ---- */
@media (max-width:380px) {
  .logo {
    font-size: 15px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }
}

/* ---- Section head tight spacing on phones ---- */
@media (max-width:480px) {
  .section-head {
    margin-bottom: 28px;
  }

  h2 {
    font-size: clamp(22px, 6vw, 36px);
  }
}

/* ---- Inner hero lead text ---- */
@media (max-width:560px) {
  .inner-hero .lead {
    font-size: 15px;
  }

  .inner-hero h1 {
    font-size: clamp(26px, 7vw, 40px);
  }
}

/* ---- Hero copy on mobile ---- */
@media (max-width:480px) {
  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 48px);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ---- CTA buttons on mobile ---- */
@media (max-width:480px) {
  .hero-ctas-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas-inline .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ---- Footer bottom bar ---- */
@media (max-width:480px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---- Breadcrumb overflow ---- */
.breadcrumb {
  overflow-x: auto;
  scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

/* ---- Share row ---- */
@media (max-width:480px) {
  .share-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---- Stat row min-width protection ---- */
.stat-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* ---- Comment replies on mobile ---- */
@media (max-width:560px) {
  .comment.reply {
    margin-left: 24px;
  }
}

/* ---- Why-side sticky on mobile ---- */
@media (max-width:900px) {
  .why-side {
    position: static;
  }
}

/* ---- V-timeline padding on mobile ---- */
@media (max-width:560px) {
  .v-timeline {
    padding-left: 24px;
  }

  .v-item::before {
    left: -24px;
    width: 16px;
    height: 16px;
  }
}

/* ---- Inner hero stats wrap ---- */
@media (max-width:480px) {
  .inner-hero-stats {
    gap: 16px;
  }

  .inner-hero-stats strong {
    font-size: 20px;
  }
}

/* ---- SVC hero visual badges fully hide on very small ---- */
@media (max-width:400px) {
  .svc-badge {
    display: none;
  }

  .svc-illus-card {
    padding: 18px 14px;
  }
}

/* ---- Gallery grid single column on phones ---- */
@media (max-width:480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 140px;
  }
}

/* ---- Search bar on mobile ---- */
@media (max-width:480px) {
  .search-bar {
    flex-direction: column;
  }

  .search-bar input[type="search"] {
    min-width: 0;
    width: 100%;
  }
}

/* ---- Counters min-width protection ---- */
@media (max-width:400px) {
  .counters {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ---- Process step text ---- */
@media (max-width:560px) {
  .process-step h4 {
    font-size: 13px;
  }

  .process-num {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }
}

/* ---- Table of contents on mobile ---- */
@media (max-width:560px) {
  .toc-card {
    padding: 16px;
  }
}