@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ==================== DESIGN TOKENS ==================== */
:root {
  --bg-1: #0b1220;
  --bg-2: #0f172a;
  --bg-3: #1e293b;
  --txt-1: #e2e8f0;
  --txt-2: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --border: #334155;
  --shadow: rgba(0,0,0,0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  
  /* Master Layout System */
  --max-w: 1200px;
  --container-padding-mobile: 0.5rem;
  --container-padding-desktop: 2rem;
}

/* ==================== BASE STYLES ==================== */
html {
  scroll-behavior: smooth;
}

.theme-dark {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--txt-1);
  background:
    radial-gradient(1200px 600px at 10% -10%, #0b2447 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #1d2b53 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.theme-dark * { box-sizing: border-box; }
.theme-dark img { max-width: 100%; height: auto; }
.theme-dark a { color: var(--txt-1); text-decoration: none; }
.theme-dark a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--txt-1); }
p, li { color: var(--txt-2); }
.lead { font-size: 1.15rem; color: var(--txt-2); }

/* ==================== ACCESSIBILITY ==================== */
/* Skip link - hidden until keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==================== MASTER LAYOUT SYSTEM ==================== */
/* This establishes the header as the master layout reference.
   All sections follow the same max-width and padding for perfect alignment. */

.site-container,
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
}

/* Desktop: Increase horizontal padding */
@media (min-width: 1024px) {
  .site-container,
  .container {
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
  }
}

/* Override Tailwind's .px-* when used with .container */
.container.px-4,
.container.px-6 {
  padding-left: var(--container-padding-mobile) !important;
  padding-right: var(--container-padding-mobile) !important;
}

@media (min-width: 1024px) {
  .container.px-4,
  .container.px-6 {
    padding-left: var(--container-padding-desktop) !important;
    padding-right: var(--container-padding-desktop) !important;
  }
}

/* ==================== TYPOGRAPHY SCALE ====================
   Defines a consistent, site-wide font-size hierarchy for
   headings, subtitles, and body text. Ensures section titles 
   (h2) always appear larger than internal element titles (h3).
=================================================================== */
:root {
  /* Type scale (desktop base) */
  --font-h1: clamp(2.8rem, 5vw, 3.5rem);  /* Hero / main titles */
  --font-h2: clamp(2rem, 3.5vw, 2.75rem); /* Section titles */
  --font-h3: clamp(1.4rem, 2.2vw, 1.75rem); /* Pillar/feature titles */
  --font-body-lg: 1.125rem;               /* Large body text / lead */
  --font-body: 1rem;                      /* Default body text */
  --font-body-sm: 0.9rem;                 /* Small / secondary text */
}

/* Apply global heading hierarchy */
h1 { font-size: var(--font-h1); font-weight: 700; line-height: 1.1; }
h2 { font-size: var(--font-h2); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: var(--font-h3); font-weight: 600; line-height: 1.3; margin-bottom: 0.75rem; }
p, li { font-size: var(--font-body); line-height: 1.6; }
.lead { font-size: var(--font-body-lg); line-height: 1.6; }

/* Ensure hero subtitles and pillar body respect scale */
[data-ui="hero"] p,
.value-pillars-section p {
  font-size: var(--font-body-lg);
  color: var(--txt-2);
}



/* ==================== HEADER ==================== */
[data-ui="header"] {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-link {
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link img {
  flex-shrink: 0;
}

[data-ui="header"] .nav-link {
  color: var(--txt-1);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
}

[data-ui="header"] .nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--txt-1);
}

[data-ui="header"] .btn-primary { 
  margin-left: .5rem; 
}

#site-name {
  color: #e2e8f0 !important;
}

/* Header Three-Column Layout (Desktop) */
@media (min-width: 768px) {
  [data-ui="header"] nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
  }

  [data-ui="header"] .logo-link {
    justify-self: start;
  }

  [data-ui="header"] #nav-links {
    justify-self: center;
    display: flex !important;
    gap: 2rem;
    align-items: center;
  }

  [data-ui="header"] #nav-cta {
    justify-self: end;
    display: flex !important;
  }
}

