/* =========================================================
   Sorraia - Homepage Stylesheet (Redesign)
   ========================================================= */

/* --- STEP 3 + 4: Design tokens & font assignments --- */
.pg-home {
  --color-bg: #FAFAF8;
  --color-text: #1A1917;
  --color-accent: #2563EB;
  --color-accent-light: #EEF3FF;
  --color-accent-border: #C7D7FD;
  --color-green: #10B981;
  --color-green-dark: #059669;
  --color-amber: #D97706;
  --color-dark-bg: #0F1117;
  --color-dark-surface: #0A0D14;
  --color-dark-border: #1E2230;
  --color-border: #EAE7E0;
  --color-muted: #666666;
  --color-mono-muted: #AAAAAA;

  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-sans: "IBM Plex Sans", -apple-system, sans-serif;
}

.pg-home {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;

  --white: var(--color-bg);
  --off-white: var(--color-bg);
  --navy: var(--color-bg);
  --navy-mid: var(--color-bg);
  --surface: var(--color-bg);
  --text: var(--color-text);
  --text-mid: var(--color-muted);
  --text-muted: var(--color-muted);
  --text-faint: var(--color-mono-muted);
  --accent: var(--color-accent);
  --accent-light: var(--color-accent-light);
  --border: var(--color-border);
  --border-mid: var(--color-border);
}

.pg-home *, .pg-home *::before, .pg-home *::after { box-sizing: border-box; }

/* Font assignment: Serif for headings */
.pg-home h1, .pg-home h2, .pg-home h3 {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
}
.pg-home h1 em, .pg-home h2 em, .pg-home h3 em {
  font-style: italic;
  color: var(--color-accent);
  opacity: 1;
}
/* Font assignment: Sans for body */
.pg-home p, .pg-home .feature-split__body, .pg-home .why-card__desc,
.pg-home .principle__text, .pg-home .pillar__text {
  font-family: var(--font-sans) !important;
}
/* Font assignment: Mono for labels, nav, buttons */
.pg-home [class*="__eyebrow"], .pg-home [class*="__label"],
.pg-home [class*="__num"], .pg-home .btn, .pg-home .btn--dark,
.pg-home .btn--white, .pg-home .btn--secondary {
  font-family: var(--font-mono) !important;
}

/* --- Section backgrounds --- */
.pg-home .section, .pg-home .section--gray, .pg-home .section--alt,
.pg-home .section--tone, .pg-home .section--center,
.pg-home .section--breathe, .pg-home .section--signature {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}
.pg-home .bg-dots, .pg-home .bg-dots--dark,
.pg-home .bg-grid, .pg-home .bg-glow { background: var(--color-bg) !important; }
.pg-home .bg-dots::after, .pg-home .bg-dots--dark::after { display: none !important; }
body.pg-home section, body.pg-home div[class*="section"],
body.pg-home div[class*="narrative"], body.pg-home div[class*="quote"],
body.pg-home div[class*="partners"] { background-color: var(--color-bg) !important; }

/* --- STEP 5: Navigation --- */
.pg-home #navbar, .pg-home #navbar.nav--dark,
.pg-home #navbar.nav--light, .pg-home #navbar.nav--scrolled {
  background: var(--color-bg) !important;
  border-bottom: 1px solid var(--color-border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.pg-home #navbar .nav-logo, .pg-home #navbar.nav--dark .nav-logo,
.pg-home #navbar.nav--light .nav-logo { color: var(--color-text) !important; }
.pg-home #navbar .nav-logo svg path { fill: var(--color-text) !important; }

.pg-home #navbar .nav-links a, .pg-home #navbar.nav--dark .nav-links a,
.pg-home #navbar.nav--light .nav-links a {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: #666 !important;
  text-transform: none !important;
  text-decoration: none !important;
}
.pg-home #navbar .nav-links a:hover { color: var(--color-text) !important; opacity: 1 !important; }
.pg-home #navbar .nav-links a::after { display: none !important; }
.pg-home #navbar .nav-toggle span,
.pg-home #navbar.nav--dark .nav-toggle span { background: var(--color-text) !important; }

