/* ============================================================
   Itronauts — Design System (Light Theme)
   Brand: Montserrat (headlines) + Poppins (body)
   Primary: #00379f · Text: #0d0d1a · Bg: #ffffff
   ============================================================ */

/* Self-hosted fonts — no third-party requests, GDPR-safe */

/* Montserrat (variable font, weights 400-900) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins (static fonts, individual weights) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/poppins-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --bg-dark: #0d0d1a;

  /* Surfaces */
  --surface: rgba(0, 55, 159, 0.04);
  --surface-2: rgba(0, 55, 159, 0.08);
  --surface-dark: rgba(255, 255, 255, 0.06);

  /* Borders */
  --border: rgba(0, 55, 159, 0.10);
  --border-2: rgba(0, 55, 159, 0.22);
  --border-dark: rgba(255, 255, 255, 0.10);

  /* Brand */
  --primary: #00379f;
  --primary-h: #001D52;
  --primary-dim: rgba(0, 55, 159, 0.08);
  --primary-glow: rgba(0, 55, 159, 0.22);

  /* Text */
  --text: #0d0d1a;
  --muted: #5a6878;
  --dim: #9aa0b0;
  --text-on-dark: #eef2ff;
  --muted-on-dark: rgba(238, 242, 255, 0.60);

  /* Semantic aliases (light mode) */
  --accent: #344ebb;
  --navy: #001D52;
  --navy-mid: #344a6b;

  /* Misc */
  --radius: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1280px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.7;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 52ch;
}

/* ── Label pill ───────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(0, 55, 159, 0.18);
  border-radius: 100px;
  padding: 6px 14px;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  position: relative;
  overflow: hidden;
}

.section-pad {
  padding: 120px 0;
}

.section-pad-sm {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-header .label {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* Glows — lighter on white bg */
.glow-tr {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 55, 159, .08) 0%, transparent 65%);
}

.glow-bl {
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 55, 159, .06) 0%, transparent 65%);
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0, 55, 159, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-brand .logo-img {
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--surface);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-toggle button {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 7px 12px;
  transition: background .2s, color .2s;
}

.lang-toggle button.active {
  background: var(--primary);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
  box-shadow: 0 8px 32px rgba(0, 55, 159, .08);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}

.mobile-nav a:hover {
  color: var(--text);
}

.mobile-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  gap: 12px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 13px 26px;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-h);
  box-shadow: 0 6px 28px rgba(0, 55, 159, .32);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(0, 55, 159, .35);
  transform: translateY(-1px);
}

/* Dark context buttons (CTA banner) */
.btn-primary-dark {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 24px rgba(0, 55, 159, .4);
}

.btn-primary-dark:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 55, 159, .5);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, .18);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 10px 20px;
  border-radius: 8px;
}

/* ── Word Rotate (MagicUI-inspired, vanilla) ───────────────── */
.word-rotate {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.08em;
  color: var(--primary);
}

.word-rotate-word {
  display: block;
  color: var(--primary);
  white-space: nowrap;
}

.word-rotate-word.wr-enter {
  animation: wr-enter 0.3s ease-out both;
}

.word-rotate-word.wr-exit {
  animation: wr-exit 0.25s ease-in both;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes wr-enter {
  from {
    opacity: 0;
    transform: translateY(-45%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wr-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(45%);
  }
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .08s;
}

.reveal-delay-2 {
  transition-delay: .16s;
}

.reveal-delay-3 {
  transition-delay: .24s;
}

.reveal-delay-4 {
  transition-delay: .32s;
}

.reveal-delay-5 {
  transition-delay: .40s;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Canvas element no longer used — SVG grid pattern replaces it */
#hero-canvas {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
  max-width: 680px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.hero-title .title-line-2 {
  display: block;
  /* word-rotate sits inside here */
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.78;
  max-width: 50ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-num .accent {
  color: var(--primary);
}

.stat-principle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Marquee / Trusted By ──────────────────────────────────── */
.trusted-section {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trusted-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 28px;
}

.marquee-wrap {
  overflow: hidden;
  position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 1;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 56px;
  transition: transform .25s var(--ease);
}

.marquee-logo {
  height: 30px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: .55;
  filter: grayscale(0.6);
  transition: opacity .25s, filter .25s, transform .25s;
  display: block;
}

.marquee-item:hover .marquee-logo {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.06);
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 55, 159, .25);
  flex-shrink: 0;
}

/* ── Bento Grid ────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-item.wide {
  grid-column: span 2;
}

.bento-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, background .3s;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0, 55, 159, .04);
}

.bento-card:hover {
  border-color: rgba(0, 55, 159, .28);
  box-shadow: 0 8px 40px rgba(0, 55, 159, .10);
}

.bento-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 85% 15%, rgba(0, 55, 159, .06) 0%, transparent 60%);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 55, 159, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.bento-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--text);
}

.bento-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 24px;
  transition: gap .2s;
}

.bento-card:hover .card-link {
  gap: 10px;
}

/* ── Process Steps ─────────────────────────────────────────── */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-line {
  position: absolute;
  top: 27px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  pointer-events: none;
  opacity: .5;
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.process-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(0, 55, 159, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0, 55, 159, .06);
}

.process-item h4 {
  margin-bottom: 8px;
  color: var(--text);
}

.process-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 55, 159, .05);
}

