/* =========================================================
   PE Resourcing — modern theme
   Premium dark SaaS look. Brand accent: #EF452E.
   Fonts: Inter (body) + Space Grotesk (display).
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0b0d17;
  --text-dim: #4b5566;
  --text-muted: #8a91a3;

  --brand: #ef452e;
  --brand-2: #ff7a3d;
  --brand-3: #ff3d8a;
  --accent: #7c5cff;
  --good: #16a34a;

  --grad-brand: linear-gradient(120deg, #ef452e 0%, #ff7a3d 45%, #ff3d8a 100%);
  --grad-alt:   linear-gradient(120deg, #7c5cff 0%, #4dd0ff 100%);
  --grad-soft:  linear-gradient(180deg, rgba(239, 69, 46, 0.08), rgba(239, 69, 46, 0));

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px -4px rgba(15, 23, 42, 0.06);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
  --space: 1rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-th,
body.is-th h1,
body.is-th h2,
body.is-th h3,
body.is-th h4,
body.is-th h5 {
  font-family: 'IBM Plex Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.is-th h1, body.is-th h2, body.is-th h3 {
  letter-spacing: -0.01em;
  line-height: 1.25;
}
body.is-th .hero__title {
  font-family: 'IBM Plex Sans Thai', 'Space Grotesk', sans-serif;
  line-height: 1.12;
  margin-bottom: 28px;
  font-size: clamp(2.7rem, 7.5vw, 4.9rem);
  letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reusable bits ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 6px 12px;
  border: 1px solid rgba(239, 69, 46, 0.3);
  border-radius: 999px;
  background: rgba(239, 69, 46, 0.08);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto;
}

/* Scannable bullet lists (conversion / lower density) */
.scan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.scan-list--section {
  max-width: 560px;
  margin: 0 auto 36px;
}

.scan-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.5;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.scan-list li:last-child {
  border-bottom: 0;
}

.scan-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7c5cff);
}

.card .scan-list {
  margin-top: 2px;
}

.card .scan-list li {
  font-size: 0.95rem;
}

.service .scan-list--lede {
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.service .scan-list--lede li {
  padding-top: 6px;
  padding-bottom: 6px;
}

.case .scan-list {
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.process__step .scan-list {
  flex: 1;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.faq__item .scan-list {
  margin: 0 0 8px;
  padding-top: 4px;
}

.cta-band .scan-list {
  margin-top: 8px;
  max-width: 520px;
}

.contact__intro {
  max-width: 100%;
  margin: 0 0 20px;
}

.section-head {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 820px;
}

.metrics .section-head--compact {
  margin-bottom: 32px;
}

.metrics .section-sub--tight {
  margin-top: 0;
  margin-bottom: 0;
}

.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad--alt {
  background: var(--grad-alt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(239, 69, 46, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(239, 69, 46, 0.8);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.07);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-toggle:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--border-strong);
}
.lang-toggle__opt {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lang-toggle__opt.is-active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(239, 69, 46, 0.55);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav__logo-text {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer__brand .nav__logo img {
  height: 44px;
}
.footer__brand .nav__logo-text {
  font-size: 20px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav__links a.is-active {
  color: var(--text);
  font-weight: 600;
}
.nav__links a.is-active::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__cta .btn { padding: 10px 16px; font-size: 13px; }

.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav__burger span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 40%, transparent 90%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: floaty 12s ease-in-out infinite;
}
.hero__glow--1 {
  top: -120px; left: -120px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(239, 69, 46, 0.45), transparent 60%);
}
.hero__glow--2 {
  bottom: -180px; right: -180px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.32), transparent 60%);
  animation-delay: -6s;
}
@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero__inner {
  text-align: center;
  position: relative;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero__pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 980px;
  margin: 0 auto 24px;
}

.hero__subwrap {
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  margin: 0;
  line-height: 1.65;
}

/* Thai hero — scannable bullets, SaaS spacing */
.hero__sub-lede {
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 auto 22px;
  max-width: 34em;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.hero__bullets li {
  margin: 0;
  padding: 14px 18px 14px 44px;
  position: relative;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__bullets li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand, #ef452e), #7c5cff);
  box-shadow: 0 0 0 3px rgba(239, 69, 46, 0.12);
}

.hero__bullets li strong {
  font-weight: 600;
}

body.is-th .hero__subwrap {
  max-width: 580px;
  margin-bottom: 40px;
}

body.is-th .hero__sub-lede {
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

body.is-th .hero {
  padding-bottom: 128px;
}

/* Hero — credibility + urgency (conversion) */
.hero__cred {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-dim);
  line-height: 1.5;
}

.hero__cred-item strong {
  color: var(--text);
  font-weight: 700;
}

.hero__cred-sep {
  opacity: 0.35;
  user-select: none;
}

.hero__sub-lede--en {
  text-align: center;
  margin-bottom: 18px;
}

.hero__bullets--en {
  max-width: 600px;
}

.hero__urgency {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 12px 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-dim);
  text-align: left;
  background: linear-gradient(135deg, rgba(239, 69, 46, 0.08), rgba(124, 92, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hero__urgency-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(239, 69, 46, 0.2);
  animation: pulse 2s infinite;
}

/* Trust metrics — scannable list */
.trust__bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
  text-align: left;
}

.trust__bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  color: var(--text-dim);
}

.trust__bullets li:last-child {
  border-bottom: 0;
}

.trust__bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  font-weight: 700;
  color: var(--good, #16a34a);
  font-size: 0.95em;
}

/* Industry strip (no image logos) */
.trust-clients {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trust-clients__inner {
  text-align: center;
}

.trust-clients__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.trust-clients__marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-clients__marquee span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Why / services — section bullets */
.why__bullets,
.srv__bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 560px;
  text-align: left;
}

.why__bullets li,
.srv__bullets li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.55;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.why__bullets li:last-child,
.srv__bullets li:last-child {
  border-bottom: 0;
}

.why__bullets li::before,
.srv__bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7c5cff);
}

