/* ============================================================
   MOLVERN LABS — Home Page Styles
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-navy-deep);
  overflow: hidden;
  padding-top: 72px;
  /* nav clearance */
  box-sizing: border-box;
}



.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 60% 80%, rgba(96, 165, 250, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-navy) 50%, var(--color-navy-deep) 100%);
}

.hero .radial-glow {
  opacity: 0.55;
}


.hero__content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  max-width: 860px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-pad);
  perspective: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--text-label-md);
  font-weight: 500;
  color: var(--color-blue-light);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero__badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero__title {
  font-family: var(--font-headline);
  font-size: var(--text-display-xl);
  font-weight: var(--text-display-xl-weight);
  line-height: var(--text-display-xl-lh);
  letter-spacing: var(--text-display-xl-ls);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.hero__title-accent {
  display: block;
}

.hero__title-accent .hero__word {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-blue-light); /* fallback */
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg-lh);
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

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

.hero__trust {
  margin-top: auto;
  padding: var(--space-md) var(--container-pad) var(--space-xl);
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: var(--z-base);
}

.hero__trust .trust-row--center {
  flex-wrap: nowrap;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__trust .trust-badge {
  white-space: nowrap;
}

.hero__trust .trust-badge__value {
  font-size: var(--text-heading-md);
  font-weight: 700;
  color: var(--color-white);
}

.hero__trust .trust-badge__label {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-body-sm);
}

/* ── Services Section ─────────────────────────────────────── */
.services-section {
  background-color: var(--color-white);
  position: relative;
}




/* ── Why Section ──────────────────────────────────────────── */
.why-section {
  background-color: var(--color-navy-light);
  position: relative;
}

/* ── Philosophy Section (How We Think) ───────────────────── */
.philosophy-section {
  background-color: var(--color-navy-deep);
  position: relative;
}

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

.philosophy-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid rgba(59, 130, 246, 0.12);
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.philosophy-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.08), var(--shadow-lg);
  transform: translateY(-4px);
}

.philosophy-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: rgba(59, 130, 246, 0.08);
  color: var(--color-blue-light);
}

.philosophy-card__icon svg {
  width: 28px;
  height: 28px;
}

.philosophy-card__title {
  font-family: var(--font-headline);
  font-size: var(--text-heading-sm);
  font-weight: var(--text-heading-sm-weight);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.philosophy-card__description {
  color: var(--color-gray-400);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md-lh);
  flex: 1;
}

.philosophy-card__applied {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.philosophy-card__applied-label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
  font-weight: 600;
}

.philosophy-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.philosophy-tag {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  transition: all var(--duration-normal) var(--ease-out);
}

.philosophy-card:hover .philosophy-tag {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #dbeafe;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

/* Light theme overrides for philosophy tags */
[data-theme="light"] .philosophy-card__applied {
  border-top-color: var(--color-border);
}

[data-theme="light"] .philosophy-card__applied-label {
  color: var(--color-gray-500);
}

[data-theme="light"] .philosophy-tag {
  color: var(--color-blue);
  background: var(--color-blue-subtle);
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .philosophy-card:hover .philosophy-tag {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--color-blue);
  color: var(--color-blue-hover);
}

.philosophy-footer {
  text-align: center;
  margin-top: var(--space-3xl);
}

.philosophy-footer__text {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ── Founding Partners Section ───────────────────────────── */
.founding-section {
  background-color: var(--color-navy-mid);
  position: relative;
}

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

.founding-slot {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  transition: border-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.founding-slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.founding-slot--available {
  border-color: rgba(59, 130, 246, 0.45);
  background: radial-gradient(circle at center top, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.02) 70%);
}

.founding-slot--available:hover {
  border-color: var(--color-blue);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), var(--shadow-lg);
}

.founding-slot__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: var(--text-label-md);
  font-weight: var(--text-label-md-weight);
  letter-spacing: var(--text-label-md-ls);
  text-transform: uppercase;
  color: var(--color-blue-light);
  margin-bottom: var(--space-lg);
}

.founding-slot__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: slotPulse 2s ease-in-out infinite;
}

@keyframes slotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

.founding-slot__number {
  display: block;
  font-family: var(--font-headline);
  font-size: var(--text-display-lg);
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.founding-slot__label {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  color: var(--color-gray-400);
}

/* Benefits */
.founding-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.founding-benefit {
  text-align: center;
  padding: var(--space-xl);
}

.founding-benefit__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-blue-light);
}

.founding-benefit__icon svg {
  width: 24px;
  height: 24px;
}

.founding-benefit__title {
  font-family: var(--font-headline);
  font-size: var(--text-heading-sm);
  font-weight: var(--text-heading-sm-weight);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.founding-benefit__description {
  color: var(--color-gray-400);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md-lh);
}

