/* ==========================================================================
   SACHET (सचेत) DESIGN SYSTEM - DARK CIVIC SHIELD THEME
   Spacious, modern, high-contrast, premium interface
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-surface: #0e131f;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-hover: rgba(24, 32, 50, 0.85);
  --bg-card-solid: #131927;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(245, 158, 11, 0.35);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --amber-primary: #f59e0b;
  --amber-light: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.18);
  
  --red-danger: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.2);
  --red-dark: #7f1d1d;
  
  --green-safe: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  
  --blue-brand: #3b82f6;
  --indigo-brand: #6366f1;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.12);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TOP EMERGENCY HELPLINE BANNER
   ========================================================================== */
.emergency-banner {
  background: linear-gradient(90deg, #7f1d1d 0%, #1e131d 50%, #172033 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 100;
}
.emergency-banner strong {
  color: #fff;
  letter-spacing: 0.02em;
}
.emergency-banner a {
  color: #fef08a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ==========================================================================
   NAVIGATION BAR
   Only: Logo, 'How it Works', 'GitHub', 'API', plus CTA
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 90;
  transition: all 0.25s ease;
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name .hindi {
  font-size: 15px;
  color: var(--amber-light);
  font-weight: 500;
}

.brand-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-weight: 600;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber-primary);
  border-radius: 2px;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #07090e;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-1px);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-light);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-trust-list {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item svg {
  color: var(--green-safe);
}

/* Phone Mockup in Hero */
.hero-phone-card {
  background: linear-gradient(180deg, #161d2d 0%, #0e1320 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.phone-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-badge-danger {
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.phone-risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 18px;
}

.phone-risk-num {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #ef4444;
}
.phone-risk-num small {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 400;
}

.phone-risk-status {
  text-align: right;
}
.phone-risk-status .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.phone-risk-status .state {
  font-size: 16px;
  font-weight: 700;
  color: #ef4444;
}

.phone-alert-box {
  background: rgba(239, 68, 68, 0.12);
  border-left: 3px solid #ef4444;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #fecaca;
  line-height: 1.5;
  margin-bottom: 18px;
}
.phone-alert-box strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.phone-transcript-preview {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
  font-size: 12.5px;
  line-height: 1.5;
}
.phone-transcript-preview .turn-caller {
  color: #e5e7eb;
  margin-bottom: 6px;
}
.phone-transcript-preview .turn-victim {
  color: #93c5fd;
}
.phone-transcript-preview b {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.phone-action-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   STATISTICS SECTION ("THE SILENT EPIDEMIC")
   ========================================================================== */
.stats-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 19, 31, 0.4);
}

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

.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 0.25s ease;
}
.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-light);
  margin-bottom: 20px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.fear-callout-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fear-callout-icon {
  color: var(--amber-primary);
  flex-shrink: 0;
}
.fear-callout-text {
  font-size: 14.5px;
  color: #fde68a;
  line-height: 1.5;
}

/* ==========================================================================
   ANATOMY OF A SCAM CALL SECTION
   ========================================================================== */
.anatomy-section {
  padding: 90px 0;
  position: relative;
}

.arc-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.arc-card {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
}