/* Case study verified ribbon */
.case__verified {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #c026d3);
  border-radius: 6px;
}

/* Contact urgency strip */
.contact__rush {
  margin: 0 0 20px;
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 12px;
}

@media (max-width: 520px) {
  .hero__bullets li {
    padding: 12px 14px 12px 38px;
    font-size: 0.97rem;
  }
  .hero__bullets li::before {
    left: 14px;
  }
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero__trust {
  text-align: center;
  opacity: 0.85;
  margin-top: 36px;
}
.hero__trust-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.hero__trust-logos span {
  opacity: 0.6;
  transition: opacity 0.2s var(--ease);
}
.hero__trust-logos span:hover { opacity: 1; }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--brand);
  animation: scroller 1.6s ease-in-out infinite;
}
@keyframes scroller {
  0% { transform: translateY(-6px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* =========================================================
   METRICS
   ========================================================= */
.metrics { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric { text-align: center; }
.metric__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.metric__label {
  color: var(--text-dim);
  font-size: 14px;
}

/* =========================================================
   WHY / Services / Generic Card grid
   ========================================================= */
.why, .services, .compare, .process, .cases, .stack, .testimonials, .careers, .faq {
  padding: 110px 0;
  position: relative;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 69, 46, 0.25);
  box-shadow: 0 20px 40px -12px rgba(239, 69, 46, 0.15), var(--shadow-md);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(239, 69, 46, 0.12);
  color: var(--brand-2);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--bg-2); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 69, 46, 0.3);
  box-shadow: 0 20px 40px -12px rgba(239, 69, 46, 0.15), var(--shadow-md);
}

.service__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-2);
  margin-bottom: 14px;
}
.service h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service__lede {
  color: var(--text-dim);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.service__points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.service__points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.service__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: rgba(239, 69, 46, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef452e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.service__outcome {
  background: rgba(239, 69, 46, 0.08);
  border: 1px solid rgba(239, 69, 46, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.service__outcome strong { color: var(--text); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(239, 69, 46, 0.07), rgba(124, 92, 255, 0.07));
  border: 1px solid rgba(239, 69, 46, 0.15);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(239, 69, 46, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h3 { font-size: 1.4rem; margin-bottom: 4px; }
.cta-band p { margin: 0; color: var(--text-dim); }

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.compare__table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.1fr 1.1fr;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-dim);
}
.compare__row:last-child { border-bottom: none; }

.compare__row--head {
  background: rgba(15, 23, 42, 0.025);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 22px 24px;
}
.compare__row--head .compare__col { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem; }

.compare__col { padding: 0 12px; }

.compare__col--us {
  position: relative;
  color: var(--text);
  font-weight: 500;
  background: linear-gradient(180deg, rgba(239, 69, 46, 0.08), rgba(239, 69, 46, 0.02));
  border-radius: 12px;
  padding: 14px 16px;
  margin: -8px 0;
}

.compare__row--head .compare__col--us {
  margin: -16px 0;
  padding: 22px 16px 18px;
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad-brand);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.compare__label { font-weight: 600; color: var(--text); }

.check {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.14);
  color: var(--good);
  font-weight: 700;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  margin-right: 6px;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--bg-2); }

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process__timeline::before {
  content: '';
  position: absolute;
  left: 4%; right: 4%;
  top: 36px; height: 2px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
  z-index: 0;
}

.process__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process__step:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 69, 46, 0.25);
  box-shadow: var(--shadow-md);
}

