/* ═══════════════════════════════════════════════════════════════
   NEON BAOBAB — Style System
   Bioluminescent Tech aesthetic on deep void canvas
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --bg:           #0D0F1A;
  --bg-alt:       #141828;
  --bg-card:      #181D30;
  --neon:         #39FF14;
  --teal:         #00C9A7;
  --neon-50:      rgba(57, 255, 20, 0.5);
  --neon-20:      rgba(57, 255, 20, 0.2);
  --neon-10:      rgba(57, 255, 20, 0.1);
  --neon-05:      rgba(57, 255, 20, 0.05);
  --text:         rgba(255, 255, 255, 0.88);
  --text-heading: #FFFFFF;
  --text-muted:   #6B7280;
  --text-dim:     rgba(255, 255, 255, 0.4);
  --font:         'Outfit', system-ui, -apple-system, sans-serif;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --container:    1140px;
  --glow:         0 0 12px var(--neon-50), 0 0 40px var(--neon-20);
  --glow-lg:      0 0 15px var(--neon-50), 0 0 40px var(--neon-20), 0 0 80px var(--neon-10);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--neon);
  color: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Typography ─── */
.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1rem;
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  padding: 0.875rem 2.25rem;
  font-size: 0.9375rem;
  background: var(--neon);
  color: var(--bg);
  letter-spacing: 0.02em;
}

.btn--primary:hover {
  box-shadow: var(--glow-lg);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2.75rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  background: var(--neon);
  color: var(--bg);
}

.btn--sm:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader__svg {
  width: 100px;
  height: 100px;
}


/* ═══════════════════════════════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}

.scroll-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--neon), var(--teal));
  transform-origin: left;
  transform: scaleX(0);
  animation: scrollFill linear forwards;
  animation-timeline: scroll(root);
}

.scroll-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--neon), var(--teal));
  transform-origin: left;
  transform: scaleX(0);
  filter: blur(4px);
  opacity: 0.5;
  animation: scrollFill linear forwards;
  animation-timeline: scroll(root);
}

@keyframes scrollFill {
  to { transform: scaleX(1); }
}

/* JS fallback */
.scroll-progress--js::after,
.scroll-progress--js::before {
  animation: none;
  width: var(--scroll, 0%);
  transform: none;
  transition: width 60ms ease-out;
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(13, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

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

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
  letter-spacing: 0.01em;
}

.nav__links a:hover {
  color: var(--text-heading);
}

.nav__links .btn {
  color: var(--bg);
}


/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/bg-dot-grid.svg');
  background-repeat: repeat;
  opacity: 0.4;
}

.hero__tree {
  position: relative;
  width: clamp(200px, 35vw, 340px);
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 20px var(--neon-20));
}

.hero__tree svg {
  width: 100%;
  height: auto;
}

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

.hero__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 2rem;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--neon), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint span {
  display: block;
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon), transparent);
  opacity: 0.4;
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.5; transform: scaleY(1); }
}


/* ═══════════════════════════════════════════════════════════════
   PILLARS — What We Do
   ═══════════════════════════════════════════════════════════════ */
.pillars {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.pillar:hover {
  border-color: var(--neon-20);
  box-shadow: 0 0 30px var(--neon-05);
}

.pillar__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

.pillar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pillar__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.625rem;
  background: linear-gradient(135deg, var(--neon), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pillar__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════════
   BRIDGE — Value Proposition
   ═══════════════════════════════════════════════════════════════ */
.bridge {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.bridge__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bridge__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

.bridge__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(13, 15, 26, 0.6) 70%,
    rgba(13, 15, 26, 0.95) 100%
  );
}

.bridge__content {
  position: relative;
  z-index: 2;
  padding: 3rem clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.bridge__quote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-heading);
  max-width: 720px;
  margin: 0 auto;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}


/* ═══════════════════════════════════════════════════════════════
   PARTNERS
   ═══════════════════════════════════════════════════════════════ */
