/* index.css - Specific stylesheet for NØDE Home page */

/* ==========================================
   1. HERO SECTION
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 750px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  text-align: center;
}

.hero-grid-bg {
  position: absolute;
  top: -60px;
  left: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  z-index: 1;
  pointer-events: none;
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-60px, -60px, 0);
  }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 45vw;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(168, 184, 232, 0.07) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 110px);
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  /* Center text with letter-spacing */
  color: var(--text-primary);
  margin-bottom: clamp(90px, 12vw, 135px);
  /* Pushes tagline/actions below the centered particles logo while leaving ample room for the scroll indicator */
  line-height: 1;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.02);
  transition: opacity 0.5s ease-out;
}

/* Masquage progressif du titre original quand les particules WebGL sont chargées */
.webgl-active .hero-title {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* WebGL interactive particles canvas */
#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.iris-text {
  background: var(--gradient-iris);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-tagline {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 0.75rem;
}

.hero-subtagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/* 2. Standard Button Elements */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 14px 34px;
  border-radius: 2px;
  text-transform: uppercase;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-iris);
  color: #080808;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 184, 232, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  background: transparent;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.02);
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  color: var(--text-muted);
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.scroll-arrow-box {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }

  60% {
    transform: translateY(-3px);
  }
}

.scroll-arrow {
  stroke: var(--text-muted);
}


/* ==========================================
   2. GENERIC CONTAINER SECTIONS
   ========================================== */
.section {
  padding: 120px 4%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 4rem;
}


/* ==========================================
   3. VALUE PROPOSITION (CARDS)
   ========================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 48px 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 45px rgba(168, 184, 232, 0.08);
  transform: translateY(-2px);
}

.glass-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.glass-card .card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.glass-card .card-icon {
  width: 32px;
  height: 32px;
  stroke: var(--accent-iris-1);
}

.glass-card .card-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.glass-card .card-desc {
  font-size: 15px;
  color: var(--text-secondary);
}


/* ==========================================
   4. STATS BANNER
   ========================================== */
.numbers-banner {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 4%;
  position: relative;
  overflow: hidden;
}

.numbers-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(48px, 5.5vw, 76px);
  background: var(--gradient-iris);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
}


/* ==========================================
   5. PROCESS SECTION (TIMELINE)
   ========================================== */
.process-section {
  overflow: hidden;
}

.timeline-wrapper {
  position: relative;
  padding: 60px 0;
  margin-top: 2rem;
}

.timeline-svg-container {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
  z-index: 1;
}

.timeline-line-svg {
  width: 100%;
  height: 100%;
}

.timeline-line-svg path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.1s ease-out;
}

.timeline-mobile-line {
  display: none;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-active);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(168, 184, 232, 0.1);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}

.timeline-step:hover .step-marker {
  border-color: #ffffff;
  transform: scale(1.05);
}

.step-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 220px;
}


/* ==========================================

/* ==========================================
   7. FINAL CTA
   ========================================== */
.final-cta-section {
  display: flex;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-primary);
}

.final-cta-container {
  max-width: 800px;
  padding: 80px 40px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.final-cta-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168, 184, 232, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.final-cta-email {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.final-cta-email:hover {
  color: var(--accent-iris-1);
}


/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .numbers-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .timeline-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

}

@media (max-width: 768px) {
  .hero {
    min-height: 600px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 80px 6%;
  }

  /* Vertical Timeline */
  .timeline-wrapper {
    padding: 20px 0;
    margin-left: 20px;
  }

  .timeline-svg-container {
    display: none;
  }

  .timeline-mobile-line {
    display: block;
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--border-subtle);
    z-index: 1;
  }

  .timeline-mobile-fill {
    width: 100%;
    height: 0%;
    background-color: var(--accent-iris-1);
    transition: height 0.1s ease-out;
  }

  .timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    position: relative;
    z-index: 2;
  }

  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .step-marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-title {
    font-size: 18px;
    margin-top: 6px;
    margin-bottom: 0.5rem;
  }

  .step-desc {
    max-width: 100%;
  }

  .numbers-banner {
    padding: 60px 6%;
  }

  .numbers-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}