.stats-bar .stat-item {
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  transition: background .3s;
}

.stats-bar .stat-item:last-child {
  border-right: none;
}

.stats-bar .stat-item:hover {
  background: var(--surface);
}

.stats-bar .stat-num {
  font-size: 2.6rem;
  margin-bottom: 6px;
  color: var(--text);
}

.stats-bar .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Values Grid ───────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 55, 159, .05);
}

.value-item {
  background: #fff;
  padding: 48px 44px;
  transition: background .3s;
}

.value-item:hover {
  background: var(--surface);
}

.value-strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.value-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.value-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── CTA Banner — dark contrast section ────────────────────── */
.cta-banner {
  background: var(--bg-dark);
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 55, 159, .25) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--text-on-dark);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: var(--muted-on-dark);
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.72;
  position: relative;
  z-index: 1;
}

.cta-banner .label {
  background: rgba(0, 55, 159, .22);
  border-color: rgba(143, 168, 255, .35);
  color: #a3b8ff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.cta-banner .label-dot {
  background: #a3b8ff;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}

.footer-socials a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--dim);
}

/* ── Page Hero (interior pages) ────────────────────────────── */
.page-hero {
  padding: 160px 0 100px;
  position: relative;
  background: var(--bg);
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero .label {
  margin-bottom: 20px;
}

.page-hero h1 {
  margin-bottom: 20px;
}

/* Dot bg for page heroes */
.page-hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 55, 159, .14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
}

/* ── Split Section ─────────────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse>* {
  direction: ltr;
}

.split-content .label {
  margin-bottom: 20px;
}

.split-content h2 {
  margin-bottom: 20px;
}

.split-content p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.split-content ul {
  margin: 16px 0 24px;
}

.split-content ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.split-content ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.split-visual {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 55, 159, .06);
}

.split-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 55, 159, .06) 0%, transparent 65%);
}

.feature-visual {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark mock terminals (keep dark for visual contrast) */
.mock-terminal {
  background: #0d0d1a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  overflow: hidden;
}

.mock-terminal-bar {
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mock-dot.red {
  background: #ff5f57;
}

.mock-dot.amber {
  background: #febc2e;
}

.mock-dot.green {
  background: #28c840;
}

/* ── Agentic AI — Comparison ───────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 55, 159, .06);
}

.comparison-col {
  background: #fff;
  padding: 44px 40px;
}

.comparison-col.highlight {
  background: rgba(0, 55, 159, .03);
}

.comparison-col h4 {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-col h4 .badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

.comparison-list li {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.comparison-list li:last-child {
  border-bottom: none;
}

.comparison-list li .icon-ok {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 1px;
}

.comparison-list li .icon-no {
  color: var(--dim);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Use case cards ────────────────────────────────────────── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.usecase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .3s, box-shadow .3s;
  box-shadow: 0 2px 8px rgba(0, 55, 159, .03);
}

.usecase-card:hover {
  border-color: rgba(0, 55, 159, .28);
  box-shadow: 0 8px 32px rgba(0, 55, 159, .08);
}

.usecase-card .service-icon {
  margin-bottom: 16px;
}

.usecase-card h4 {
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── References ────────────────────────────────────────────── */
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reference-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .3s, box-shadow .3s;
  box-shadow: 0 2px 8px rgba(0, 55, 159, .03);
}

.reference-card:hover {
  border-color: rgba(0, 55, 159, .28);
  box-shadow: 0 8px 32px rgba(0, 55, 159, .08);
}

