/* ================================================
   FLUXFRONT — Shared Components
   Pills, buttons, sections, hero, features,
   timeline, tabs, stats, CTA, reveal, animations
   ================================================ */


/* ================================================
   PILLS (buttons)
   ================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.pill--fill {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #0B0D11;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.2);
}
.pill--fill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
}

.pill--ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.pill--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px) scale(1.03);
}

.pill--lg { padding: 14px 30px; font-size: 15px; }
.pill--full { width: 100%; justify-content: center; }

.pill:active { transform: translateY(0) scale(0.98); }

/* Old button compat (services.html, contact.html) */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; border: none; transition: all 0.25s var(--ease); white-space: nowrap; cursor: pointer; }
.btn--primary, .btn-primary { background: linear-gradient(135deg, var(--teal), var(--blue)); color: #0B0D11; box-shadow: 0 4px 16px rgba(0, 212, 170, 0.2); }
.btn--primary:hover, .btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 28px rgba(0, 212, 170, 0.3); }
.btn--ghost, .btn-secondary { background: transparent; border: 1px solid var(--border-2); color: var(--text); }
.btn--ghost:hover, .btn-secondary:hover { background: rgba(255, 255, 255, 0.04); transform: translateY(-1px); }
.btn--sm { padding: 8px 18px; font-size: 13px; border-radius: 999px; }
.btn--lg, .btn-large { padding: 16px 32px; font-size: 16px; }
.btn--full, .btn-mobile { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }


/* ================================================
   SECTION PRIMITIVES
   ================================================ */

.section { padding: 160px 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head { text-align: center; margin-bottom: 80px; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
}


/* ================================================
   HERO
   ================================================ */

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

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 25% 35%, rgba(0, 212, 170, 0.07), transparent),
    radial-gradient(ellipse 500px 400px at 75% 65%, rgba(59, 130, 246, 0.05), transparent);
  pointer-events: none;
  will-change: transform;
}

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

.hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--text);
}

.hero__sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Hero entrance */
.anim-hero { opacity: 0; transform: translateY(24px); }
.hero.is-loaded .anim-hero { animation: heroIn 0.7s var(--ease-out) forwards; }
.hero.is-loaded [data-hero="1"] { animation-delay: 0.1s; }
.hero.is-loaded [data-hero="2"] { animation-delay: 0.3s; }
.hero.is-loaded [data-hero="3"] { animation-delay: 0.55s; }
.hero.is-loaded [data-hero="4"] { animation-delay: 0.75s; }

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


/* ================================================
   FEATURES (2-col text grid)
   ================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
}

.feature { transition: all 0.4s var(--ease); padding: 8px 0; }
.feature:hover { transform: translateY(-2px); }

.feature__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 16px;
}

.feature__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 420px;
}


/* ================================================
   TIMELINE
   ================================================ */

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  opacity: 0.35;
}

.timeline__step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  position: relative;
}

.timeline__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline__body { padding-top: 6px; }
.timeline__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.timeline__desc { font-size: 16px; color: var(--text-2); line-height: 1.7; }


/* ================================================
   TABS (industries)
   ================================================ */

.tabs__bar {
  display: flex;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  max-width: 580px;
  margin: 0 auto 48px;
}

.tabs__btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.tabs__btn:last-child { border-right: none; }
.tabs__btn:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.tabs__btn.is-active { background: var(--teal-dim); color: var(--teal); }

.tabs__panels { position: relative; min-height: 280px; }

.tabs__panel {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  animation: tabIn 0.4s var(--ease-out);
}
.tabs__panel.is-active { display: block; }

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

.tabs__headline {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.tabs__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.tabs__list li {
  font-size: 15px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}
.tabs__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
}


/* ================================================
   STATS / NUMBERS
   ================================================ */

.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  text-align: center;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat__row {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.stat__num, .stat__suffix, .stat__prefix {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.stat__label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-2);
}


/* ================================================
   CTA
   ================================================ */

.cta {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta__sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.cta__contact {
  font-size: 14px;
  color: var(--text-3);
}
.cta__contact a { color: var(--teal); transition: opacity 0.2s; }
.cta__contact a:hover { opacity: 0.7; }


/* ================================================
   SCROLL REVEAL
   ================================================ */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal .feature:nth-child(1) { transition-delay: 0s; }
.reveal .feature:nth-child(2) { transition-delay: 0.08s; }
.reveal .feature:nth-child(3) { transition-delay: 0.16s; }
.reveal .feature:nth-child(4) { transition-delay: 0.24s; }
.reveal .feature:nth-child(5) { transition-delay: 0.32s; }
.reveal .feature:nth-child(6) { transition-delay: 0.4s; }

/* Left slide (timeline) */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}


/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes spin { to { transform: rotate(360deg); } }
