/* -------------------------------------------------------------
   IDEMIA Morpho L1 RD Service AI Suite - Modern Design System
   Lead Architect: Raj Kishor Mahapatra (https://itsrkmahapatra.qzz.io/)
------------------------------------------------------------- */

:root {
  --bg-dark: #0B0F19;
  --bg-card: #111827;
  --bg-card-alt: #1E293B;
  --bg-input: #020617;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --indigo-primary: #4F46E5;
  --indigo-hover: #4338CA;
  --indigo-light: #818CF8;
  --indigo-glow: rgba(79, 70, 229, 0.35);
  
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber: #F59E0B;
  --red: #EF4444;
  --blue: #0284C7;
  
  --border-color: #334155;
  --border-glow: rgba(99, 102, 241, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

/* Glowing Background Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
  top: -100px;
  left: 20%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  top: 600px;
  right: -100px;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  bottom: 200px;
  left: -150px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding: 14px 0;
}

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

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

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--indigo-light);
  background: #1E1B4B;
  box-shadow: 0 0 12px var(--indigo-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--indigo-light);
  letter-spacing: 1px;
}

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

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--indigo-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--indigo-glow);
}

.btn-primary:hover {
  background: var(--indigo-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  background: var(--bg-card-alt);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #334155;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-indigo { background: var(--indigo-primary); color: #fff; }
.btn-indigo:hover { background: var(--indigo-hover); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0369a1; }
.btn-red { background: #DC2626; color: #fff; }
.btn-red:hover { background: #B91C1C; }
.btn-dark { background: #334155; color: #fff; }
.btn-dark:hover { background: #475569; }

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-light);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 750px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 950px;
  margin: 0 auto;
}

.metric-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.metric-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--indigo-light);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.bg-alt {
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--indigo-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* Biometric Studio Simulator */
.studio-card {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.studio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.studio-inputs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-group select,
.input-group input {
  background: #0F172A;
  border: 1px solid var(--border-color);
  color: #38BDF8;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
}

.studio-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: #0F172A;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.studio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-action {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* Studio Terminal */
.studio-terminal {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0F172A;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
}

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

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.terminal-dots span:nth-child(1) { background: #EF4444; }
.terminal-dots span:nth-child(2) { background: #F59E0B; }
.terminal-dots span:nth-child(3) { background: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.terminal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #1E293B;
  color: #38BDF8;
}

.terminal-body {
  padding: 18px;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34D399;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Architecture Section */
.arch-container {
  max-width: 900px;
  margin: 0 auto;
}

.arch-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-card {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: all 0.2s ease;
}

.arch-card.highlight {
  border-color: var(--indigo-light);
  background: rgba(30, 27, 75, 0.5);
  box-shadow: 0 8px 30px var(--indigo-glow);
}

.arch-layer-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--indigo-light);
  background: rgba(79, 70, 229, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.arch-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.arch-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.arch-tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.arch-tech-tags span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #38BDF8;
  background: #0F172A;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.arch-arrow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo-light);
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.arch-arrow span {
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed var(--border-color);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--indigo-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Matrix List */
.matrix-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.matrix-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.matrix-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.matrix-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.matrix-tag.error { background: rgba(239, 68, 68, 0.2); color: #F87171; border: 1px solid #EF4444; }
.matrix-tag.warning { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid #F59E0B; }

.matrix-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.matrix-fix {
  font-size: 13px;
  color: #34D399;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 850px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.download-card.featured {
  border-color: var(--indigo-light);
  box-shadow: 0 16px 40px var(--indigo-glow);
}

.card-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  background: #1E1B4B;
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--indigo-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.card-size {
  font-size: 12px;
  font-weight: 600;
  color: #38BDF8;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.card-features li {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1E1B4B;
  border: 1px solid var(--indigo-light);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 24px;
}

.toast-text {
  display: flex;
  flex-direction: column;
}

.toast-text strong {
  font-size: 14px;
  color: var(--text-main);
}

.toast-text span {
  font-size: 12px;
  color: var(--indigo-light);
}

/* Footer */
.footer {
  background: #080C14;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.footer a {
  color: var(--indigo-light);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 34px; }
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