/* CTA */
.founding-cta {
  text-align: center;
}

.founding-cta__note {
  margin-top: var(--space-md);
  font-size: var(--text-body-sm);
  color: var(--color-gray-400);
}

/* Light Theme Overrides */
[data-theme="light"] .founding-section {
  background-color: var(--color-off-white);
}

[data-theme="light"] .founding-slot {
  background: var(--color-white);
  border-color: var(--color-border);
}

[data-theme="light"] .founding-slot--available {
  border-color: var(--color-blue);
  background: var(--color-white);
}

[data-theme="light"] .founding-slot__number {
  color: var(--color-navy);
}

[data-theme="light"] .founding-slot__label {
  color: var(--color-gray-500);
}

[data-theme="light"] .founding-slot__status {
  color: var(--color-blue);
}

[data-theme="light"] .founding-benefit__title {
  color: var(--color-navy);
}

[data-theme="light"] .founding-benefit__description {
  color: var(--color-gray-500);
}

[data-theme="light"] .founding-cta__note {
  color: var(--color-gray-500);
}

[data-theme="light"] .founding-section .btn--outline {
  color: var(--color-navy);
  border-color: var(--color-border);
}

[data-theme="light"] .founding-section .btn--outline:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background-color: var(--color-blue-subtle);
}

@media (max-width: 768px) {
  .founding-slots {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
  }

  .founding-benefits {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}



/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background-color: var(--color-navy-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(80px);
}

.cta-section__title {
  font-family: var(--font-headline);
  font-size: var(--text-display-md);
  font-weight: var(--text-display-md-weight);
  line-height: var(--text-display-md-lh);
  letter-spacing: var(--text-display-md-ls);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-section__subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-gray-400);
  margin-bottom: var(--space-3xl);
  position: relative;
}

.cta-section .contact-grid {
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ── Process Section (Services Page) ──────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line between steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg,
      var(--color-blue) 0%,
      var(--color-blue-light) 50%,
      var(--color-blue) 100%);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-navy-deep);
  border: 2px solid var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-headline);
  font-size: var(--text-heading-md);
  font-weight: 700;
  color: var(--color-blue);
}

.process-step__title {
  font-family: var(--font-headline);
  font-size: var(--text-heading-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.process-step__description {
  color: var(--color-gray-400);
  font-size: var(--text-body-sm);
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .process-grid::before {
    display: none;
  }
}

/* ── Service Detail (Services Page) ───────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse>* {
  direction: ltr;
}

.service-detail__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.service-detail__label {
  font-family: var(--font-label);
  font-size: var(--text-label-md);
  font-weight: var(--text-label-md-weight);
  letter-spacing: var(--text-label-md-ls);
  text-transform: uppercase;
  color: var(--color-blue);
}

.service-detail__title {
  font-family: var(--font-headline);
  font-size: var(--text-heading-lg);
  font-weight: var(--text-heading-lg-weight);
  line-height: var(--text-heading-lg-lh);
}

.service-detail__description {
  color: var(--color-gray-500);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg-lh);
}

.service-detail__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-detail__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-body-md);
  color: var(--color-gray-600);
}

.service-detail__feature svg {
  width: 18px;
  height: 18px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.service-detail__visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark variant */
.section--dark .service-detail__title {
  color: var(--color-white);
}

.section--dark .service-detail__description {
  color: var(--color-gray-400);
}

.section--dark .service-detail__feature {
  color: var(--color-gray-400);
}

.section--dark .service-detail__visual {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-dark);
}

@media (max-width: 768px) {

  .service-detail,
  .service-detail--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-xl);
  }
}

/* ── Hero Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    padding-top: 64px;
  }

  .hero__content {
    padding: var(--space-lg) var(--container-pad) var(--space-md);
  }

  .hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-sm);
  }

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

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

  .hero__trust {
    padding-top: var(--space-md);
  }

  .hero__trust .trust-row--center {
    padding: var(--space-md) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 56px;
  }

  .hero__content {
    padding: var(--space-md) var(--container-pad) var(--space-sm);
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust .trust-row--center {
    padding: var(--space-sm) var(--space-md);
  }

  .services-section::before {
    top: -80px;
    height: 80px;
  }
}

/* ── Short viewport (laptop screens ~768px height) ───────────── */
@media (max-height: 800px) {
  .hero {
    padding-top: 60px;
  }

  .hero__trust {
    padding: var(--space-sm) var(--container-pad) var(--space-md);
  }
}

/* ── Very short viewport (≤650px height) ─────────────────────── */
@media (max-height: 650px) {
  .hero__title {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  }

  .hero__subtitle {
    margin-bottom: var(--space-sm);
  }

  .hero__trust {
    padding: var(--space-xs) var(--container-pad) var(--space-sm);
  }
}