/* The Reliance Design System - Contemplative Tech */
/* Palette: Dark Intelligence + Soft Sacred Gold */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@300;400;500;600&display=swap');

/* Base styles */
* {
  font-family: 'Inter', sans-serif;
}

/* ============================================================================
   BRAND TYPOGRAPHY - Canela (Cormorant as fallback)
   ============================================================================ */

/* 1. Primary brand (navbar) */
.reliance-brand-primary {
  font-family: "Cormorant", serif;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: #A78BFA; /* Doré doux */
}

/* 2. Entry screen style */
.reliance-brand-threshold {
  font-family: "Cormorant", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9em;
  color: #8B6CF6; /* Doré sobre */
}

/* 3. Dual layer (landing) - small */
.reliance-brand-dual-small {
  font-family: "Cormorant", serif;
  opacity: 0.6;
  font-size: 0.7em;
  color: #8E8AB8; /* Texte secondaire */
}

/* 3. Dual layer (landing) - main */
.reliance-brand-dual-main {
  font-family: "Cormorant", serif;
  letter-spacing: 0.03em;
  color: #A78BFA; /* Doré doux */
  font-weight: 400;
}

/* Landing hero title - Ultra minimal */
.reliance-landing-title {
  font-family: "Cormorant", serif;
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: 0.05em;
  font-weight: 400;
  line-height: 1.1;
  color: #FFFFFF; /* Texte primaire */
  text-align: center;
}

/* Landing tagline - Latin motto */
.reliance-landing-tagline {
  font-family: "Cormorant", serif;
  font-size: 1.1rem;
  opacity: 0.5;
  letter-spacing: 0.08em;
  text-align: center;
  color: #A78BFA; /* Doré doux */
  font-style: italic;
  font-weight: 300;
}

/* Landing secondary text */
.reliance-landing-secondary {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
  text-align: center;
  color: #FFFFFF; /* Texte primaire */
}

/* Legacy hero title (kept for compatibility) */
.reliance-hero-title {
  font-family: "Cormorant", serif;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1.1;
  color: #FFFFFF; /* Texte primaire */
}

/* ============================================================================
   END BRAND TYPOGRAPHY
   ============================================================================ */

/* Reliance Shell - Full screen quiet background */
.reliance-shell {
  min-height: 100vh;
  background: #0A0A22; /* Noir fond */
  background-image:
    radial-gradient(ellipse at center, rgba(26,58,255,0.04) 0%, transparent 60%); /* Bleu intelligence */
  position: relative;
}

.reliance-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(167,139,250,0.06); /* Doré doux */
  pointer-events: none;
}

/* Landing Shell - Ultra minimal with subtle breathing */
.reliance-landing-shell {
  min-height: 100vh;
  background: #0A0A22; /* Noir fond */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20vh 2rem;
}

.reliance-landing-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,58,255,0.03) 0%, transparent 60%); /* Bleu intelligence */
  animation: breathingGlow 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathingGlow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

/* Reliance Card */
.reliance-card {
  background: #1E1C48; /* Surface élevée */
  backdrop-filter: blur(16px);
  border: 1px solid #2A2860; /* Border */
  border-radius: 24px; /* rounded-2xl */
  transition: all 0.4s ease;
}

.reliance-card:hover {
  border-color: rgba(167,139,250,0.3); /* Doré guidance */
  box-shadow: 0 0 24px rgba(167,139,250,0.12);
}