/* Mobile Header: Logo left, Hamburger right */
@media (max-width: 767px) {
  [data-ui="header"] nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  /* Keep mobile menu full width below */
  [data-ui="header"] #mobile-menu {
    width: 100%;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  z-index: 10;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #0c1a2e 0%, #0f243c 100%);
}

[data-ui="hero"] {
  background:
    radial-gradient(1200px 800px at 50% -20%, rgba(59,130,246,0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0c1a2e 0%, #0f243c 100%);
  color: var(--txt-1);
  padding: var(--space-6) var(--space-3);
}

[data-ui="hero"] h1 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 18px rgba(59,130,246,.25);
}

[data-ui="hero"] p { 
  color: var(--txt-2); 
}

/* Center hero titles on desktop for all pages */
.hero-section,
.hero-section .container,
.hero-section .max-w-4xl {
  text-align: center;
}

.hero-section #hero-title,
.hero-section h1.hero-title,
.hero-section h1 {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure hero wrapper doesn't fight centering */
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-section .max-w-4xl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-section #hero-subtitle,
.hero-section [data-ui="hero"] p,
#hero-subtitle {
  text-align: center !important;
  max-width: 100%;
  margin-top: 1rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: var(--txt-2);
  line-height: 1.5;
}

/* Section Title Plain White (same as "Our Story") */
.section-title-plain {
  color: var(--txt-1);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.section-title-plain.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title-plain em {
  font-style: italic;
}

#loopWord {
  display: inline-block;
  transition: all 0.6s ease-in-out;
  line-height: 1.3;
  padding-bottom: 0.1em;
}

.word-grow {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-onboard {
  background: linear-gradient(135deg, #84cc16 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-activate {
  background: linear-gradient(135deg, #3b82f6 0%, #d946ef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-engage {
  background: linear-gradient(135deg, #a855f7 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-earn {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-refer {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out forwards;
}

.fade-out {
  animation: fadeOut 0.6s ease-in-out forwards;
}

/* ==================== BUTTONS ==================== */
.btn-primary, .btn-secondary, button, .cta, .btn {
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: .8rem 1.4rem;
  transition: all .2s ease;
}

.btn-primary, .cta, button.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(59,130,246,.35);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(139,92,246,.35);
  color: #ffffff !important;
}

.btn-secondary {
  background: transparent;
  color: var(--txt-1);
  border: 1px solid var(--border);
}

.btn-secondary:hover { 
  background: rgba(255,255,255,0.06); 
}

#cta-primary {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
  color: #ffffff !important;
  padding: 0.9rem 1.8rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

#cta-primary:hover {
  background: linear-gradient(90deg, #60a5fa, #a78bfa) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

#cta-secondary {
  background: none !important;
  border: none !important;
  color: #8ab4f8 !important;
  font-weight: 500 !important;
  font-style: italic !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  padding: 0 !important;
  transition: color 0.3s ease !important;
  box-shadow: none !important;
}

#cta-secondary:hover {
  color: #a5b4fc !important;
  text-decoration: underline !important;
  background: none !important;
  transform: none !important;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
}

/* ==================== METRICS SECTION ==================== */
.metrics-section {
  background: var(--bg-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metric-number {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  min-height: 4.5rem;
}

.metric-label {
  font-size: 1.125rem;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ==================== CONVERSION BANNER ==================== */
#conversion-banner {
  background: linear-gradient(180deg, #111b35 0%, #18284a 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0;
  margin-bottom: 0;
  padding: 4rem 1rem;
}

#conversion-banner h2 {
  font-size: 3rem;
  line-height: 1.3;
}

#conversion-banner p {
  margin-top: 1.2rem;
  white-space: pre-line;
  line-height: 1.4;
  text-align: center;
}

#conversion-banner .btn-primary {
  margin-top: 1.8rem;
}

#conversion-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(67, 89, 255, 0.4);
}

/* ==================== VALUE PILLARS SECTION ==================== */
.value-pillars-section {
  background: var(--bg-2);
  position: relative;
}

.value-pillars-subtitle {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.desktop-break {
  display: none;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6a6bf6;
  font-weight: bold;
  font-size: 1rem;
}

.pillar-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2rem 0;
}

.pillar-split:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 4rem;
}

.pillar-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-content {
  padding: 1rem 0;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== TECHNOLOGY STACK SECTION ==================== */
.tech-stack-section {
  background: var(--bg-1);
  overflow: hidden;
}

.tech-logos-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.tech-logo {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--txt-2);
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-logo:hover {
  color: var(--txt-1);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* ==================== CARDS ==================== */
.feature-card, .service-card, .post-card, .card, .feature, .service-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 10px 24px var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover, .service-card:hover, .post-card:hover, .card:hover {
  transform: translateY(-3px);
  border-color: rgba(59,130,246,.6);
  box-shadow: 0 16px 36px rgba(59,130,246,.2);
}

.feature-card h3, .service-card h3, .post-card h3 { 
  color: var(--txt-1); 
}

.feature-card p, .service-card p, .post-card p { 
  color: var(--txt-2); 
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  margin: 0;
}

/* ==================== FOOTER ==================== */
[data-ui="footer"] {
  background: #0b1220;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--txt-2);
  padding: var(--space-5) var(--space-3);
  text-align: center;
}

[data-ui="footer"] a { 
  color: var(--txt-2); 
}

[data-ui="footer"] a:hover { 
  color: var(--txt-1); 
}

/* ==================== UTILITY CLASSES ==================== */
section { 
  padding: var(--space-6) var(--space-3); 
}

.grid-auto {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.divider { 
  height: 1px; 
  background: rgba(255,255,255,0.06); 
  margin: var(--space-5) 0; 
}

.spacious { 
  padding-top: var(--space-6); 
  padding-bottom: var(--space-6); 
}

/* ==================== DESKTOP (769px+) ==================== */
@media (min-width: 769px) {
  .desktop-break {
    display: inline;
  }

  #hero-title {
    max-width: 850px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.15;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.015em;
    word-spacing: 0.02em;
  }

  [data-ui="hero"] .flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem !important;
    margin-top: 2rem !important;
  }
}

/* ==================== MOBILE (max-width: 768px) ==================== */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto !important;
    padding: 3rem 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  [data-ui="hero"] .max-w-4xl {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #hero-title {
    font-size: clamp(2rem, 8vw, 2.25rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  #hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
  }

  /* Keep CTA button centered */
  [data-ui="hero"] .flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-top: 0 !important;
  }

  #cta-primary {
    width: auto !important;
    margin: 0 !important;
  }

  [data-ui="header"] {
    padding-right: var(--container-padding-mobile) !important;
    padding-left: var(--container-padding-mobile) !important;
  }

  nav[class*="px-"] {
    padding-right: var(--container-padding-mobile) !important;
    padding-left: var(--container-padding-mobile) !important;
  }

  [data-ui="header"] .flex {
    justify-content: space-between !important;
    align-items: center !important;
  }

  [data-ui="header"] button {
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  [data-ui="header"] #mobile-menu {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  [data-ui="header"] #mobile-menu a {
    display: block !important;
    text-align: center !important;
    padding: 0.75rem 0 !important;
    width: 100%;
  }

  [data-ui="header"] #mobile-menu .btn-primary {
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  main > section {
    padding-inline: var(--container-padding-mobile) !important;
    margin-inline: 0 !important;
  }

  main > section > .container,
  main > section > div:first-child {
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    max-width: 100% !important;
  }

  main > section .grid,
  main > section .grid-auto {
    padding-inline: 0 !important;
    margin-inline: 0 !important;
  }

  .feature-card,
  .service-card,
  .post-card,
  .card {
    width: 100%;
    box-sizing: border-box !important;
  }

  .metrics-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: start;
  }

  .metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .metric-number {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: -1.75rem;
    font-weight: 700;
  }

  .metric-label {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
  }

  #conversion-banner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #conversion-banner h2 {
    font-size: 1.9rem;
    line-height: 1.2;
    max-width: 17ch;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    word-break: normal;
  }

  #conversion-banner p {
    font-size: 1rem;
  }

  .pillar-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .pillar-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .pillar-image img {
    max-width: 90%;
    height: auto;
  }

  .pillar-content {
    text-align: center;
    padding: 0 1rem;
  }

  .pillar-content h3 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin: 0 auto 1rem !important;
    max-width: 15ch;
  }

  .pillar-content p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: center;
    margin-top: 1rem;
  }

  /* Ensure consistent order on mobile */
  .pillar-split.pillar-right .pillar-image {
    order: 1;
  }

  .pillar-split.pillar-right .pillar-content {
    order: 2;
  }

  .value-pillars-section {
    padding-top: 1.5rem !important;
    padding-bottom: 3.75rem !important;
  }

  .tech-stack-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .tech-stack-section h2 {
    line-height: 1.3 !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .service-card {
    padding: 1.5rem !important;
  }

  .service-card h3 {
    font-size: 1.5rem !important;
  }

  .service-card p {
    font-size: 0.95rem !important;
  }

  .tech-logos {
    gap: 1rem;
  }

  .tech-logo {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}


/* ==================== DESKTOP ADJUSTMENTS (769px+) ====================
   Reduces hero section height and tightens metrics spacing on desktop
   for a more compact above-the-fold layout.
========================================================================= */
@media (min-width: 769px) {
  .hero-section {
    min-height: 45vh !important;
  }

  .metrics-section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .metrics-grid {
    gap: 2rem !important;
    align-items: center;
  }

  .metric-number {
    margin-bottom: 0.125rem !important;
  }

  .pillar-content p {
    margin-top: 1rem;
  }
}





/* ==================== GLOBAL TYPOGRAPHY ENFORCEMENT ====================
   Applies the new type scale across hero, pillars, and all sections 
   regardless of custom IDs or classes.
========================================================================= */

/* HERO TITLE & SUBTITLE */
#hero-title, 
[data-ui="hero"] h1 {
  font-size: var(--font-h1) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

#hero-subtitle, 
[data-ui="hero"] p {
  font-size: var(--font-body-lg) !important;
  color: var(--txt-2) !important;
  line-height: 1.5 !important;
}

/* SECTION TITLES (e.g., Data in Motion) */
.value-pillars-section h2, 
section h2 {
  font-size: var(--font-h2) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 0.75rem !important;
}

/* INTERNAL ELEMENT TITLES (e.g., h3 inside pillars or cards) */
.value-pillars-section h3, 
.feature-card h3, 
.service-card h3 {
  font-size: var(--font-h3) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

/* SECTION BODY TEXT */
.value-pillars-section p, 
section p {
  font-size: var(--font-body) !important;
  color: var(--txt-2) !important;
  line-height: 1.6 !important;
}


/* ==================== FOOTER GLOBAL STYLING ====================
   Establishes consistent vertical rhythm, ensuring the footer has
   balanced padding and aligns visually with other site sections.
=================================================================== */
[data-ui="footer"] {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
  background-color: var(--bg-1);
  color: var(--txt-1);
}

/* ==================== FOOTER BRAND ALIGNMENT ====================
   Aligns logo and brand text horizontally and centers them visually.
   Uses a subtle bottom margin to correct optical imbalance between
   the logo and the text baseline.
=================================================================== */
.footer-logo-group {
  display: flex;
  align-items: center;        /* vertical alignment */
  justify-content: center;    /* horizontal centering on mobile */
  gap: 0.65rem;               /* space between logo and name */
}

.footer-logo {
  height: 1.5rem !important;  /* consistent size with header logo */
  width: auto !important;
  object-fit: contain;
  margin-bottom: 0.73rem !important; /* lifts logo into alignment */
}

.footer-brand {
  line-height: 1;
  display: flex;
  align-items: center;
  font-size: 1.05rem;          /* matches header proportions */
  font-weight: 700;
  color: var(--txt-1);
}

/* ==================== FOOTER TEXT & LINK STYLING ====================
   Defines hierarchy and spacing for link groups and partner info.
=================================================================== */
[data-ui="footer"] h4 {
  font-weight: 600;
  color: var(--txt-1);
  margin-bottom: 1rem;
}

[data-ui="footer"] a {
  color: var(--txt-2);
  transition: color 0.2s ease;
}

[data-ui="footer"] a:hover {
  color: var(--accent);
}

/* ==================== FOOTER DIVIDER & COPYRIGHT ====================
   Provides clear separation between content and bottom text,
   maintaining balanced spacing.
=================================================================== */
[data-ui="footer"] .border-t {
  margin-top: 3rem !important;
  padding-top: 1.5rem !important;
  border-color: var(--border);
}

#footer-text {
  font-size: 0.9rem;
  color: var(--txt-2);
}

/* ==================== RESPONSIVE OPTIMIZATION ====================
   Adjusts footer proportions for smaller screens, preserving 
   readability and spacing harmony.
=================================================================== */
@media (max-width: 768px) {
  [data-ui="footer"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  [data-ui="footer"] .grid {
    gap: 4rem !important;
  }

  .footer-logo {
    height: 1.35rem !important;
    margin-bottom: 0 !important;
  }

  .footer-logo-group {
    justify-content: center;
    align-items: center;
  }

  .footer-brand {
    margin-bottom: 0 !important;
  }

  #footer-text {
    font-size: 0.8rem;
  }
}




/* ==================== HERO CENTER + STABLE TEXT ====================
   Keeps hero compact (50vh) and ensures subtitle + CTA stay perfectly
   centered while headline words change dynamically.
=================================================================== */
[data-ui="hero"] {
  min-height: 50vh !important;           /* compact height */
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-ui="hero"] .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 2rem;
}

/* lock text block height to prevent vertical jumps */
.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 9rem; /* holds space for title + subtitle regardless of word width */
}

