/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */

:root {
  /* Colors */
  --bg-deep: #070a13;
  --bg-dark: #0c1020;
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  
  --primary: #00d1ff;
  --primary-hover: #00b0d6;
  --primary-glow: rgba(0, 209, 255, 0.3);
  
  --secondary: #6366f1;
  --secondary-hover: #4f46e5;
  --secondary-glow: rgba(99, 102, 241, 0.25);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 209, 255, 0.4);
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 60%, rgba(0, 209, 255, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* ==========================================================================
   REUSABLE COMPONENTS & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition-normal), 
              transform var(--transition-normal), 
              box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Highlight text */
.highlight-blue {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #00a3cc 100%);
  color: #070a13;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Section Header */
.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.header-glass {
  background: rgba(7, 10, 19, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.logo-icon {
  margin-right: 10px;
  font-size: 1.6rem;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-new {
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid var(--primary-glow);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.3rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.safety-alert-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  max-width: 540px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

.safety-alert-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.safety-alert-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.safety-alert-text strong {
  color: #10b981;
}


.hero-visual {
  position: relative;
}

.visual-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.visual-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.visual-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.visual-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.visual-body {
  padding: 24px;
  background: #090d16;
}

/* Mock App Styles */
.mock-app {
  display: grid;
  grid-template-columns: 140px 1fr;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.mock-sidebar {
  background: rgba(17, 24, 39, 0.5);
  border-right: 1px solid var(--border-light);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
}

.sidebar-item.active {
  background: var(--primary-glow);
  color: var(--primary);
  font-weight: 600;
}

.mock-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.mock-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone-icon {
  font-size: 2rem;
}

.dropzone-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mock-progress {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
  display: none;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
}

.mock-status-text {
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 10px;
  font-weight: 500;
  display: none;
}

.visual-glow-effect {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.8;
}

/* ==========================================================================
   AI USE-CASE SECTION
   ========================================================================== */

.ai-usecase-section {
  padding: 80px 0;
  position: relative;
}

.ai-usecase-card {
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
}

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

@media (max-width: 992px) {
  .ai-usecase-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ai-usecase-card {
    padding: 32px 24px;
  }
}

.ai-usecase-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ai-usecase-text {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ai-usecase-list {
  list-style: none;
  padding: 0;
}


/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
  padding: 100px 0;
  background: rgba(7, 10, 19, 0.3);
}

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

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: var(--border-active);
}

.feature-icon {
  font-size: 2.2rem;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.feature-title {
  font-size: 1.35rem;
}

.feature-description {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   INTERACTIVE DEMO (DESKTOP APP MOCKUP)
   ========================================================================== */

.demo-section {
  padding: 80px 0;
  position: relative;
}

/* Mockup window layout */
.mock-window {
  max-width: 960px;
  margin: 0 auto;
  background: #090d16;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.mock-window-header {
  background: #0c1020;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.window-controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dots .dot.red { background: #ff5f56; }
.window-dots .dot.yellow { background: #ffbd2e; }
.window-dots .dot.green { background: #27c93f; }

.window-logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.window-logo {
  font-size: 1.4rem;
}

.window-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.window-subtitle-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.window-actions-right {
  display: flex;
  gap: 10px;
}

.window-btn-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.window-btn-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

/* Tab bar */
.mock-window-tabs {
  display: flex;
  background: #090d16;
  padding: 10px 24px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 4px;
}

.mock-tab {
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mock-tab.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.mock-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Wizard Steps Bar */
.mock-window-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(12, 16, 32, 0.4);
  border-bottom: 1px solid var(--border-light);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-normal);
}

.wizard-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.wizard-step.active {
  opacity: 1;
  color: var(--primary);
}

.wizard-step.active .wizard-step-icon {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.wizard-step.completed {
  opacity: 0.8;
  color: #10b981;
}

.wizard-step.completed .wizard-step-icon {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}

.wizard-arrow {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 0.8rem;
}

/* Steps panes */
.mock-window-body {
  padding: 32px;
  min-height: 380px;
  background: #090d16;
}

.step-pane {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.step-pane.active {
  display: block;
}

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

/* Step 1: Documents styling */
.documents-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mock-drag-area {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.mock-drag-area:hover {
  border-color: var(--primary);
  background: rgba(0, 209, 255, 0.02);
}

.drag-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.drag-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.drag-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-file-queue {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  min-height: 80px;
}

.queue-empty-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 14px;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 209, 255, 0.15);
  padding: 10px 16px;
  border-radius: 6px;
  animation: slideIn var(--transition-fast);
}

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

.queue-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-file-icon {
  font-size: 1.2rem;
}

.queue-file-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.queue-file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.queue-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.queue-item-remove:hover {
  color: #ef4444;
}

/* Step 2: Parameters styling */
.parameters-pane-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .parameters-pane-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.params-column-left {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
}

.params-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  color: var(--primary);
}

/* Modern Checkbox / Switch */
.switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.switch-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.switch-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch-label-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.switch-label-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Custom Checkbox */
.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.switch-checkbox-input {
  display: none;
}

.switch-checkbox-input:checked + .custom-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.switch-checkbox-input:checked + .custom-checkbox::after {
  content: "✔";
  color: #070a13;
  font-size: 0.7rem;
  font-weight: 900;
}

.params-column-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dict-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}

.dict-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dict-text-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.dict-text-input:focus {
  border-color: var(--primary);
}

.dict-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 4px;
}

.dict-tag {
  background: rgba(0, 209, 255, 0.12);
  border: 1px solid rgba(0, 209, 255, 0.3);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: slideIn var(--transition-fast);
}

.dict-tag-remove {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0;
  line-height: 1;
}

.dict-tag-remove:hover {
  color: #ffffff;
}

/* Step 3: Traitement styling */
.processing-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.treatment-status-bar {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
}

.treatment-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.treatment-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.treatment-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.1s linear;
}

/* Document preview box integration */
.demo-document {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-normal);
  width: 100%;
}

.doc-header {
  background: #f1f5f9;
  padding: 12px 20px;
  border-bottom: 1px solid #cbd5e1;
}

.doc-title-bar {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.doc-content {
  padding: 30px;
  font-family: 'Inter', Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.7;
}

.doc-h4 {
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  font-size: 1.15rem;
  margin-bottom: 16px;
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.doc-h5 {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  font-size: 0.95rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.doc-content p {
  margin-bottom: 12px;
}

/* Sensitive Data styling */
.sensitive-data {
  position: relative;
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px dashed var(--secondary);
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: help;
}

/* Dynamic highlighting of custom words */
.custom-sensitive-data {
  background-color: rgba(0, 209, 255, 0.12);
  border: 1px dashed var(--primary);
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sensitive-data[data-type="nom"] { background-color: rgba(99, 102, 241, 0.12); border-color: #6366f1; }
.sensitive-data[data-type="adresse"] { background-color: rgba(245, 158, 11, 0.12); border-color: #f59e0b; }
.sensitive-data[data-type="tel"],
.sensitive-data[data-type="email"] { background-color: rgba(16, 185, 129, 0.12); border-color: #10b981; }
.sensitive-data[data-type="montant"] { background-color: rgba(239, 68, 68, 0.12); border-color: #ef4444; }

/* Anonymized Solid Black Boxes */
.demo-document.anonymized .sensitive-data,
.demo-document.anonymized .custom-sensitive-data {
  background-color: #000000 !important;
  color: #000000 !important;
  border-color: #000000 !important;
  border-style: solid;
  border-radius: 2px;
  user-select: none;
  cursor: not-allowed;
}

.demo-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-color.nom { background: #6366f1; }
.legend-color.adresse { background: #f59e0b; }
.legend-color.contact { background: #10b981; }
.legend-color.montant { background: #ef4444; }
.legend-color.custom { background: var(--primary); }

/* Success state panel */
.treatment-success-panel {
  display: none;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  animation: slideIn var(--transition-normal);
}

.success-icon {
  font-size: 3rem;
  color: #10b981;
}

.success-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #10b981;
}

.success-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* Window Footer Navigation */
.mock-window-footer {
  background: #0c1020;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
}

.footer-nav-left {
  display: flex;
  gap: 10px;
}

.footer-nav-right {
  display: flex;
  gap: 10px;
}


/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-section {
  padding: 100px 0;
  background: rgba(7, 10, 19, 0.4);
}

.pricing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.toggle-label.active {
  color: var(--primary);
  font-weight: 700;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--bg-card);
}

input:checked + .slider:before {
  transform: translateX(26px);
  background-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary-glow);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pricing-card.recommended {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 209, 255, 0.15);
}

.badge-recommended {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--primary);
  color: #070a13;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 36px;
  transform: rotate(45deg);
}

.pricing-header {
  margin-bottom: 28px;
}

.pricing-plan-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.pricing-duration-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price-display {
  margin-bottom: 12px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition-normal);
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pricing-features-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
  padding: 100px 0;
}

.faq-accordion {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active {
  border-color: var(--primary-glow);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1), 
              padding var(--transition-normal);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: 20px;
  transition: max-height var(--transition-normal) ease-in-out, 
              padding var(--transition-normal);
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(0, 209, 255, 0.1) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.banner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.banner-content h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.banner-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.brand-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
    gap: 32px;
  }
  
  .pricing-card.recommended {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .header-actions {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(7, 10, 19, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    border-top: 1px solid var(--border-light);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  /* Animate hamburger to X */
  .menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .banner-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   CUSTOM TOAST NOTIFICATIONS
   ========================================================================== */
.custom-toast {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0;
  max-width: 400px;
}

.custom-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.custom-toast-icon {
  font-size: 1.5rem;
}

.custom-toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  flex: 1;
}

.custom-toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.custom-toast-close:hover {
  color: #fff;
}