.pg-home #navbar .nav-links li:last-child a,
.pg-home #navbar.nav--dark .nav-links li:last-child a {
  background: var(--color-accent) !important;
  color: #fff !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  padding: 9px 20px !important;
  border-radius: 0 !important;
  border: none !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
.pg-home #navbar .nav-links li:last-child a:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}

/* --- STEP 6: HERO SECTION (light two-column) --- */
.hero-dark {
  background: linear-gradient(135deg, #F0F4FF 0%, #FAFAF8 100%) !important;
  border-bottom: 1px solid #EAE7E0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hero-dark__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 1px solid #EAE7E0;
  max-width: 1160px;
  margin: 0 auto;
}

/* LEFT COLUMN */
.hero-dark__left {
  padding: calc(var(--nav-h, 64px) + 72px) 48px 72px;
  border-right: 1px solid #EAE7E0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}
.hero-dark__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #2563EB;
  background: #EEF3FF;
  border: 1px solid #C7D7FD;
  padding: 5px 14px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-dark__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563EB;
  flex-shrink: 0;
}
.hero-dark__h1 {
  font-family: "IBM Plex Serif", serif !important;
  font-size: 48px !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  color: #1A1917 !important;
  line-height: 1.1 !important;
  margin-bottom: 20px !important;
  max-width: none !important;
  text-align: left !important;
}
.hero-dark__h1 em {
  font-style: italic;
  color: #2563EB !important;
  opacity: 1 !important;
}
.hero-dark__sub {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 15px !important;
  color: #555555 !important;
  line-height: 1.75 !important;
  margin-bottom: 36px !important;
  max-width: 400px !important;
  text-align: left !important;
}
.hero-dark__cta {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 48px !important;
  justify-content: flex-start !important;
}
.hero-dark__btn {
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.07em !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.hero-dark__btn--primary {
  background: #2563EB !important;
  color: #fff !important;
  padding: 13px 24px !important;
  border: none !important;
  border-radius: 0 !important;
}
.hero-dark__btn--primary:hover { background: #1d4ed8 !important; }
.hero-dark__btn--secondary {
  background: transparent !important;
  color: #1A1917 !important;
  padding: 13px 20px !important;
  border: 1px solid #DDDBD6 !important;
  border-radius: 0 !important;
}
.hero-dark__btn--secondary:hover { border-color: #1A1917 !important; }

/* PROOF STATS ROW */
.hero-dark__stats {
  display: flex;
  border-top: 1px solid #EAE7E0;
  padding-top: 28px;
}
.hero-dark__stat {
  padding-right: 28px;
  border-right: 1px solid #EAE7E0;
}
.hero-dark__stat:nth-child(2),
.hero-dark__stat:nth-child(3) { padding-left: 28px; }
.hero-dark__stat:last-child { border-right: none; }
.hero-dark__stat-val {
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  font-weight: 500;
  color: #1A1917;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-dark__accent { color: #10B981; }
.hero-dark__stat-lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #888888;
  margin-top: 4px;
}

/* RIGHT COLUMN */
.hero-dark__right {
  padding: calc(var(--nav-h, 64px) + 48px) 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  background: #F4F2ED;
}
.hero-dark__card {
  background: #FFFFFF;
  border: 1px solid #EAE7E0;
  padding: 22px 24px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hero-dark__card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hero-dark__card--active {
  background: #EEF3FF !important;
  border-color: #C7D7FD !important;
}
.hero-dark__card-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.hero-dark__card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-dark__card-icon--blue { background: rgba(37,99,235,0.15); }
.hero-dark__card-icon--green { background: rgba(16,185,129,0.12); }
.hero-dark__card-icon--amber { background: rgba(217,119,6,0.12); }
.hero-dark__card-title {
  font-family: "IBM Plex Serif", serif;
  font-size: 15px;
  font-weight: 400;
  color: #1A1917;
  margin: 0;
}
.hero-dark__card--active .hero-dark__card-title { color: #1E40AF; }
.hero-dark__card-body {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  color: #666666;
  line-height: 1.65;
  padding-left: 38px;
  margin: 0;
}
.hero-dark__card--active .hero-dark__card-body { color: #3B5FC0; }

/* AGENT DATA STRIP (dark, matches stats strip) */
.hero-dark__strip {
  background: #1A1917;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0;
}
.hero-dark__strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  border-left: 1px solid rgba(255,255,255,0.07);
  max-width: 1160px;
  margin: 0 auto;
}
.hero-dark__strip-cell {
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-dark__strip-lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(200,205,214,0.4);
  margin-bottom: 8px;
}
.hero-dark__strip-lbl--blue { color: #60A5FA; }
.hero-dark__strip-val {
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  font-weight: 500;
  color: #E8ECF2;
  letter-spacing: -0.02em;
}
.hero-dark__strip-delta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #10B981;
  margin-left: 6px;
}
.hero-dark__strip-answer {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  color: rgba(200,205,214,0.6);
  line-height: 1.65;
  margin: 0;
}
.hero-dark__strip-badges {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.hero-dark__badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
}
.hero-dark__badge--green { color: #10B981; border: 1px solid rgba(16,185,129,0.3); background: rgba(16,185,129,0.08); }
.hero-dark__badge--blue { color: #60A5FA; border: 1px solid rgba(96,165,250,0.3); background: rgba(37,99,235,0.08); }
.hero-dark__badge--neutral { color: rgba(200,205,214,0.3); border: 1px solid rgba(200,205,214,0.15); }

/* CUSTOMER LOGO STRIP (light) */
.logo-strip--light {
  background: #F0EEE9 !important;
  border-bottom: 1px solid #EAE7E0 !important;
  padding: 18px 56px !important;
  display: flex !important;
  align-items: center !important;
  gap: 40px !important;
}
.logo-strip--light .logo-strip__label {
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  color: #AAAAAA !important;
  white-space: nowrap;
}
.logo-strip--light .logo-strip__names {
  display: flex !important;
  gap: 32px !important;
  align-items: center !important;
}
.logo-strip--light .logo-strip__name {
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 11px !important;
  color: #BBBBBB !important;
  letter-spacing: 0.05em !important;
}

/* HERO RESPONSIVE */
@media (max-width: 900px) {
  .hero-dark__grid { grid-template-columns: 1fr; }
  .hero-dark__left {
    padding: calc(var(--nav-h, 64px) + 48px) 28px 48px;
    border-right: none;
    border-bottom: 1px solid #EAE7E0;
  }
  .hero-dark__right { padding: 32px 28px; }
  .hero-dark__h1 { font-size: 38px !important; }
  .hero-dark__strip { padding: 0; }
  .hero-dark__strip-inner { grid-template-columns: 1fr 1fr; }
  .hero-dark__strip-cell--answer { grid-column: span 2; border-top: 1px solid rgba(255,255,255,0.07); }
  .logo-strip--light { padding: 18px 28px !important; gap: 24px !important; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hero-dark__left { padding: calc(var(--nav-h, 64px) + 32px) 20px 36px; }
  .hero-dark__right { padding: 24px 20px; }
  .hero-dark__h1 { font-size: 32px !important; }
  .hero-dark__sub { font-size: 14px !important; }
  .hero-dark__cta { flex-direction: column !important; align-items: flex-start !important; }
  .hero-dark__stats { flex-direction: column; gap: 16px; }
  .hero-dark__stat { padding: 0 0 12px 0 !important; border-right: none !important; border-bottom: 1px solid #EAE7E0; }
  .hero-dark__stat:last-child { border-bottom: none; }
  .hero-dark__strip { padding: 0; }
  .hero-dark__strip-inner { grid-template-columns: 1fr; }
  .hero-dark__strip-cell--answer { grid-column: span 1; }
  .hero-dark__strip-cell { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .logo-strip--light { padding: 18px 20px !important; gap: 16px !important; }
}

/* --- STEP 8: Why Sorraia feature grid (reuses .pillars / Why Sorraia section) --- */
.pg-home .section--tone .section__eyebrow {
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--color-accent) !important;
}
.pg-home .section--tone .section__heading {
  font-family: var(--font-serif) !important;
  font-size: 36px !important;
  font-weight: 400 !important;
}
.pg-home .pillars {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  margin-top: 40px;
}
.pg-home .pillar {
  border-top: 1px solid var(--color-border) !important;
  border-right: 1px solid var(--color-border) !important;
  padding: 28px 24px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pg-home .pillar:last-child { border-right: none !important; }
.pg-home .pillar__num {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  color: var(--color-accent) !important;
  font-weight: 500 !important;
  margin-bottom: 12px;
}
.pg-home .pillar__heading {
  font-family: var(--font-serif) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
  margin-bottom: 10px;
}
.pg-home .pillar__text {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.7 !important;
}

/* --- STEP 9: Stats strip --- */
.pg-home .stats-strip {
  background: var(--color-text);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pg-home .stats-strip__cell {
  padding: 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.pg-home .stats-strip__cell:last-child { border-right: none; }
.pg-home .stats-strip__value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: #FAFAF8;
  letter-spacing: -0.02em;
}
.pg-home .stats-strip__value .accent { color: var(--color-green); }
.pg-home .stats-strip__label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* --- STEP 10: Pipeline (reuses .q2d-steps) --- */
.pg-home .section, .pg-home .section--signature,
.pg-home .section--gray, .pg-home .section--tone,
.pg-home .section--center, .pg-home .section--breathe {
  padding: 72px 0 !important;
}
.pg-home .section--signature .section__eyebrow {
  font-family: var(--font-mono) !important;
  color: var(--color-accent) !important;
}
.pg-home .section--signature .section__heading {
  font-family: var(--font-serif) !important;
}
.pg-home .q2d-steps {
  display: block !important;
  grid-template-columns: none !important;
  border: 1px solid var(--color-border) !important;
  margin-top: 36px !important;
  padding: 0 !important;
  position: relative;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden;
}
.pg-home .q2d-step {
  display: grid !important;
  grid-template-columns: 72px 180px 1fr auto !important;
  grid-template-rows: auto !important;
  gap: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--color-border) !important;
  border-left: none !important;
  align-items: center;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.pg-home .q2d-step:last-child { border-bottom: none !important; }
.pg-home .q2d-step__connector { display: none !important; }
.pg-home .q2d-step__number {
  font-family: var(--font-mono) !important;
  font-size: 22px !important;
  color: #CCC !important;
  font-weight: 400 !important;
  padding: 20px 0 !important;
  margin: 0 !important;
  text-align: center !important;
  min-width: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pg-home .q2d-step__title {
  font-family: var(--font-serif) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
  border-left: 1px solid var(--color-border) !important;
  border-right: 1px solid var(--color-border) !important;
  padding: 20px 28px !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}
.pg-home .q2d-step__desc {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.5 !important;
  padding: 20px 28px !important;
  margin: 0;
  max-width: none !important;
}
.pg-home .q2d-summary {
  text-align: center !important;
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  color: var(--color-muted) !important;
  font-size: 15px !important;
  margin-top: 32px !important;
  border: none !important;
  padding: 0 !important;
}
/* Pipeline tag pills */
.pg-home .q2d-step__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  color: #666;
  margin: 0 24px;
  white-space: nowrap;
}
/* Active pipeline rows */
.pg-home .q2d-step--active {
  background: #F0F4FF !important;
}
.pg-home .q2d-step--active .q2d-step__number {
  color: var(--color-accent) !important;
}
.pg-home .q2d-step--active .q2d-step__title {
  color: var(--color-accent) !important;
}
.pg-home .q2d-step--active .q2d-step__tag {
  color: var(--color-accent);
  border-color: var(--color-accent-border);
  background: var(--color-accent-light);
}

/* --- STEP 11: Testimonials (reuses .quote-section) --- */
.pg-home .quote-section {
  background: #FAFAF8 !important;
  border-top: 1px solid #EAE7E0 !important;
  border-bottom: 1px solid #EAE7E0 !important;
  padding: 72px 0 !important;
}
.pg-home .quote-section .container { text-align: center; }
.pg-home .quote-section blockquote {
  background: transparent !important;
  border-left: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 auto 24px !important;
  max-width: 680px;
}
.pg-home .quote-section__mark {
  font-family: var(--font-serif) !important;
  color: var(--color-amber) !important;
}
.pg-home .quote-section__text {
  font-family: var(--font-serif) !important;
  font-size: 22px !important;
  font-style: italic !important;
  color: #444 !important;
  line-height: 1.7 !important;
  font-weight: 400;
}
.pg-home .quote-section__attr {
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: #999 !important;
}

/* --- Implementation section (reuses .section--gray / how-it-works) --- */
.pg-home .section--gray .section__eyebrow {
  font-family: var(--font-mono) !important;
  color: var(--color-accent) !important;
}
.pg-home .section--gray .section__heading {
  font-family: var(--font-serif) !important;
  font-size: 36px !important;
}
.pg-home .why-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
}
.pg-home .why-card {
  border-top: 1px solid var(--color-border) !important;
  border-right: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 28px 24px !important;
}
.pg-home .why-card:nth-child(4n) { border-right: none !important; }
.pg-home .why-card:last-child { border-right: none !important; }
.pg-home .why-card__icon svg {
  stroke: var(--color-accent) !important;
  width: 20px;
  height: 20px;
}
.pg-home .why-card__title {
  font-family: var(--font-serif) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
}
.pg-home .why-card__desc {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.7 !important;
}

/* --- Tech partner --- */
.pg-home .tech-partner__label {
  font-family: var(--font-mono) !important;
  color: var(--color-mono-muted) !important;
}
.pg-home .tech-partner__text {
  font-family: var(--font-sans) !important;
  color: var(--color-muted) !important;
}

/* --- OS Comparison --- */
.pg-home .os-comparison {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 56px;
}
.pg-home .os-comparison__grid { gap: 48px !important; }
.pg-home .os-comparison__footer { border-top: none !important; }
.pg-home .os-comparison__lead {
  font-family: var(--font-sans) !important;
  color: var(--color-muted) !important;
}
.pg-home .os-comparison__heading {
  font-family: var(--font-serif) !important;
  color: var(--color-text) !important;
}
.pg-home .os-comparison__item, .pg-home .os-comparison__item--highlight {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.pg-home .os-comparison__label {
  font-family: var(--font-mono) !important;
  color: var(--color-mono-muted) !important;
}
.pg-home .os-comparison__desc {
  font-family: var(--font-sans) !important;
  color: var(--color-muted) !important;
}

/* --- Mission / Problem --- */
.pg-home .mission {
  background: var(--color-bg) !important;
  border-top: 1px solid var(--color-border);
  padding: 72px 0 !important;
}
.pg-home .mission__inner {
  gap: 48px !important;
  align-items: start !important;
}
.pg-home .mission__heading {
  font-family: var(--font-serif) !important;
  font-size: clamp(28px, 3.4vw, 42px) !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
  letter-spacing: -0.01em !important;
}
.pg-home .mission__body p {
  font-family: var(--font-sans) !important;
  color: var(--color-muted) !important;
}
.pg-home .mission__body--em {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
}

/* --- Narrative bridges --- */
.pg-home .narrative-bridge {
  background: var(--color-bg) !important;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.pg-home .narrative-bridge--dark { background: var(--color-bg) !important; }
.pg-home .narrative-bridge__text {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  color: var(--color-muted) !important;
}

/* --- Feature split --- */
.pg-home .feature-split__body {
  font-family: var(--font-sans) !important;
  color: var(--color-muted) !important;
}
.pg-home .feature-split__body--em {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
}

/* --- Eyebrow global --- */
.pg-home .section__eyebrow, .pg-home .section__eyebrow.reveal--cont {
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--color-accent) !important;
}
.pg-home .section__heading {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
  letter-spacing: -0.01em !important;
}
.pg-home .section__sub {
  font-family: var(--font-sans) !important;
  color: var(--color-muted) !important;
}

/* Outcomes / Principles */
.pg-home .principles {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin-top: 40px !important;
}
.pg-home .principle {
  border-bottom: 1px solid var(--color-border) !important;
  border-top: none !important;
  padding: 24px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transform: none !important;
}
.pg-home .principle:first-child {
  border-top: 1px solid var(--color-border) !important;
}
.pg-home .principle:hover {
  transform: none !important;
  box-shadow: none !important;
}
.pg-home .principle__num {
  font-family: var(--font-mono) !important;
  color: var(--color-accent) !important;
  font-weight: 500;
}
.pg-home .principle__heading {
  font-family: var(--font-serif) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
}
.pg-home .principle__text {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.7;
}

/* Audience cards */
.pg-home #audience .why-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 !important;
}
.pg-home #audience .why-card {
  border: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 28px 24px !important;
  border-top: 3px solid var(--color-accent) !important;
}
.pg-home #audience .why-card:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(37,99,235,0.02) !important;
}

/* --- Partners --- */
.pg-home .partners {
  background: var(--color-bg) !important;
  border-top: 1px solid var(--color-border);
}
.pg-home .partners__label {
  font-family: var(--font-mono) !important;
  color: var(--color-mono-muted) !important;
}

/* --- STEP 13: CTA section --- */
.pg-home .section--cta {
  background: var(--color-accent) !important;
  border-top: none !important;
  padding: 72px 48px !important;
  text-align: center;
}
.pg-home .section--cta .section__heading {
  font-family: var(--font-serif) !important;
  font-size: 36px !important;
  color: #fff !important;
}
.pg-home .section--cta .section__heading em {
  color: rgba(255,255,255,0.6) !important;
  opacity: 1 !important;
}
.pg-home .section--cta .section__sub {
  color: rgba(255,255,255,0.7) !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
}
.pg-home .section--cta .cta-actions {
  display: flex !important;
  gap: 0 !important;
  justify-content: center;
  max-width: 480px;
  margin: 28px auto 0;
}
.pg-home .section--cta .btn--dark {
  flex: 1;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  padding: 12px 20px !important;
  border-radius: 0 !important;
}
.pg-home .section--cta .btn--secondary {
  background: #fff !important;
  color: var(--color-accent) !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 500;
  padding: 12px 20px !important;
  border-radius: 0 !important;
  border: none !important;
}

/* --- STEP 14: Footer --- */
.pg-home .footer {
  background: var(--color-bg) !important;
  border-top: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
  padding: 48px 0 !important;
}
.pg-home .footer__grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 32px !important;
}
.pg-home .footer__col-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}
.pg-home .footer__col-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #666;
}
.pg-home .footer__col-links a:hover { color: var(--color-text); }
.pg-home .footer__tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #999;
  line-height: 1.7;
}
.pg-home .footer__logo-text { color: var(--color-text); }
.pg-home .footer__logo-text svg path { fill: var(--color-text); }
.pg-home .footer__bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
  padding-top: 20px;
}
.pg-home .footer__copy, .pg-home .footer__trust, .pg-home .footer__legal {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-mono-muted);
}

/* --- Buttons (global) --- */
.pg-home .btn--dark {
  background: var(--color-accent) !important;
  color: #fff !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  border-radius: 0 !important;
  padding: 11px 24px;
}
.pg-home .btn--secondary {
  background: #fff !important;
  border: 1px solid #DDD !important;
  color: var(--color-text) !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  border-radius: 0 !important;
  padding: 11px 24px;
}

/* --- Divider --- */
.pg-home .divider { border-color: var(--color-border) !important; }

/* --- Additional overrides for specificity --- */
.pg-home .section__heading em, .pg-home .mission__heading em {
  font-style: italic;
  color: var(--color-accent);
  opacity: 1 !important;
}
.pg-home .container { max-width: 1160px; }
body.pg-home #hero h1 { color: var(--color-text) !important; opacity: 1 !important; }
body.pg-home #hero .hero-sub { color: #666 !important; opacity: 1 !important; }
body.pg-home #hero .hero-cta { opacity: 1 !important; }
body.pg-home #hero .hero-feature-card { opacity: 1 !important; }
body.pg-home #hero .btn--white {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}
body.pg-home #hero .hero-sub--secondary { color: var(--color-text) !important; opacity: 1 !important; }

/* Hero enter overrides */
.pg-home .hero-enter, .pg-home #hero .hero-enter {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --- Scroll reveal animations --- */
.pg-home .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pg-home .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.pg-home .reveal--delay-1 { transition-delay: 80ms; }
.pg-home .reveal--delay-2 { transition-delay: 160ms; }
.pg-home .reveal--delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .pg-home .reveal, .pg-home .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Hover animations --- */
@media (hover: hover) {
  .pg-home .pillar { transition: background 300ms ease; }
  .pg-home .pillar:hover { background: rgba(37,99,235,0.03); }
  .pg-home .why-card { transition: background 300ms ease; }
  .pg-home .why-card:hover { background: rgba(37,99,235,0.03) !important; }
  .pg-home .principle { transition: background 300ms ease; }
  .pg-home .principle:hover { background: rgba(37,99,235,0.03); }
  .pg-home .q2d-step { transition: background 250ms ease; }
  .pg-home .q2d-step:hover { background: #F8F9FC; }
  .pg-home .os-comparison__item { transition: transform 300ms ease; }
  .pg-home .os-comparison__item:hover { transform: translateY(-2px); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pg-home .hero-content { padding: 0 28px; max-width: 100%; }
  .pg-home #hero-headline { font-size: 40px !important; }
  .pg-home .pillars { grid-template-columns: 1fr !important; }
  .pg-home .pillar { border-right: none !important; }
  .pg-home .stats-strip { grid-template-columns: 1fr 1fr; }
  .pg-home .q2d-step { grid-template-columns: 72px 1fr !important; }
  .pg-home .q2d-step__number { display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; padding: 16px 0 !important; }
  .pg-home .q2d-step__title { border-left: none; border-right: none; grid-column: 2; }
  .pg-home .q2d-step__desc { grid-column: 1 / -1; padding-top: 0; }
  .pg-home .q2d-step__tag { grid-column: 1 / -1; justify-self: start; margin: 0 0 12px 40px; }
  .pg-home .agent-panel { margin: 0 -12px; max-width: calc(100% + 24px); }
  .pg-home .agent-panel__body { grid-template-columns: 1fr; }
  .pg-home .logo-strip { padding: 18px 28px; gap: 16px; }
  .pg-home .footer__grid { grid-template-columns: 1fr 1fr !important; }
  .pg-home .hero-cta { flex-direction: column !important; }
}
@media (max-width: 768px) {
  .pg-home .nav-links { background: var(--color-bg); }
  .pg-home .nav-links a { color: var(--color-text) !important; }
  .pg-home .why-grid { grid-template-columns: 1fr 1fr !important; }
  .pg-home #audience .why-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .pg-home #hero-headline { font-size: clamp(28px, 7vw, 40px) !important; }
  .pg-home .hero-content { padding: 0 20px; }
  .pg-home #hero { padding-top: calc(var(--nav-h, 64px) + 48px) !important; padding-bottom: 40px !important; }
  .pg-home .hero-sub { font-size: 14px !important; }
  .pg-home .why-grid { grid-template-columns: 1fr !important; }
  .pg-home .stats-strip { grid-template-columns: 1fr; }
  .pg-home .stats-strip__cell { padding: 24px 20px; }
  .pg-home .logo-strip { padding: 16px 20px; }
  .pg-home .section--cta { padding: 48px 20px !important; }
  .pg-home .footer__grid { grid-template-columns: 1fr !important; }
  .pg-home .q2d-step { grid-template-columns: 1fr !important; }
  .pg-home .q2d-step__number { text-align: center !important; padding: 16px 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; }
  .pg-home .q2d-step__title { border: none; padding: 6px 20px; }
  .pg-home .q2d-step__desc { padding: 6px 20px 16px; }
}


/* =========================================================
   HOMEPAGE ANIMATIONS
   ========================================================= */

/* Hero entrance sequence */
.hero-dark__eyebrow {
  animation: fadeInDown 0.6s ease both;
  animation-delay: 0.1s;
}
.hero-dark__h1 {
  animation: fadeInDown 0.7s ease both;
  animation-delay: 0.25s;
}
.hero-dark__sub {
  animation: fadeInDown 0.6s ease both;
  animation-delay: 0.4s;
}
.hero-dark__cta {
  animation: fadeInDown 0.6s ease both;
  animation-delay: 0.55s;
}
.hero-dark__stats {
  animation: fadeInDown 0.6s ease both;
  animation-delay: 0.7s;
}

/* Right column cards stagger in */
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.hero-dark__card:nth-child(1) { animation: cardSlideIn 0.5s ease both; animation-delay: 0.3s; }
.hero-dark__card:nth-child(2) { animation: cardSlideIn 0.5s ease both; animation-delay: 0.45s; }
.hero-dark__card:nth-child(3) { animation: cardSlideIn 0.5s ease both; animation-delay: 0.6s; }

/* Agent strip reveal */
@keyframes stripReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-dark__strip { animation: stripReveal 0.6s ease both; animation-delay: 0.8s; }

/* Logo strip */
.logo-strip--light { animation: stripReveal 0.5s ease both; animation-delay: 0.95s; }

/* Feature card hover enhancements */
.hero-dark__card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease !important;
}
.hero-dark__card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.07) !important;
  border-color: #C7D7FD !important;
}

/* Stats strip hover */
.pg-home .stats-strip__cell {
  transition: background 0.3s ease;
}
.pg-home .stats-strip__cell:hover {
  background: rgba(255,255,255,0.03);
}
.pg-home .stats-strip__value .accent {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pg-home .stats-strip__cell:hover .accent {
  transform: scale(1.15);
}

/* Pipeline row hover highlight */
.pg-home .hw-pipeline__row {
  transition: background 0.2s ease, transform 0.2s ease;
}
.pg-home .hw-pipeline__row:hover {
  background: rgba(37,99,235,0.03);
}

/* Testimonial card hover */
.pg-home .cr-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.pg-home .cr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Implementation system row hover */
.pg-home .impl-system {
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.pg-home .impl-system:hover {
  background: rgba(255,255,255,0.03);
  padding-left: 20px;
}

/* CTA section gradient animation */
.pg-home .cta-bar, .pg-home [class*="cta-section"] {
  background-size: 200% 200%;
  animation: ctaGradientShift 8s ease infinite;
}

/* Why Sorraia feature card hover */
.pg-home .ws-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.pg-home .ws-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

@media (prefers-reduced-motion: reduce) {
  .hero-dark__eyebrow, .hero-dark__h1, .hero-dark__sub,
  .hero-dark__cta, .hero-dark__stats, .hero-dark__card,
  .hero-dark__strip, .logo-strip--light {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
