/* =============================================
   INFERENCE STRATEGY GROUP — Main Stylesheet
   Brand: Dark navy text, purple-to-blue gradient
   ============================================= */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0f1523;
  --navy-mid:    #1a2238;
  --navy-light:  #243050;
  --purple:      #9B6DFF;
  --blue:        #3B5BDB;
  --purple-mid:  #7C5CBF;
  --blue-dark:   #2D4AB0;
  --grad:        linear-gradient(135deg, #9B6DFF 0%, #3B5BDB 100%);
  --grad-text:   linear-gradient(120deg, #9B6DFF 0%, #5b8dee 100%);
  --white:       #ffffff;
  --off-white:   #f7f8fc;
  --muted:       #8892a4;
  --border:      rgba(255,255,255,0.08);
  --border-light: rgba(15,21,35,0.1);
  --card-bg:     #131c2e;
  --section-alt: #0d1320;
  --font:        'Inter', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.25s ease;
  --shadow-card: 0 2px 24px rgba(0,0,0,0.25);
  --shadow-hover:0 8px 40px rgba(59, 91, 219, 0.2);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: #b0b9cc; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(155, 109, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(155, 109, 255, 0.45);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  color: var(--white);
}

.btn-nav {
  background: var(--grad);
  color: var(--white);
  padding: 9px 20px;
  font-size: 0.875rem;
  border-radius: 7px;
}
.btn-nav:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--white);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full { width: 100%; }

/* ── Sections ── */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--section-alt);
}

/* Light section backgrounds */
#services    { background: #ffffff; }
#who-we-serve { background: #f7f8fa; }
#approach    { background: #ffffff; }
#founder     { background: #f1f3f5; }

/* Override the global p color for light sections */
#services p, #who-we-serve p, #approach p, #contact p {
  color: #2d3748;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 30px;
  background: rgba(155, 109, 255, 0.12);
  border: 1px solid rgba(155, 109, 255, 0.2);
}

/* Section tags on light backgrounds */
#services .section-tag,
#who-we-serve .section-tag,
#approach .section-tag,
#founder .section-tag,
#contact .section-tag {
  color: #7C5CBF;
  background: #f0ebff;
  border-color: #d4c5f9;
}

.section-intro {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  color: #4a5568;
}

/* Section headings and intro text on light backgrounds */
#services h2, #services .section-intro,
#who-we-serve h2,
#approach h2, #approach .section-intro {
  color: #0f1523;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 #e2e8f0;
  padding: 12px 0;
}

.navbar.scrolled .nav-links a:not(.btn-nav) {
  color: #2d3748;
}

.navbar.scrolled .nav-links a:not(.btn-nav):hover {
  color: #0f1523;
}

.navbar.scrolled .hamburger span {
  background: #2d3748;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; }
.logo-img { height: 42px; width: auto; mix-blend-mode: lighten; }
.logo-img-sm { height: 34px; mix-blend-mode: lighten; }

.navbar.scrolled .logo-img,
.navbar.scrolled .logo-img-sm {
  mix-blend-mode: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #c8d0e0;
  transition: color var(--transition);
}
.nav-links a:not(.btn-nav):hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

/* Dot-grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(155, 109, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(155,109,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,91,219,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.hero-headline {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  color: var(--white);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #8892a4;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

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

/* Decorative chevrons */
.hero-chevrons {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(160px, 22vw, 300px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  animation: chevronFloat 6s ease-in-out infinite;
}

@keyframes chevronFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-50%) translateX(-12px); }
}

/* ============================================
   STATEMENT BAR
   ============================================ */
.statement-bar {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.statement-bar p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #c8d0e0;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.statement-bar em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #0f1523;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4a5568;
}

/* ============================================
   WHO WE SERVE
   ============================================ */
.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.client-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}

.client-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.client-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.35;
}

.client-card h3 {
  font-size: 1.3rem;
  color: #0f1523;
  margin-bottom: 14px;
}

.client-card > p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  color: #4a5568;
}

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

.client-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #2d3748;
}

.client-card ul li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  margin-top: 7px;
}

/* ============================================
   APPROACH
   ============================================ */
.approach-steps {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-step {
  display: grid;
  grid-template-columns: 2px 56px 1fr;
  gap: 0 24px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.approach-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-line {
  width: 2px;
  background: #e2e8f0;
  position: relative;
}

.approach-step:last-child .step-line {
  background: transparent;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(155, 109, 255, 0.3);
  align-self: flex-start;
}

.step-body {
  padding: 4px 0 48px;
}

.step-body h4 {
  font-size: 1.05rem;
  color: #0f1523;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.7;
}

/* ============================================
   FOUNDER
   ============================================ */
.founder-wrap {
  display: flex;
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.founder-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-photo-col {
  flex-shrink: 0;
}

.founder-photo {
  width: auto;
  height: 107px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.founder-quote-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-quote {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: #2d3748;
  line-height: 1.8;
  border: none;
  margin: 0;
  padding: 0;
  quotes: none;
}

.founder-attribution {
  font-size: 0.95rem;
  margin: 0;
}

.founder-name {
  color: #0f1523;
  font-weight: 600;
}

.founder-title {
  color: #4a5568;
  font-weight: 400;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, #1a1040 0%, #0f1a3e 100%);
  border-top: 1px solid rgba(155, 109, 255, 0.2);
  border-bottom: 1px solid rgba(59, 91, 219, 0.2);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(155, 109, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}

.cta-text h2 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.cta-text p {
  color: #8892a4;
  max-width: 500px;
  font-size: 0.95rem;
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
  background: #ffffff;
}

.contact-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-simple.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-simple h2 {
  color: #0f1523;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity var(--transition);
  letter-spacing: -0.01em;
}

.contact-email:hover {
  opacity: 0.8;
}

.contact-location {
  font-size: 0.9rem;
  color: #718096;
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--section-alt);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #4a5568;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  color: #4a5568;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.social-icon:hover {
  color: var(--purple);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge  { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-headline { animation: fadeInUp 0.6s ease 0.2s both; }
.hero-sub    { animation: fadeInUp 0.6s ease 0.35s both; }
.hero-ctas   { animation: fadeInUp 0.6s ease 0.5s both; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-chevrons {
    opacity: 0.1;
    right: -5%;
  }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 24, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 90;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger { display: flex; position: relative; z-index: 95; }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-chevrons { display: none; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .founder-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
  }

  .founder-photo {
    width: 160px;
    height: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .service-card { padding: 28px 24px; }
  .client-card  { padding: 32px 28px; }

  .cta-text h2 { font-size: 1.4rem; }
  .btn-large { padding: 14px 28px; }
}

/* ── Scroll delay for staggered animation ── */
.service-card:nth-child(1)  { transition-delay: 0.05s; }
.service-card:nth-child(2)  { transition-delay: 0.12s; }
.service-card:nth-child(3)  { transition-delay: 0.19s; }
.service-card:nth-child(4)  { transition-delay: 0.26s; }
.client-card:nth-child(1)   { transition-delay: 0.05s; }
.client-card:nth-child(2)   { transition-delay: 0.15s; }
.approach-step:nth-child(1) { transition-delay: 0.05s; }
.approach-step:nth-child(2) { transition-delay: 0.12s; }
.approach-step:nth-child(3) { transition-delay: 0.19s; }