#hero-title {
  margin: 0 0 0.75rem 0 !important;
  text-align: center !important;
}

#hero-subtitle {
  margin: 0 0 1.5rem 0 !important;
  text-align: center !important;
}

[data-ui="hero"] .flex {
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

/* ==================== LINKEDIN WORDMARK ====================  */
.linkedin-wordmark {
  display: inline-block;
  transition: all 0.3s ease;
}

.linkedin-wordmark:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.linkedin-wordmark svg {
  width: 24px;
  height: 20px;
}

/* ==================== FOOTER PARTNER LOGOS ====================  */
.footer-partner-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-partner-logos {
    justify-content: flex-start;
  }
}

.footer-partner-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2) opacity(0.6);
  transition: all 0.3s ease;
}

.footer-partner-logo:hover {
  filter: grayscale(0%) brightness(1) opacity(0.9);
}

/* ==================== PARTNERS SECTION ====================  */
.partners-section {
  background: var(--bg-2);
  padding: 3rem 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.partner-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.partner-logo-wrapper:hover {
  transform: translateY(-4px);
}

.partner-logo {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%) brightness(0.8) opacity(0.7);
  transition: all 0.3s ease;
}

.partner-logo-wrapper:hover .partner-logo {
  filter: grayscale(0%) brightness(1) opacity(1);
}

.partner-logo.monday {
  max-height: 80px;
}

.partner-logo.customerio {
  max-height: 60px;
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .partner-logo.monday {
    max-height: 70px;
  }
  
  .partner-logo.customerio {
    max-height: 50px;
  }
}