.partners {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg);
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
}

.partners__logo {
  height: 24px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.partners__logo:hover {
  opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════════
   PROCESS — How We Engage
   ═══════════════════════════════════════════════════════════════ */
.process {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-alt);
}

.process__steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.process__step {
  text-align: center;
  padding: 2rem;
  position: relative;
  min-width: 260px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.process__num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--neon), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  display: block;
  margin-bottom: 1rem;
}

.process__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.process__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.process__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.process__line {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--neon-20), transparent);
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT — Team
   ═══════════════════════════════════════════════════════════════ */
.about {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg);
}

.about__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.about__tree {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px var(--neon-20));
}

.about__tree img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.about__role {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.25rem;
}

.about__bio {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.25rem;
}

.about__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.about__location svg {
  opacity: 0.5;
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
}

.contact__tree {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: auto;
  opacity: 0.04;
  pointer-events: none;
}

.contact__form {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact__input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-heading);
  font-size: 0.9375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact__input::placeholder {
  color: var(--text-dim);
}

.contact__input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-10);
}

.contact__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form .btn {
  align-self: center;
  margin-top: 0.5rem;
}

.contact__form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact__success {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--neon);
  text-align: center;
  padding: 3rem 0;
}

.contact__direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.contact__link:hover {
  color: var(--neon);
}

.contact__sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__logo {
  position: relative;
  display: inline-block;
}

.footer__logo-default {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer__logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer__logo:hover .footer__logo-default {
  opacity: 0;
}

.footer__logo:hover .footer__logo-hover {
  opacity: 1;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer__meta a {
  transition: color 0.25s ease;
}

.footer__meta a:hover {
  color: var(--neon);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer__legal a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.6875rem;
  color: var(--text-dim);
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════════
   GSAP ANIMATION STATES
   JS adds .gsap-ready to body, then these hide elements for reveal.
   Without JS, everything stays visible.
   ═══════════════════════════════════════════════════════════════ */
.gsap-ready .hero__content,
.gsap-ready .hero__tree { opacity: 0; }

.gsap-ready .pillar,
.gsap-ready .bridge__content,
.gsap-ready .partners__logo,
.gsap-ready .process__step,
.gsap-ready .process__line,
.gsap-ready .about__card,
.gsap-ready .contact__form {
  opacity: 0;
  transform: translateY(30px);
}

/* Reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .gsap-ready .hero__content,
  .gsap-ready .hero__tree,
  .gsap-ready .pillar,
  .gsap-ready .bridge__content,
  .gsap-ready .partners__logo,
  .gsap-ready .process__step,
  .gsap-ready .process__line,
  .gsap-ready .about__card,
  .gsap-ready .contact__form {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress::after,
  .scroll-progress::before {
    animation: none;
  }

  .hero__scroll-hint span {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (min-width: 640px) {
  .contact__row {
    grid-template-columns: 1fr 1fr;
  }

  .process__steps {
    overflow-x: visible;
    scroll-snap-type: none;
    justify-content: center;
  }

  .process__step {
    flex-shrink: 1;
    min-width: auto;
  }

  .process__line {
    width: 60px;
    height: 1.5px;
    background: linear-gradient(to right, var(--neon-20), transparent);
    margin-top: 4.5rem;
  }

  .process__step {
    flex: 1;
    max-width: 280px;
  }

  .about__card {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
  }

  .about__tree {
    width: 220px;
    height: 220px;
  }

  .about__location {
    justify-content: flex-start;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .pillars__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .partners__logo {
    height: 28px;
    max-width: 140px;
  }

  .process__step {
    max-width: 320px;
  }
}

/* Wide */
@media (min-width: 1280px) {
  .hero__tree {
    width: 380px;
  }
}

/* Mobile nav: hide links, show only on desktop */
@media (max-width: 639px) {
  .nav__links {
    display: none;
  }
}