.reference-card .quote {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.reference-card .quote::before {
  content: '"';
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 0;
  vertical-align: -.4em;
  margin-right: 2px;
}

.reference-card .quote::after {
  content: '"';
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 0;
  vertical-align: -.4em;
  margin-left: 2px;
}

.reference-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reference-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 55, 159, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.reference-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.reference-author-company {
  font-size: 0.78rem;
  color: var(--dim);
}

.logos-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.logo-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  transition: border-color .2s, color .2s, box-shadow .2s;
  box-shadow: 0 1px 4px rgba(0, 55, 159, .04);
}

.logo-pill:hover {
  border-color: rgba(0, 55, 159, .3);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 55, 159, .08);
}

/* ── Blog ──────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 80px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 55, 159, .06);
}

.blog-featured-img {
  min-height: 300px;
  background: linear-gradient(135deg, rgba(0, 55, 159, .08), rgba(52, 74, 107, .12));
  position: relative;
}

.blog-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 55, 159, .1), transparent);
}

.blog-featured-body {
  padding: 48px;
}

.blog-featured-body .blog-tag {
  margin-bottom: 12px;
}

.blog-featured-body h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.blog-featured-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  box-shadow: 0 2px 8px rgba(0, 55, 159, .03);
}

.blog-card:hover {
  border-color: rgba(0, 55, 159, .28);
  box-shadow: 0 8px 32px rgba(0, 55, 159, .08);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, rgba(0, 55, 159, .07), rgba(52, 74, 107, .10));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 55, 159, .04));
}

.blog-card-body {
  padding: 24px;
}

.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.blog-card h4 {
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text);
}

.blog-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--dim);
}

/* ── About ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .3s, box-shadow .3s;
  box-shadow: 0 2px 8px rgba(0, 55, 159, .03);
}

.team-card:hover {
  border-color: rgba(0, 55, 159, .28);
  box-shadow: 0 8px 24px rgba(0, 55, 159, .08);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 2px solid rgba(0, 55, 159, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.team-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-title {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.principles-list {
  display: flex;
  flex-direction: column;
}

.principle-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.principle-item:first-child {
  border-top: 1px solid var(--border);
}

.principle-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--primary);
  padding-top: 4px;
}

.principle-item h4 {
  margin-bottom: 8px;
}

.principle-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .03em;
}

.form-control {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  border-color: rgba(0, 55, 159, .4);
  box-shadow: 0 0 0 3px rgba(0, 55, 159, .08);
}

.form-control::placeholder {
  color: var(--dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

select.form-control option {
  background: #fff;
  color: var(--text);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 55, 159, .04);
}

.contact-info-card h4 {
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3px;
}

.info-value {
  font-size: 0.875rem;
  color: var(--muted);
}

.calendly-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.calendly-placeholder .service-icon {
  margin: 0 auto 16px;
}

.calendly-placeholder h4 {
  margin-bottom: 8px;
}

.calendly-placeholder p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
}


/* ── Animated Grid Pattern (MagicUI) ─────────────────────────────── */
.hero-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Canvas element replaced by SVG grid */
#hero-canvas { display: none; }

/* Edge fades — grid dissolves into the white page on all sides */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,  rgba(254,254,255,1) 0%, rgba(254,254,255,.7) 30%, transparent 56%),
    linear-gradient(to top,    rgba(254,254,255,1) 0%, rgba(254,254,255,.5) 16%, transparent 36%),
    linear-gradient(to bottom, rgba(254,254,255,.8) 0%, transparent 22%),
    linear-gradient(to left,   rgba(254,254,255,.5) 0%, transparent 30%);
}

/* ── Orbiting Circles (MagicUI port) ──────────────────────────────── */
/*
 * CSS custom properties per .orbit-item:
 *   --duration  (number, seconds)
 *   --radius    (number, pixels from center)
 *   --angle     (number, starting degrees)
 */
@keyframes orbit {
  0% {
    transform:
      rotate(calc(var(--angle, 0) * 1deg))
      translateY(calc(var(--radius, 100) * -1px))
      rotate(calc(var(--angle, 0) * -1deg));
  }
  100% {
    transform:
      rotate(calc(360deg + var(--angle, 0) * 1deg))
      translateY(calc(var(--radius, 100) * -1px))
      rotate(calc(-360deg + var(--angle, 0) * -1deg));
  }
}

.orbit-container {
  position: relative;
  flex-shrink: 0;
}

