/* ============================================
   DocuVeritas — AI-Based Fake Identity & Document Screening System
   Created by Team CodeBusters
   ============================================ */

/* --- CSS Variables / Theme System --- */
:root {
  /* Brand colors */
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --accent: #00c896;
  --accent-dark: #00a67d;
  --accent-light: #e6faf4;
  --danger: #e74c3c;
  --danger-light: #fdecea;
  --warning: #f39c12;
  --warning-light: #fef9e7;
  --success: #27ae60;
  --success-light: #eafaf1;

  /* Surfaces & Backgrounds (Light Theme) */
  --bg-primary: #fafafa;
  --bg-secondary: #f0f4f8;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-nav: rgba(250, 250, 250, 0.95);
  --bg-elevated: #fafafa;

  /* Dark Sections (Hero & Footer) */
  --dark: #0f172a;
  --dark-secondary: #1e293b;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #52606d;
  --text-white: #ffffff;

  /* Borders & Dividers */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-hover: #cbd5e1;

  /* Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================
   Dark Theme Overrides
   ============================================ */
body.dark-theme {
  /* Brand colors tuned for dark backgrounds */
  --primary: #5eb3ff;
  --primary-dark: #3b9eff;
  --primary-light: rgba(94, 179, 255, 0.16);
  --accent: #00ff88;
  --accent-dark: #00cc6a;
  --accent-light: rgba(0, 255, 136, 0.14);
  --danger: #ff6b6b;
  --danger-light: rgba(255, 107, 107, 0.16);
  --warning: #ffa500;
  --warning-light: rgba(255, 165, 0, 0.16);
  --success: #51cf66;
  --success-light: rgba(81, 207, 102, 0.16);

  /* Surfaces & Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #121829;
  --bg-card: #182035;
  --bg-input: #1e2942;
  --bg-nav: rgba(10, 14, 26, 0.95);
  --bg-elevated: #1e2942;

  --dark: #060911;
  --dark-secondary: #0a0e1a;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.25);

  /* Grays for dark theme */
  --gray-50: #121829;
  --gray-100: #182035;
  --gray-200: #1e2942;
  --gray-300: #334155;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #ffffff;
  --white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- Utility Classes --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.section-light {
  background-color: var(--bg-secondary);
}

.section-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
  color: var(--text-white);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-white);
}

.section-dark p {
  color: #cbd5e1;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(26, 115, 232, 0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #0b0f19 !important;
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff !important;
}

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

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.navbar-brand span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  margin-left: 8px;
}

.theme-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: rotate(20deg) scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #070a14 0%, #0f172a 100%);
  color: #ffffff;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.2) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.15) 0%, transparent 70%);
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.3rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.scan-animation {
  position: relative;
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 3s ease-in-out infinite;
  box-shadow: 0 0 20px var(--accent), 0 0 60px rgba(0, 200, 150, 0.4);
}

@keyframes scan {
  0% { top: 0; }
  50% { top: calc(100% - 3px); }
  100% { top: 0; }
}

.doc-preview {
  width: 220px;
  height: 140px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  position: relative;
}

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

.doc-preview .doc-photo {
  width: 30px;
  height: 36px;
  background: #475569;
  border-radius: 3px;
}

.doc-preview .doc-lines {
  flex: 1;
}

.doc-preview .doc-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-bottom: 5px;
}

.doc-preview .doc-line:nth-child(2) { width: 70%; }
.doc-preview .doc-line:nth-child(3) { width: 50%; }

.hero-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-badge.verified {
  background: rgba(39, 174, 96, 0.2);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, 0.4);
}

