/* ============================================
   APEX Strategy — Section Styles
   Hero, Services, Process, Approach, CTA, Footer
   ============================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) var(--space-lg) var(--space-3xl);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero__glow--primary {
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
}

.hero__glow--secondary {
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: #5e6ad2;
  opacity: 0.08;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__badge {
  margin-bottom: var(--space-xl);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Grid Dot Pattern (behind hero) ── */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
}

.hero__grid-inner {
  position: absolute;
  inset: -20px;
  background-image:
    radial-gradient(circle 1px at center, var(--text-quaternary) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Logos (Social Proof) ── */
.logos {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.logos__label {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.logos__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  opacity: 0.4;
}

.logos__item {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  color: var(--text-secondary);
}

/* ── Services ── */
.services {
  padding: var(--space-4xl) 0;
}

.services__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.services__label {
  margin-bottom: var(--space-md);
}

.services__title {
  margin-bottom: var(--space-lg);
}

.services__subtitle {
  color: var(--text-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.services__image {
  margin-top: var(--space-3xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.services__image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.services__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 40%),
              linear-gradient(to bottom, var(--bg-primary) 0%, transparent 30%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .services__image img {
    height: 200px;
  }
}

/* ── Process ── */
.process {
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.process__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.process__label {
  margin-bottom: var(--space-md);
}

.process__title {
  margin-bottom: var(--space-lg);
}

.process__subtitle {
  color: var(--text-secondary);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: var(--border-default);
}

.process__step {
  text-align: center;
  position: relative;
}

.process__step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: var(--bg-elevated);
  position: relative;
  z-index: 1;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.process__step:hover .process__step-number {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.process__step-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.process__step-desc {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  line-height: 1.55;
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .process__steps::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process__step {
    text-align: left;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-md);
    align-items: start;
  }
  .process__step-number {
    margin: 0;
    grid-row: 1 / 3;
  }
  .process__step-desc {
    max-width: none;
    margin: 0;
  }
}

/* ── Strategic Approach ── */
.approach {
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.approach__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.approach__split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.approach__split-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.approach__split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(138, 143, 255, 0.08) 0%, transparent 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.approach__split-content {
  max-width: 500px;
}

.approach__label {
  margin-bottom: var(--space-md);
}

.approach__title {
  margin-bottom: var(--space-lg);
}

.approach__subtitle {
  color: var(--text-secondary);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.approach__pillar {
  padding: var(--space-2xl);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.approach__pillar:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.approach__pillar-num {
  font-family: var(--font-mono);
  margin-bottom: var(--space-lg);
}

.approach__pillar-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.approach__pillar-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .approach__split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .approach__split-image img {
    height: 280px;
  }
  .approach__split-content {
    max-width: none;
  }
  .approach__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ── CTA ── */
.cta {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.07;
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  margin-bottom: var(--space-lg);
}

.cta__subtitle {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__logo {
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--text-primary);
}

.footer__copy {
  width: 100%;
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-quaternary);
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