.orbit-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: #fff;
  border: 1px solid rgba(0,55,159,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,55,159,.12), 0 2px 8px rgba(0,0,0,.06);
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: orbit calc(var(--duration, 20) * 1s) linear infinite;
}
.orbit-item.reverse {
  animation-direction: reverse;
}

.orbit-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid rgba(0,55,159,.16);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,55,159,.08), 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .3s, border-color .3s;
}
.orbit-badge:hover {
  border-color: rgba(0,55,159,.35);
  box-shadow: 0 8px 24px rgba(0,55,159,.18);
}

.orbit-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.65);
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-item.wide {
    grid-column: span 2;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar .stat-item:nth-child(2) {
    border-right: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .split-visual {
    height: 300px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .usecase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .references-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-img {
    min-height: 200px;
  }

  .blog-featured-body {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section-pad {
    padding: 80px 0;
  }

  .cta-banner {
    padding: 80px 20px;
  }

  .site-nav {
    display: none;
  }

  .header-right .lang-toggle,
  .header-right .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-item.wide {
    grid-column: span 1;
  }

  .bento-card {
    min-height: 240px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar .stat-item {
    padding: 28px 20px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-hero {
    padding: 130px 0 70px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stats-bar .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stats-bar .stat-item:last-child {
    border-bottom: none;
  }
}

/* ── Related posts (end of blog articles) ────────────────── */
.related-posts {
  padding: 64px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.related-posts-heading {
  font-size: 1.4rem;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.01em;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.related-post {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.related-post:hover {
  border-color: rgba(0, 55, 159, .28);
  box-shadow: 0 8px 24px rgba(0, 55, 159, .08);
  transform: translateY(-3px);
}

.related-post h4 {
  margin: 6px 0 10px;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text);
  flex-grow: 1;
}

.related-post .blog-meta {
  margin-top: auto;
}

@media (max-width: 800px) {
  .related-posts-grid { grid-template-columns: 1fr; }
  .related-posts { padding: 48px 0; }
}

/* ── References clients grid ──────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 180px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  text-decoration: none;
  color: inherit;
}

.client-card:hover {
  border-color: rgba(0, 55, 159, .28);
  box-shadow: 0 8px 32px rgba(0, 55, 159, .08);
  transform: translateY(-3px);
}

.client-card img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: .75;
  transition: opacity .25s;
}

.client-card:hover img {
  opacity: 1;
}

.client-card .client-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
}

@media (max-width: 800px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* ── Blog post pages ───────────────────────────────────────── */
.blog-post-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.blog-post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 55, 159, .08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .35;
  pointer-events: none;
}

.blog-post-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color .2s;
}

.blog-post-back:hover { color: var(--primary); }

.blog-post-hero .blog-tag {
  font-size: 0.72rem;
  margin-bottom: 16px;
}

.blog-post-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.blog-post-meta-row {
  font-size: 0.82rem;
  color: var(--dim);
  display: flex;
  gap: 14px;
  align-items: center;
}

.blog-post-meta-row span { display: inline-flex; align-items: center; }

.blog-post-hero-visual {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 55, 159, .08);
  overflow: hidden;
  position: relative;
}

.blog-post-hero-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-post-body {
  padding: 72px 0 96px;
}

.blog-post-body .container {
  max-width: 720px;
}

.blog-post-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.blog-post-body h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.blog-post-body h2:first-child { margin-top: 0; }

.blog-post-body h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 14px;
}

.blog-post-body p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 20px;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
  list-style: disc;
}

.blog-post-body ol { list-style: decimal; }

.blog-post-body li {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 6px;
}

.blog-post-body li::marker {
  color: var(--primary);
}

.blog-post-body strong {
  color: var(--text);
  font-weight: 700;
}

.blog-post-body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.blog-post-body a:not(.btn) {
  color: var(--primary);
  border-bottom: 1px solid rgba(0, 55, 159, .3);
  transition: border-color .2s;
}

.blog-post-body a:not(.btn):hover {
  border-bottom-color: var(--primary);
}

@media (max-width: 900px) {
  .blog-post-hero {
    padding: 110px 0 40px;
  }
  .blog-post-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .blog-post-hero-visual {
    max-width: 420px;
  }
  .blog-post-body {
    padding: 48px 0 72px;
  }
  .blog-post-lead {
    font-size: 1.08rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
  .blog-post-body h2 {
    font-size: 1.4rem;
    margin-top: 40px;
  }
}