/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --bg-primary: #0d0d1a;
  --bg-secondary: #121225;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.55);
  --text-tertiary: rgba(240, 240, 245, 0.35);

  --accent-blue: #4d8eff;
  --accent-blue-glow: rgba(77, 142, 255, 0.25);
  --accent-purple: #a78bfa;
  --accent-cyan: #38bdf8;

  /* Gradients */
  --gradient-hero: linear-gradient(180deg,
      rgba(77, 142, 255, 0.08) 0%,
      rgba(13, 13, 26, 0) 60%);
  --gradient-text: linear-gradient(180deg,
      #ffffff 0%,
      rgba(200, 210, 230, 0.7) 50%,
      rgba(120, 140, 180, 0.4) 100%);
  --gradient-cta-border: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.05));

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --nav-height: 64px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 13, 26, 0.6);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-medium), border-color var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(13, 13, 26, 0.85);
  border-bottom-color: var(--border-hover);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: lighten;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   PILL NAV — Sliding Cursor
   ============================================ */
.nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-pill-list {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 30, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  gap: 0;
}

.nav-pill-tab {
  position: relative;
  z-index: 10;
}

.nav-pill-tab a {
  display: block;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  mix-blend-mode: difference;
  cursor: pointer;
  white-space: nowrap;
  transition: none;
  text-decoration: none;
}

@media (min-width: 769px) {
  .nav-pill-tab a {
    padding: 10px 22px;
    font-size: 0.875rem;
  }
}

/* Sliding Cursor */
.nav-pill-cursor {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.15s ease;
  box-shadow:
    0 0 16px rgba(77, 142, 255, 0.3),
    0 0 40px rgba(77, 142, 255, 0.1);
}

/* Sign Up / Join Us Button */
.btn-signup {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background: var(--surface);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.btn-signup:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(77, 142, 255, 0.1);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Spline / 3D Container */
.spline-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.spline-container canvas,
.spline-container spline-viewer {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  padding-top: var(--nav-height);
  pointer-events: none;
}

/* Hero Title — massive display text */
.hero-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.3s forwards;
}

.hero-title-line {
  display: block;
}

/* Hero Subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.8vw, 1.125rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--ease-out-expo) 0.6s forwards;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: all var(--transition-medium);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s var(--ease-out-expo) 0.9s forwards;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.0) 50%,
      rgba(77, 142, 255, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 30px rgba(77, 142, 255, 0.12),
    0 0 60px rgba(77, 142, 255, 0.06);
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
}

/* ============================================
   HERO BOTTOM — "we build with passion"
   ============================================ */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(0deg, rgba(5, 5, 16, 0.9) 0%, transparent 100%);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.2s forwards;
}

.hero-bottom-text {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

/* ============================================
   SPLINE 3D BACKGROUND
   ============================================ */
/* No overlays — Spline scene is fully visible */

/* Hide Spline watermark */
spline-viewer #logo,
spline-viewer .spline-watermark {
  display: none !important;
}

/* Hide "Built with Spline" badge — covers shadow DOM leakage */
#spline-watermark,
.spline-watermark,
[class*="spline-watermark"],
[id*="spline-watermark"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================================
   TEAM / TESTIMONIALS SECTION
   ============================================ */
.team-section {
  position: relative;
  padding: 120px 24px 100px;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Animated grid background */
.team-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.5;
  pointer-events: none;
}

/* Top gradient fade into hero */
.team-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Section Header */
.team-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.team-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.team-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.15s forwards;
}

.team-title-accent {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

/* Testimonial Layout */
.testimonial-container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 769px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Image Stack */
.testimonial-image-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-image-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 380px;
}

.testimonial-image-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(77, 142, 255, 0.06);
  transform-origin: center bottom;
}

.testimonial-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-image-card.active {
  opacity: 1;
  transform: rotate(0deg) scale(1) translateY(0);
  z-index: 10;
}

.testimonial-image-card.behind {
  opacity: 0.4;
  transform: scale(0.92) translateY(16px);
  z-index: 5;
}

.testimonial-image-card.hidden-card {
  opacity: 0;
  transform: scale(0.85) translateY(40px);
  z-index: 1;
}