.hero-badge.scanning {
  background: rgba(26, 115, 232, 0.2);
  color: var(--primary);
  border: 1px solid rgba(26, 115, 232, 0.4);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header .overline {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.feature-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.feature-icon.orange {
  background: var(--warning-light);
  color: var(--warning);
}

.feature-icon.red {
  background: var(--danger-light);
  color: var(--danger);
}

.feature-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.feature-icon.teal {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- How It Works --- */
.steps-container {
  display: flex;
  gap: 32px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
}

.step-card {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.step-card:hover .step-number {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Demo Section --- */
.demo-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.demo-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.demo-tab {
  padding: 16px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  font-family: var(--font-main);
}

.demo-tab:hover {
  color: var(--primary);
  background: var(--bg-card);
}

.demo-tab.active {
  color: var(--primary);
  background: var(--bg-card);
  font-weight: 700;
}

.demo-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.demo-content {
  padding: 40px;
  background: var(--bg-card);
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.upload-area h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.upload-area p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sample Documents */
.sample-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.sample-doc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.sample-doc:hover,
.sample-doc.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sample-doc .doc-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.sample-doc .doc-name {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.sample-doc .doc-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Results Panel */
.results-panel {
  margin-top: 32px;
  display: none;
}

.results-panel.active {
  display: block;
  animation: slideUp 0.5s ease;
}

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

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border-color);
}

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

.status-indicator {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.status-indicator.authentic {
  background: var(--success);
}

.status-indicator.suspicious {
  background: var(--warning);
}

.status-indicator.fraudulent {
  background: var(--danger);
}

.result-body {
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 24px;
  background: var(--bg-card);
}

/* Score Gauge */
.score-gauge {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.gauge-circle {
  width: 120px;
  height: 120px;
  position: relative;
}

.gauge-circle svg {
  transform: rotate(-90deg);
}

.gauge-circle .gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-circle .gauge-value {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
}

.gauge-circle .gauge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gauge-details h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.gauge-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Check Items */
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.check-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.check-item strong {
  color: var(--text-primary);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  flex-shrink: 0;
}

.check-icon.pass { background: var(--success); }
.check-icon.fail { background: var(--danger); }
.check-icon.warn { background: var(--warning); }

/* Findings */
.findings-section {
  margin-top: 24px;
}

.findings-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.finding-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--danger);
  background: var(--danger-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.finding-item.warning {
  border-left-color: var(--warning);
  background: var(--warning-light);
}

.finding-item.info {
  border-left-color: var(--primary);
  background: var(--primary-light);
}

/* Identity Verification Form */
.identity-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Progress Bar */
.progress-container {
  margin: 24px 0;
  display: none;
}

.progress-container.active {
  display: block;
}

.progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-step.active {
  color: var(--primary);
  font-weight: 700;
}

.progress-step.done {
  color: var(--success);
  font-weight: 600;
}

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* --- Technology Section --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.tech-card .tech-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.tech-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.tech-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Dashboard Preview --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dashboard-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.recent-scans-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.recent-scans-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.recent-scans-table td {
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.recent-scans-table tr:last-child td {
  border-bottom: none;
}

.recent-scans-table code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Threat Chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-bar .bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-bar .bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Metadata comparison view */
.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.metadata-item {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.metadata-item .meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metadata-item .meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metadata-item .meta-value.flagged {
  color: var(--danger);
}

/* --- Footer --- */
.footer {
  background: #060911;
  color: #94a3b8;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .navbar-brand {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #ffffff;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Media Queries
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Devices (<=768px) */
@media (max-width: 768px) {
  /* Hide theme toggle on mobile as requested */
  .desktop-theme-toggle {
    display: none !important;
  }

  .mobile-brand {
    display: block !important;
  }

  /* Hide text in navbar-brand on mobile to avoid duplicate DocuVeritas */
  .navbar-brand span {
    display: none;
  }

  .hamburger {
    display: flex;
    width: 48px;
    height: 48px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    flex-direction: column;
  }

  .steps-container::before {
    display: none;
  }

  .identity-form {
    grid-template-columns: 1fr;
  }

  .checks-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .demo-tabs {
    flex-wrap: wrap;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Mobile touch target optimizations */
  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
    min-height: 48px;
    border-radius: var(--radius-sm);
  }

  .demo-tab {
    padding: 14px 18px;
    font-size: 0.85rem;
    min-height: 48px;
  }

  a, button {
    min-height: 44px;
  }

  .feature-card {
    padding: 20px;
  }

  .demo-content {
    padding: 20px;
  }

  .upload-area {
    padding: 32px 16px;
  }

  .recent-scans-table {
    font-size: 0.8rem;
  }

  .recent-scans-table th,
  .recent-scans-table td {
    padding: 8px 6px;
  }
}

/* Small Mobile Screens (<=600px) */
@media (max-width: 600px) {
  .navbar .container {
    height: 64px;
  }

  .hero {
    padding-top: 64px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .section {
    padding: 40px 0;
  }

  .feature-card {
    padding: 16px;
  }

  .sample-docs {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .score-gauge {
    flex-direction: column;
    gap: 16px;
  }

  .gauge-circle {
    width: 100px;
    height: 100px;
  }

  .gauge-circle svg {
    width: 100px;
    height: 100px;
  }

  .checks-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  /* Prevent zoom on input focus for mobile browsers */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (min-width: 769px) {
  .mobile-brand {
    display: none !important;
  }
}

/* --- Contact Popup --- */
.contact-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background-color: var(--bg-card);
  margin: 10% auto;
  padding: 40px;
  border: 1px solid var(--border-color);
  width: 80%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.popup-close {
  color: var(--text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
}

.popup-close:hover,
.popup-close:focus {
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

.contact-details {
  margin: 24px 0;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-value {
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Responsive adjustments for popup */
@media (max-width: 480px) {
  .popup-content {
    margin: 5% auto;
    width: 90%;
    padding: 24px;
  }
}