/* Landing Page Button Primary - "I enter" */
.reliance-landing-btn-primary {
  background: #A78BFA; /* Doré doux */
  color: #0A0A22; /* Noir fond */
  padding: 16px 48px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.reliance-landing-btn-primary:hover {
  transform: scale(1.02);
  background: #8B6CF6; /* Doré sobre */
}

/* Landing Page Button Secondary - "I return" */
.reliance-landing-btn-secondary {
  background: transparent;
  color: #A78BFA; /* Doré doux */
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid #A78BFA; /* Doré doux */
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}

.reliance-landing-btn-secondary:hover {
  background: rgba(167,139,250, 0.1);
}

/* Reliance Button Primary (legacy) */
.reliance-btn-primary {
  background: linear-gradient(135deg, #A78BFA 0%, #8B6CF6 100%); /* Doré doux → sobre */
  color: #0A0A22; /* Noir fond */
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 12px rgba(167,139,250,0.18);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.reliance-btn-primary:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 16px rgba(167,139,250,0.24);
  filter: brightness(1.1);
}

.reliance-btn-primary:active {
  transform: scale(0.99);
}

/* Reliance Button Secondary */
.reliance-btn-secondary {
  background: transparent;
  color: #8B6CF6; /* Doré sobre */
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 1px solid #2A2860; /* Border */
  transition: all 0.3s ease;
  cursor: pointer;
}

.reliance-btn-secondary:hover {
  background: #121130; /* Surface */
  border-color: rgba(167,139,250,0.4);
}

/* Reliance Presence Light - Abstract, minimal */
.reliance-presence-light {
  width: 4px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(180deg,
    rgba(167,139,250,0) 0%,
    rgba(167,139,250,0.3) 50%,
    rgba(167,139,250,0) 100%
  ); /* Doré guidance */
  border-radius: 999px;
  transition: all 0.6s ease;
}

.reliance-presence-light.idle {
  opacity: 0.2;
}

.reliance-presence-light.listening {
  background: linear-gradient(180deg,
    rgba(26,58,255,0) 0%,
    rgba(26,58,255,0.5) 50%,
    rgba(26,58,255,0) 100%
  ); /* Bleu intelligence */
  animation: bluePulse 3s ease-in-out infinite;
  opacity: 0.6;
}

.reliance-presence-light.thinking {
  background: linear-gradient(180deg,
    rgba(59,91,255,0) 0%,
    rgba(59,91,255,0.4) 50%,
    rgba(59,91,255,0) 100%
  ); /* Bleu interaction */
  opacity: 0.5;
}

.reliance-presence-light.speaking {
  background: linear-gradient(180deg,
    rgba(167,139,250,0) 0%,
    rgba(167,139,250,0.5) 50%,
    rgba(167,139,250,0) 100%
  ); /* Doré guidance */
  opacity: 0.7;
}

.reliance-presence-light.error {
  background: linear-gradient(180deg,
    rgba(231,76,60,0) 0%,
    rgba(231,76,60,0.4) 50%,
    rgba(231,76,60,0) 100%
  ); /* Désalignement */
  animation: errorPulse 0.8s ease-out;
  opacity: 0.6;
}

/* Reliance Status Pill */
.reliance-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.reliance-status-pill.ready {
  background: rgba(167,139,250,0.12); /* Doré doux */
  color: #8B6CF6; /* Doré sobre */
  border: 1px solid rgba(167,139,250,0.25);
}

.reliance-status-pill.listening {
  background: rgba(26,58,255,0.12); /* Bleu intelligence */
  color: #6C8CFF; /* Bleu doux */
  border: 1px solid rgba(26,58,255,0.25);
}

.reliance-status-pill.processing {
  background: rgba(59,91,255,0.12); /* Bleu interaction */
  color: #6C8CFF; /* Bleu doux */
  border: 1px solid rgba(59,91,255,0.25);
}

.reliance-status-pill.error {
  background: rgba(231,76,60,0.12); /* Désalignement */
  color: #E74C3C; /* Désalignement */
  border: 1px solid rgba(231,76,60,0.25);
}

.reliance-status-pill.offline {
  background: rgba(102,102,102,0.12); /* Muted */
  color: #666666; /* Texte muted */
  border: 1px solid rgba(102,102,102,0.25);
}

.reliance-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Reliance Input */
.reliance-input {
  background: #121130; /* Surface */
  border: 1px solid #2A2860; /* Border */
  border-radius: 14px;
  padding: 14px 18px;
  color: #FFFFFF; /* Texte primaire */
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100%;
}

.reliance-input::placeholder {
  color: #8E8AB8; /* Texte secondaire */
}

.reliance-input:focus {
  outline: none;
  border-color: rgba(26,58,255,0.5); /* Bleu intelligence */
  box-shadow: 0 0 0 2px rgba(26,58,255,0.1);
  background: #1E1C48; /* Surface élevée */
}

/* Reliance Nav */
.reliance-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #2A2860; /* Border */
}

.reliance-logo {
  font-size: 16px;
  font-weight: 500;
  color: #A78BFA; /* Doré doux */
  letter-spacing: 1px;
}

.reliance-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.reliance-nav-link {
  color: #8E8AB8; /* Texte secondaire */
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
  position: relative;
}

.reliance-nav-link:hover {
  color: #FFFFFF; /* Texte primaire */
}

.reliance-nav-link.active {
  color: #A78BFA; /* Doré doux */
}

.reliance-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(167,139,250,0.5);
}

/* Reliance Entry Panel */
.reliance-entry-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 48px;
  text-align: center;
  animation: slowReveal 0.9s ease-out;
}

.reliance-entry-title {
  font-size: 32px;
  color: #A78BFA; /* Doré doux */
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.reliance-entry-guidance {
  font-size: 16px;
  color: #8E8AB8; /* Texte secondaire */
  font-weight: 400;
  line-height: 1.8;
  max-width: 480px;
  white-space: pre-line;
}

/* Reliance Timeline */
.reliance-timeline {
  position: relative;
  padding-left: 32px;
}

.reliance-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(167,139,250,0.2) 0%, transparent 100%);
}

.reliance-timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.reliance-timeline-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(167,139,250,0.4);
  border: 2px solid #0A0A22; /* Noir fond */
}

.reliance-timeline-item.active .reliance-timeline-dot {
  background: #1A3AFF; /* Bleu intelligence */
  box-shadow: 0 0 12px rgba(26,58,255,0.4);
}

.reliance-timeline-content {
  color: #8E8AB8; /* Texte secondaire */
  font-size: 14px;
  line-height: 1.6;
}

.reliance-timeline-item.active .reliance-timeline-content {
  color: #FFFFFF; /* Texte primaire */
}

/* Animation keyframes */
@keyframes bluePulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(26,58,255,0.15);
  }
  50% {
    box-shadow: 0 0 24px rgba(26,58,255,0.25);
  }
}

@keyframes errorPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes breathing {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes slowReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Utility classes */
.text-reliance-gold {
  color: #A78BFA; /* Doré doux */
}

.text-reliance-gold-light {
  color: #8B6CF6; /* Doré sobre */
}

.text-reliance-text {
  color: #FFFFFF; /* Texte primaire */
}

.text-reliance-secondary {
  color: #8E8AB8; /* Texte secondaire */
}

.text-reliance-muted {
  color: #666666; /* Texte muted */
}

.text-reliance-blue {
  color: #1A3AFF; /* Bleu intelligence */
}

.text-reliance-blue-soft {
  color: #6C8CFF; /* Bleu doux */
}

.bg-reliance-black {
  background-color: #0A0A22; /* Noir fond */
}

.bg-reliance-surface {
  background-color: #121130; /* Surface */
}

.bg-reliance-elevated {
  background-color: #1E1C48; /* Surface élevée */
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: rgba(167,139,250,0.25); /* Doré guidance */
  color: #FFFFFF;
}