.process__num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -8px rgba(239, 69, 46, 0.6);
}

.process__step h3 { font-size: 1.1rem; }
.process__step p { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 14px; }
.process__time {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 4px 10px;
  border: 1px solid rgba(239, 69, 46, 0.25);
  border-radius: 999px;
  background: rgba(239, 69, 46, 0.06);
}

/* =========================================================
   CASE STUDIES
   ========================================================= */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.case::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.case:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.case:hover::after { transform: scaleX(1); }

.case__tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 600;
  margin-bottom: 14px;
}
.case h3 { font-size: 1.2rem; line-height: 1.3; }
.case > p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 22px; flex: 1; }

.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.case__metrics > div { text-align: center; }
.case__metrics strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case__metrics span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.case__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case__stack span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}

.cases__cta { text-align: center; }

/* =========================================================
   TECH STACK
   ========================================================= */
.stack { background: var(--bg-2); }
.stack__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stack__group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stack__group:hover {
  border-color: rgba(239, 69, 46, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stack__group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-2);
  margin-bottom: 8px;
}
.stack__group p { margin: 0; font-size: 0.95rem; color: var(--text-dim); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.quote__stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 4px;
}
.quote blockquote {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  flex: 1;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.quote figcaption strong { color: var(--text); }
.quote figcaption span { color: var(--text-muted); font-size: 0.82rem; }

.logos { text-align: center; }
.logos__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.logos__row--refs {
  gap: 14px;
  align-items: stretch;
}
.logo-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.logo-pill:hover {
  color: var(--text);
  border-color: rgba(239, 69, 46, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.logo-ref {
  margin: 0;
  width: clamp(140px, 18vw, 190px);
  min-height: 78px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface), #ffffff 8%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.logo-ref img {
  width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.88;
}
.logo-ref:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 69, 46, 0.3);
  box-shadow: var(--shadow-md);
}
.logo-ref:hover img {
  filter: grayscale(0.15) contrast(1.05);
  opacity: 1;
}
@media (max-width: 640px) {
  .logos__row--refs {
    gap: 10px;
  }
  .logo-ref {
    width: calc(50% - 6px);
    min-height: 72px;
    padding: 10px 12px;
  }
}

/* =========================================================
   CAREERS
   ========================================================= */
.careers { background: var(--bg-2); }

.careers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.job {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.job:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 69, 46, 0.3);
  box-shadow: var(--shadow-md);
}
.job__head { margin-bottom: 12px; }
.job h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(239, 69, 46, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.job__lede { color: var(--text-dim); margin-bottom: 14px; font-size: 0.95rem; }
.job ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.job ul li { margin-bottom: 6px; }
.job__apply {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand-2);
  font-size: 0.95rem;
}
.job__apply:hover { color: var(--text); }

/* =========================================================
   FAQ
   ========================================================= */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__item[open] {
  border-color: rgba(239, 69, 46, 0.3);
  box-shadow: var(--shadow-card);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--brand-2);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 110px 0;
  background:
    radial-gradient(ellipse 60% 60% at 0% 0%, rgba(239, 69, 46, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(124, 92, 255, 0.07), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__copy .eyebrow { margin-bottom: 18px; }
.contact__copy .section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.contact__copy .section-sub { margin: 0 0 24px; max-width: none; }

.contact__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact__perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.contact__perks li > span:first-child {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.14);
  color: var(--good);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex: none;
}

.contact__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.contact__details strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 6px;
}
.contact__details p { margin: 0; font-size: 0.92rem; line-height: 1.55; }
.contact__details a { color: var(--text); }
.contact__details a:hover { color: var(--brand-2); }