.arc-card.scam {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(18, 24, 38, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.arc-card.safe {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(18, 24, 38, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.arc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.arc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.arc-badge.danger { color: #f87171; }
.arc-badge.safe { color: #34d399; }

.arc-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-step {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}

.step-num {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.step-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.step-tag.red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.step-tag.green { background: rgba(16, 185, 129, 0.2); color: #86efac; }

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   FEATURES & PRIVACY SECTION
   ========================================================================== */
.features-section {
  padding: 90px 0;
  background: rgba(14, 19, 31, 0.3);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.feature-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-light);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.privacy-banner-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 24, 38, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.privacy-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-safe);
  flex-shrink: 0;
}

.privacy-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.privacy-content p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE DEMO APPLICATION SECTION
   ========================================================================== */
.demo-section {
  padding: 90px 0;
  position: relative;
}

.demo-container {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
}

.demo-toolbar {
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.demo-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-preset-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.demo-preset-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.demo-preset-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-primary);
  color: var(--amber-light);
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}
.status-dot.active {
  background: var(--green-safe);
}

/* Two-column App Layout */
.demo-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.demo-column {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.demo-column.left {
  border-right: 1px solid var(--border-subtle);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.column-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-dim);
}

/* Call Controls */
.controls-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mic-toggle-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}
.mic-toggle-btn.recording {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulse-ring 1.5s infinite;
}

.speaker-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.speaker-opt {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speaker-opt:hover {
  color: var(--text-main);
}

.speaker-opt.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.speaker-opt.active[data-val="caller"] {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.speaker-opt.active[data-val="victim"] {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-end {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-end:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Transcript Area */
.transcript-box {
  flex: 1;
  min-height: 280px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: fadeIn 0.25s ease;
}

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

.chat-bubble.caller {
  align-self: flex-start;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
}
.chat-bubble.caller .speaker-tag {
  color: #f87171;
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.chat-bubble.victim {
  align-self: flex-end;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #ffffff;
}
.chat-bubble.victim .speaker-tag {
  color: #bfdbfe;
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.typing-input-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.typing-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.typing-input-row input:focus {
  outline: none;
  border-color: var(--amber-primary);
}

.api-settings-toggle {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
}
.api-settings-panel {
  display: none;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 8px;
  gap: 8px;
  flex-wrap: wrap;
}
.api-settings-panel.open {
  display: flex;
}
.api-settings-panel input {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* Right Column: Risk Gauge & Analytics */
.danger-alert-box {
  display: none;
  background: linear-gradient(90deg, #b91c1c 0%, #7f1d1d 100%);
  border: 1px solid #ef4444;
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 18px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.gauge-hero-container {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
}

.gauge-svg-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.gauge-svg-wrapper svg {
  transform: rotate(-90deg);
}
.gauge-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}
.gauge-progress-circle {
  fill: none;
  stroke: var(--green-safe);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.gauge-center-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.gauge-center-val .score {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.gauge-center-val .sub {
  font-size: 11px;
  color: var(--text-dim);
}

.gauge-info {
  flex: 1;
}
.gauge-level-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-safe);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gauge-linear-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}
.gauge-linear-fill {
  height: 100%;
  width: 0;
  background: var(--green-safe);
  transition: width 0.5s ease, background 0.4s ease;
}

.reason-explanation-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 58px;
}

.signals-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  min-height: 28px;
}
.signal-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

.trend-graph-wrapper {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: auto;
}
.trend-title {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.trend-svg {
  width: 100%;
  height: 60px;
}

/* ==========================================================================
   FAMILY & CIVIC SAFETY SECTION
   ========================================================================== */
.family-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s ease;
}
.persona-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.persona-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-light);
  margin-bottom: 20px;
}

.persona-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.persona-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   EVALUATION SECTION
   ========================================================================== */
.eval-section {
  padding: 90px 0;
  background: rgba(14, 19, 31, 0.35);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.eval-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.eval-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}

.eval-metric-num {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  color: var(--blue-brand);
  line-height: 1;
  margin-bottom: 10px;
}
.eval-metric-num.highlight {
  color: var(--amber-primary);
}

.eval-metric-label {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.eval-metric-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.eval-footnote {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   CTA SECTION & FOOTER
   ========================================================================== */
.cta-section {
  padding: 90px 0 100px;
}

.cta-box {
  background: #111726;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  margin-bottom: 24px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  position: relative;
  z-index: 10;
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   SAVE CALL EVIDENCE DIALOG
   ========================================================================== */
dialog.save-modal {
  background: #121826;
  color: #fff;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

dialog.save-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

dialog.save-modal h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
}

dialog.save-modal p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

dialog.save-modal input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
}

dialog.save-modal .modal-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   DOCUMENTATION & SUBPAGE STYLING (For How it Works, GitHub, API)
   ========================================================================== */
.subpage-hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.subpage-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}

.subpage-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.doc-section {
  padding: 40px 0 70px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 28px;
}

.doc-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.doc-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--amber-light);
  margin: 24px 0 10px;
}

.doc-card p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 16px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.doc-table th, .doc-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.doc-table th {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.2);
}
.doc-table td code {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.code-block {
  background: #090d15;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
  margin: 16px 0;
}

.code-block .keyword { color: #f43f5e; }
.code-block .string { color: #34d399; }
.code-block .comment { color: #64748b; font-style: italic; }

/* Responsive Media Queries */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .arc-timeline-grid { grid-template-columns: 1fr 1fr; }
  .demo-app-grid { grid-template-columns: 1fr; }
  .demo-column.left { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .persona-grid { grid-template-columns: 1fr; }
  .eval-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .arc-timeline-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; }
}