/* Text Area */
.testimonial-text-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.testimonial-quote-wrapper {
  min-height: 200px;
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-designation {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 28px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-quote::before {
  content: '\201C';
  color: var(--accent-blue);
  font-size: 1.4em;
  margin-right: 2px;
}

.testimonial-quote::after {
  content: '\201D';
  color: var(--accent-blue);
  font-size: 1.4em;
  margin-left: 2px;
}

/* Fade transition states */
.testimonial-name.fading,
.testimonial-designation.fading,
.testimonial-quote.fading {
  opacity: 0;
  transform: translateY(-12px);
}

.testimonial-name.entering,
.testimonial-designation.entering,
.testimonial-quote.entering {
  opacity: 0;
  transform: translateY(12px);
}

/* Controls */
.testimonial-controls {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 0 24px rgba(77, 142, 255, 0.12);
}

.testimonial-btn:active {
  transform: scale(0.95);
}

.testimonial-btn svg {
  transition: transform 0.25s var(--ease-out-expo);
}

.testimonial-btn:hover svg {
  transform: translateX(-2px);
}

#testimonial-next:hover svg {
  transform: translateX(2px);
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
  position: relative;
  padding: 120px 24px 100px;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Grid background — matching team section */
.timeline-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.5;
  pointer-events: none;
}

/* Top gradient fade */
.timeline-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Section Header — identical pattern to team */
.timeline-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.timeline-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-label.animate-in {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-title.animate-in {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.15s forwards;
}

.timeline-title-accent {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-subtitle.animate-in {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Track with vertical line */
.timeline-track {
  position: relative;
  padding-bottom: 32px;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-line-progress {
  position: absolute;
  left: 24px;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-line-progress.animate-in {
  height: 100%;
}

@media (min-width: 640px) {
  .timeline-line {
    left: 32px;
  }

  .timeline-line-progress {
    left: 32px;
  }
}

/* Individual Item */
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (min-width: 640px) {
  .timeline-item {
    gap: 24px;
    margin-bottom: 48px;
  }
}

/* Node / Avatar */
.timeline-node {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.timeline-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--bg-primary);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(77, 142, 255, 0.08);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.3s ease;
}

.timeline-avatar:hover {
  transform: scale(1.05);
}

.timeline-avatar--current {
  border-color: var(--accent-blue);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(77, 142, 255, 0.2);
}

.timeline-avatar--upcoming {
  opacity: 0.7;
}

.timeline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .timeline-avatar {
    width: 64px;
    height: 64px;
  }
}

/* Card */
.timeline-card {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all var(--transition-medium);
}

.timeline-card:hover {
  background: var(--surface-hover);
  border-color: rgba(77, 142, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(77, 142, 255, 0.06);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .timeline-card {
    padding: 24px;
  }
}

/* Card completed border hint */
.timeline-item[data-status="completed"] .timeline-card {
  border-color: rgba(74, 222, 128, 0.12);
}

.timeline-item[data-status="completed"] .timeline-card:hover {
  border-color: rgba(74, 222, 128, 0.25);
}

.timeline-item[data-status="current"] .timeline-card {
  border-color: rgba(77, 142, 255, 0.15);
}

.timeline-item[data-status="current"] .timeline-card:hover {
  border-color: rgba(77, 142, 255, 0.3);
}

.timeline-item[data-status="upcoming"] .timeline-card {
  border-color: rgba(250, 204, 21, 0.1);
}

.timeline-item[data-status="upcoming"] .timeline-card:hover {
  border-color: rgba(250, 204, 21, 0.2);
}

/* Card Header */
.timeline-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .timeline-card-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
}

.timeline-card-meta {
  flex: 1;
  min-width: 0;
}

.timeline-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  transition: color var(--transition-medium);
}

@media (min-width: 640px) {
  .timeline-card-title {
    font-size: 1.25rem;
  }
}

.timeline-item:hover .timeline-card-title {
  color: var(--accent-blue);
}

.timeline-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-card-category {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.timeline-card-date {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Card Description */
.timeline-card-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .timeline-card-desc {
    font-size: 0.9375rem;
  }
}

/* Badge */
.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-badge--completed {
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
}

.timeline-badge--current {
  background: rgba(77, 142, 255, 0.08);
  color: var(--accent-blue);
  border-color: rgba(77, 142, 255, 0.2);
}

.timeline-badge--upcoming {
  background: rgba(250, 204, 21, 0.08);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.2);
}

/* Progress Bar */
.timeline-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-progress-fill.animate-in {
  width: var(--target-width);
}

.timeline-progress--completed {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.timeline-progress--current {
  background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
}

.timeline-progress--upcoming {
  background: linear-gradient(90deg, #eab308, #facc15);
}

/* End Dot */
.timeline-end-dot {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(77, 142, 255, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease 0.5s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.timeline-end-dot.animate-in {
  opacity: 1;
}

@media (min-width: 640px) {
  .timeline-end-dot {
    left: 32px;
  }
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-pill {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    transform: none;
    display: none;
  }

  .nav-pill.open {
    display: block;
  }

  .nav-pill-list {
    flex-direction: column;
    border-radius: 0 0 16px 16px;
    border-top: none;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px;
    gap: 2px;
  }

  .nav-pill-tab a {
    padding: 14px 20px;
    width: 100%;
    text-align: left;
    border-radius: 10px;
    mix-blend-mode: normal;
    color: var(--text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
  }

  .nav-pill-tab a:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
  }

  .nav-pill-cursor {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .btn-signup {
    display: none;
  }

  .hero-title {
    font-size: clamp(3.5rem, 18vw, 8rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 90%;
  }

  .btn-cta {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .hero-bottom {
    padding: 24px 16px;
  }

  /* Team section mobile */
  .team-section {
    padding: 80px 20px 60px;
  }

  .team-header {
    margin-bottom: 48px;
  }

  .testimonial-image-stack {
    max-width: 260px;
    height: 320px;
  }

  .testimonial-text-area {
    text-align: center;
  }

  .testimonial-controls {
    justify-content: center;
  }

  .testimonial-quote-wrapper {
    min-height: 180px;
  }

  /* Timeline section mobile */
  .timeline-section {
    padding: 80px 20px 60px;
  }

  .timeline-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .navbar-inner {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(3rem, 20vw, 6rem);
  }

  .testimonial-name {
    font-size: 1.25rem;
  }

  .testimonial-quote {
    font-size: 1rem;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(77, 142, 255, 0.3);
  color: #fff;
}