/* ============================================
   QIMI-7 — style.css
   Landing page premium · Dark + Gold (#D4AF37)
   ============================================ */

html { scroll-behavior: smooth; }

/* Offset ancres pour compenser le header + logo qui déborde */
[id] {
  scroll-margin-top: 100px;
}

::selection { background: rgba(212, 175, 55, 0.3); color: #FCF6BA; }

/* --- Navigation --- */
.qimi-nav { overflow: visible; }
.qimi-nav .logo-link { position: relative; z-index: 60; }
.qimi-nav .logo-link img { margin-top: 8px; margin-bottom: -52px; }

/* Mobile nav: logo centré, hamburger réduit */
@media (max-width: 767px) {
  .qimi-nav .header-inner {
    justify-content: center;
    position: relative;
  }
  .qimi-nav .menu-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  .qimi-nav .logo-link img {
    height: 120px;
    margin-bottom: -36px;
  }
}
.nav-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 8px 20px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-item:hover {
  color: #FCF6BA;
}
.nav-item--active {
  color: #0a0a0a;
  background: linear-gradient(135deg, #BF953F, #D4AF37, #FCF6BA);
  border-radius: 6px;
  font-weight: 700;
}
.nav-item--active:hover {
  color: #0a0a0a;
}

/* Hero image fade into black background */
.hero-image-fade {
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at center, black 30%, transparent 68%);
  mask-image: radial-gradient(ellipse 75% 70% at center, black 30%, transparent 68%);
}

/* --- Color Tokens --- */
.bg-dark-main { background-color: #050505; }
.bg-dark-card { background-color: #111111; }
.text-gold { color: #D4AF37; }
.text-gold-light { color: #FCF6BA; }
.bg-gold { background-color: #D4AF37; }
.border-gold { border-color: #D4AF37; }

/* --- Card Hover --- */
.card-hover { transition: all 0.4s ease; }
.card-hover:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.12);
  transform: translateY(-4px);
}

/* --- Layer Cards --- */
.layer-card { transition: all 0.4s ease; border-color: #1f2937; background-color: rgba(17, 17, 17, 0.8); cursor: pointer; }
.layer-card:hover { border-color: rgba(212, 175, 55, 0.3); background-color: #111111; }
.layer-card.active {
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(to bottom right, #1f2937, #111111);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
  transform: scale(1.02);
}

/* --- Feature Cards --- */
.feature-card { transition: all 0.4s ease; border-color: #1f2937; background-color: rgba(17, 17, 17, 0.8); }
.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

/* --- Pipeline Cards --- */
.pipeline-card { transition: all 0.4s ease; border-color: #1f2937; background-color: rgba(17, 17, 17, 0.8); }
.pipeline-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.08);
}

/* --- Tags --- */
.tag-item { background-color: rgba(17, 17, 17, 0.8); border-color: #374151; transition: all 0.3s; }
.tag-item:hover { border-color: rgba(212, 175, 55, 0.5); color: #FCF6BA; }

/* --- Gold Gradient Text --- */
.gold-gradient-text {
  background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gold Glow --- */
.gold-glow-text { text-shadow: 0 0 8px rgba(252, 246, 186, 0.5); }

/* --- Button Gold --- */
.btn-gold {
  background: linear-gradient(to right, #BF953F, #B38728);
  padding: 1px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-gold:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  transform: scale(1.05);
}
.btn-gold-inner {
  background-color: #050505;
  border-radius: 9999px;
  transition: all 0.3s ease;
}
.btn-gold:hover .btn-gold-inner { background-color: transparent; }
.btn-gold:hover .btn-gold-text { color: #000; }

/* --- Light Orbs --- */
.light-orb-1 { position: absolute; width: 600px; height: 300px; background-color: rgba(212, 175, 55, 0.15); filter: blur(100px); border-radius: 50%; pointer-events: none; }
.light-orb-2 { position: absolute; width: 300px; height: 300px; background-color: rgba(252, 246, 186, 0.05); filter: blur(120px); border-radius: 50%; pointer-events: none; }
.light-orb-3 { position: absolute; width: 400px; height: 400px; background-color: rgba(212, 175, 55, 0.05); filter: blur(120px); border-radius: 50%; pointer-events: none; }
.light-orb-4 { position: absolute; width: 256px; height: 256px; background: linear-gradient(to bottom left, rgba(212, 175, 55, 0.1), transparent); filter: blur(60px); border-radius: 50%; pointer-events: none; }
.light-orb-5 { position: absolute; width: 384px; height: 384px; background-color: rgba(212, 175, 55, 0.1); filter: blur(100px); border-radius: 50%; pointer-events: none; }

/* --- Laser Lines --- */
.laser-line { position: absolute; height: 1px; background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent); }
.laser-line-strong { position: absolute; height: 1px; background: linear-gradient(to right, transparent, rgba(252, 246, 186, 0.5), transparent); box-shadow: 0 0 15px rgba(252, 246, 186, 0.8); }

/* --- Rhythm mini-cards --- */
.rhythm-card {
  border-color: #1f2937;
  background-color: rgba(10, 10, 10, 0.8);
  transition: border-color 0.3s;
}
.rhythm-card:hover { border-color: #D4AF37; }

/* --- Layer Panel --- */
.layer-panel { display: none; }
.layer-panel.active { display: block; }

/* --- Layer indicator dot --- */
.layer-dot {
  transition: all 0.5s;
}
.layer-card.active .layer-dot {
  background-color: #D4AF37;
  border-color: #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}