/* Form */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.contact__form h3 { font-size: 1.4rem; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}
.field-row .field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(239, 69, 46, 0.14);
}
.field select {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a91a3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.contact__form .btn { margin-top: 8px; }
.contact__fineprint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 14px 0 0;
}
.contact__success {
  margin-top: 18px;
  padding: 16px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
}
.contact__success strong { display: block; margin-bottom: 4px; color: var(--good); }
.contact__success p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 320px;
}
.footer__col h5 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer__col ul li {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.footer__col a:hover { color: var(--brand-2); }

.footer__bar {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   CAREERS PAGE
   ========================================================= */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__inner { position: relative; max-width: 920px; }
.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 14px 0 18px;
}
.page-hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 40px;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--brand-2); }
.breadcrumbs span:first-of-type { color: var(--text-muted); }

.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.page-hero__stats > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.page-hero__stats strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.page-hero__stats span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Job filters & list */
.jobs { padding: 60px 0 90px; }
.jobs__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.jobs__head .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}
.jobs__count {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.jobs__count #jobCount {
  display: inline-block;
  margin-right: 4px;
  padding: 3px 10px;
  background: rgba(239, 69, 46, 0.1);
  color: var(--brand);
  border: 1px solid rgba(239, 69, 46, 0.2);
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.chip {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chip:hover { color: var(--text); background: rgba(15, 23, 42, 0.04); }
.chip.is-active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(239, 69, 46, 0.55);
}

.jobs__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.job-card.is-hidden { display: none !important; }
.job-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 69, 46, 0.25);
  box-shadow: var(--shadow-md);
}

