@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

html, body {
  background: #000 !important;
  color: #fff;
  margin: 0;
  min-height: 100%;
}
html { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }

/* Auras peintes en radial-gradient (équivalent visuel au blur-[120px] mais
   ~50× moins coûteux à repaint pendant le scroll). */
.aura-blue {
  background:
    radial-gradient(circle at 25% 20%, rgba(59,130,246,0.14) 0%, transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(37,99,235,0.14) 0%, transparent 35%),
    #000;
}
.aura-blue-center {
  background:
    radial-gradient(circle at 50% 50%, rgba(59,130,246,0.08) 0%, transparent 45%),
    #000;
}
.aura-blue-soft {
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.10) 0%, transparent 40%),
    #000;
}

/* Navbar « verre teinté » sans backdrop-filter (cheap GPU). */
.navbar-glass {
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Promotion GPU pour la navbar fixe (scroll fluide) */
nav.fixed > div { transform: translateZ(0); will-change: transform; }

.font-rajdhani { font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Brand utilities */
.bg-card-matriv { background-color: rgba(255, 255, 255, 0.05); }
.border-matriv { border-color: rgba(255, 255, 255, 0.1); }
.text-secondary-matriv { color: rgba(255, 255, 255, 0.6); }
.gradient-matriv { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.text-gradient-matriv {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* AudioNote recording row card — dark mode glass (matches real app) */
.aurora-dark {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Float animation */
@keyframes mvFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: mvFloat 6s ease-in-out infinite; }

/* 3D mockup helpers */
.perspective-1000 { perspective: 1000px; }
.mockup-tilt { transform: rotateY(-10deg) rotateZ(-2deg); transition: transform 700ms ease; }
.mockup-tilt:hover { transform: rotateY(0) rotateZ(0); }
@media (max-width: 1023px) { .mockup-tilt { transform: none; } }

/* Button glow */
.btn-glow { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); transition: box-shadow 300ms ease; }
.btn-glow:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }

/* Legal prose preserved from previous iteration */
.legal-prose { color: rgba(255,255,255,0.82); line-height: 1.7; max-width: 820px; margin: 0 auto; }
.legal-prose h1 { font-size: 2rem; font-weight: 700; color: #fff; margin: 0 0 1.5rem; letter-spacing: -0.02em; }
.legal-prose h2 { font-size: 1.35rem; font-weight: 700; background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 2.25rem 0 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.4rem; }
.legal-prose h3 { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 1.5rem 0 0.5rem; }
.legal-prose p { margin: 0.75rem 0; }
.legal-prose ul, .legal-prose ol { margin: 0.75rem 0 0.75rem 1.5rem; }
.legal-prose li { margin: 0.25rem 0; }
.legal-prose a { color: #60a5fa; text-decoration: underline; word-break: break-word; }
.legal-prose a:hover { color: #93c5fd; }
.legal-prose hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0; }
.legal-prose code { background: rgba(255,255,255,0.08); padding: 0.1rem 0.35rem; border-radius: 0.25rem; font-size: 0.9em; color: #dbeafe; }
.legal-prose strong { color: #fff; font-weight: 600; }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.legal-prose thead { background: rgba(59,130,246,0.08); }
.legal-prose th, .legal-prose td { border: 1px solid rgba(255,255,255,0.1); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.legal-prose th { font-weight: 600; color: #93c5fd; }
.legal-prose blockquote { border-left: 3px solid #3B82F6; padding-left: 1rem; color: rgba(255,255,255,0.7); margin: 1rem 0; }

/* ============ iPhone Mockup (Audionote) ============ */
.iphone-mockup { position: relative; display: flex; justify-content: center; padding: 40px 0; }
.iphone-frame { position: relative; width: 290px; height: 590px; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%); border-radius: 50px; padding: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 25px 50px -12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); }
.dynamic-island { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 95px; height: 28px; background: #000; border-radius: 20px; z-index: 10; }
.iphone-screen { width: 100%; height: 100%; background: #000; border-radius: 40px; overflow: hidden; position: relative; }
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 54px 24px 8px; color: white; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 600; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons .signal, .status-icons .wifi { width: 16px; height: 12px; }
.status-icons .battery { width: 24px; height: 11px; border: 1.5px solid white; border-radius: 3px; padding: 1px; position: relative; }
.status-icons .battery::after { content: ''; position: absolute; right: -4px; top: 2px; width: 2px; height: 5px; background: white; border-radius: 0 1px 1px 0; }
.status-icons .battery-level { width: 80%; height: 100%; background: #30D158; border-radius: 1px; }
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 16px; }
.app-header h1 { font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; color: white; margin: 0; }
.header-actions { display: flex; gap: 12px; }
.icon-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; color: white; }
.recordings-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; }
.recording-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.recording-card.processed { background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(59,130,246,0.1) 50%, rgba(96,165,250,0.08) 100%); }
.recording-card.processing { background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(251,191,36,0.1) 50%, rgba(236,72,153,0.08) 100%); }
.recording-card.pending { background: linear-gradient(135deg, rgba(239,68,68,0.15) 0%, rgba(249,115,22,0.1) 50%, rgba(236,72,153,0.08) 100%); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.card-title { font-family: 'Helvetica Neue', sans-serif; font-size: 15px; font-weight: 700; color: white; margin: 0; line-height: 1.3; flex: 1; }
.chevron svg { width: 26px; height: 26px; }
.metadata-block { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(0,0,0,0.2); border-radius: 10px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.meta-value { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600; color: white; }
.meta-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.2); }
.speakers-row { display: flex; align-items: center; }
.speaker-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 600; color: white; border: 2px solid rgba(0,0,0,0.3); }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.status-badge { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.status-badge.processed { background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3); color: #60A5FA; }
.status-badge.processing { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #FBBF24; }
.status-badge.pending { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #F87171; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mode-icon { width: 12px; height: 12px; opacity: 0.8; }
.mini-spinner { width: 10px; height: 10px; border: 2px solid rgba(251,191,36,0.3); border-top-color: #FBBF24; border-radius: 50%; animation: mvSpin 1s linear infinite; }
@keyframes mvSpin { to { transform: rotate(360deg); } }
.sync-status svg { width: 18px; height: 18px; }
.sync-status.synced svg { color: #10B981; }
.fab-record { position: absolute; bottom: 40px; right: 20px; width: 56px; height: 56px; background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(239,68,68,0.4); cursor: pointer; }
.fab-record svg { width: 24px; height: 24px; color: white; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.iphone-shadow { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); width: 200px; height: 20px; background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, transparent 70%); }