.job-card__top { margin-bottom: 12px; }
.job-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.meta--dept {
  background: rgba(239, 69, 46, 0.08);
  color: var(--brand);
  border-color: rgba(239, 69, 46, 0.2);
}
.meta--mob   { background: rgba(124, 92, 255, 0.08); color: #6d4dff; border-color: rgba(124, 92, 255, 0.2); }
.meta--cloud { background: rgba(13, 148, 136, 0.08); color: #0d9488; border-color: rgba(13, 148, 136, 0.2); }
.meta--qa    { background: rgba(245, 158, 11, 0.08); color: #b45309; border-color: rgba(245, 158, 11, 0.25); }
.meta--design{ background: rgba(236, 72, 153, 0.08); color: #db2777; border-color: rgba(236, 72, 153, 0.2); }
.meta--ops   { background: rgba(59, 130, 246, 0.08); color: #2563eb; border-color: rgba(59, 130, 246, 0.2); }

.job-card__lede {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.job-card__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
}
.job-card__points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.job-card__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.job-card__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: none;
  padding-top: 4px;
}
.job-card__cta .btn { padding: 10px 18px; font-size: 13px; }
.job-card__seniority {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.jobs__empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.jobs__empty p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* Perks section */
.perks { padding: 90px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.perks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Apply CTA section */
.apply-cta { padding: 0 0 110px; }

/* Index careers__cta band */
.careers__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 12px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .job-card { grid-template-columns: 1fr; }
  .job-card__cta { flex-direction: row; justify-content: space-between; align-items: center; }
  .perks__grid { grid-template-columns: 1fr; }
  .filters { width: 100%; }
}

/* =========================================================
   APPLY PAGE
   ========================================================= */
.apply-page {
  position: relative;
  padding: 130px 0 100px;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-2);
}

.apply-page__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}

/* Sidebar (position summary) */
.apply-side {
  position: sticky;
  top: 96px;
  align-self: start;
}
.apply-side .breadcrumbs { margin-bottom: 16px; }
.apply-side__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 14px 0 14px;
}
.apply-side__title > span { display: block; }
.apply-side__sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.apply-side__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apply-side__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.apply-side__list li .check { margin-top: 2px; flex: none; }

.apply-side__contact {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.apply-side__contact strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.apply-side__contact p { margin: 0; font-size: 0.88rem; }
.apply-side__contact a { color: var(--brand); }
.apply-side__contact a:hover { color: var(--brand-2); }

.apply-side__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
}
.apply-side__back:hover { color: var(--brand-2); }
.apply-side__back svg { transition: transform 0.2s var(--ease); }
.apply-side__back:hover svg { transform: translateX(-3px); }

/* Form */
.apply-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.apply-form__section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.apply-form__section:last-of-type {
  border-bottom: none;
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.apply-form__section h3 {
  font-size: 1.1rem;
  margin: 0 0 18px;
  color: var(--text);
}

.req { color: var(--brand); font-weight: 600; }
.opt {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 2px;
}

/* File drop */
.file-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.025);
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.file-drop:hover {
  background: rgba(239, 69, 46, 0.04);
  border-color: rgba(239, 69, 46, 0.4);
}
.file-drop.is-drag {
  background: rgba(239, 69, 46, 0.08);
  border-color: var(--brand);
  transform: scale(1.005);
}
.file-drop__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(239, 69, 46, 0.1);
  color: var(--brand);
  flex: none;
}
.file-drop__icon svg { width: 22px; height: 22px; }
.file-drop > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.file-drop strong { font-size: 0.95rem; color: var(--text); }
.file-drop span { font-size: 0.82rem; color: var(--text-muted); }

.file-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
}
.file-pick svg { width: 18px; height: 18px; color: var(--good); flex: none; }
.file-pick__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-pick__remove {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.file-pick__remove:hover {
  background: rgba(239, 69, 46, 0.1);
  color: var(--brand);
}

/* Consent checkbox */
.apply-form__consent {
  margin-bottom: 18px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox__box {
  flex: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  color: transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
  margin-top: 1px;
}
.checkbox__box svg { width: 12px; height: 12px; }
.checkbox input:checked + .checkbox__box {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.checkbox input:focus-visible + .checkbox__box {
  box-shadow: 0 0 0 4px rgba(239, 69, 46, 0.15);
}
.checkbox a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.checkbox a:hover { color: var(--brand-2); }

/* Responsive */
@media (max-width: 1024px) {
  .apply-page__inner { grid-template-columns: 1fr; gap: 32px; }
  .apply-side { position: static; }
}
@media (max-width: 560px) {
  .apply-form { padding: 24px; }
  .apply-form__section { padding-bottom: 22px; margin-bottom: 22px; }
  .file-drop { flex-direction: column; text-align: center; padding: 24px 16px; }
}

/* =========================================================
   COOKIE CONSENT BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 480px;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon body"
    "actions actions";
  gap: 14px 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.25), 0 4px 12px rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.is-leaving {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-banner__icon {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(239, 69, 46, 0.1);
  color: var(--brand);
  flex: none;
}
.cookie-banner__icon svg { width: 22px; height: 22px; }

.cookie-banner__body { grid-area: body; }
.cookie-banner__body strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.cookie-banner__body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.cookie-banner__actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  padding: 9px 16px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "body"
      "actions";
    gap: 10px;
  }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__btn { flex: 1; justify-content: center; }
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .why__grid,
  .services__grid,
  .cases__grid,
  .testimonials__grid,
  .careers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stack__grid { grid-template-columns: repeat(2, 1fr); }
  .process__timeline { grid-template-columns: repeat(2, 1fr); }
  .process__timeline::before { display: none; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__inner > .lang-toggle { display: inline-flex; margin-left: auto; margin-right: 8px; }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
  }
  .nav.is-open .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__cta {
    display: flex;
    position: absolute;
    top: calc(72px + 320px);
    left: 0; right: 0;
    padding: 0 24px;
    flex-direction: column;
    gap: 10px;
  }
  .nav.is-open .nav__cta .btn { width: 100%; justify-content: center; }

  .hero { padding: 120px 0 80px; }
  .why, .services, .compare, .process, .cases, .stack, .testimonials, .careers, .faq, .contact {
    padding: 80px 0;
  }
  .section-head { margin-bottom: 48px; }

  .compare__row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .compare__row--head { display: none; }
  .compare__row .compare__col,
  .compare__row .compare__label { padding: 4px 0; margin: 0; }
  .compare__row .compare__col::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .compare__col--us { background: rgba(239, 69, 46, 0.06); padding: 10px 14px; border: 1px solid rgba(239, 69, 46, 0.15); border-radius: 10px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .contact__perks { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .why__grid,
  .services__grid,
  .cases__grid,
  .testimonials__grid,
  .careers__grid,
  .stack__grid,
  .process__timeline,
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .nav__inner { height: 64px; }
  .nav.is-open .nav__links { top: 64px; }
  .hero { padding-top: 110px; }
  .cta-band { padding: 24px; }
  .contact__form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
