:root {
  /* Color Palette - Deep Corporate Blue & AI Teal */
  --bg-primary: #0a0c10;
  --bg-secondary: #14181f;
  --bg-accent: #1e2530;
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --accent-primary: #2dd4bf; /* Teal */
  --accent-secondary: #3b82f6; /* Blue */
  --accent-gradient: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 100%);

  --danger: #f87171;
  --success: #34d399;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(20, 24, 31, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-display: 'Syncopate', sans-serif; /* Requires import or fallback */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 80px 0;
}

/* Components */

/* Mobile Widget Container */
.widget-view {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.widget-header {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.widget-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Progress Bar */
.progress-container {
  padding: 0 24px 24px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-accent);
}

.step-dot.active {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-accent);
}

.otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 32px 0;
}

.otp-input {
  width: 45px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Case Summary */
.textarea-large {
  min-height: 200px;
  resize: none;
}

.voice-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.voice-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.voice-btn.recording {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(248, 113, 113, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 30px; } }
@keyframes spin { to { transform: rotate(360deg); } }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 13px; }
.admin-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--border-color); color: var(--text-muted); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border-color); }
.action-btn { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border-color); color: var(--text-secondary); cursor: pointer; text-decoration: none; font-size: 11px; }
.partner-type-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; flex: 1; text-align: center; cursor: pointer; transition: all 0.2s; }
.partner-type-card.active { border-color: var(--accent-primary); background: rgba(45, 212, 191, 0.05); }

/* Document Scan */
.scan-grid {
  display: grid;
  gap: 16px;
}

.scan-card {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scan-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-accent);
}

.scan-card.uploaded {
  border-style: solid;
  border-color: var(--success);
  background: rgba(52, 211, 153, 0.05);
}

/* Lawyer Matching */
.lawyer-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  position: relative;
  transition: border-color 0.2s ease;
}

.lawyer-card.interested {
  border-color: var(--accent-primary);
  background: rgba(45, 212, 191, 0.05);
}

.lawyer-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-accent);
  flex-shrink: 0;
}

.lawyer-info {
  flex: 1;
}

.badge-union {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.interest-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.interest-toggle.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
}

/* Chat */
.chat-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
}

.message-ai {
  align-self: flex-start;
  background: var(--bg-secondary);
  border-bottom-left-radius: 4px;
}

.message-user {
  align-self: flex-end;
  background: var(--accent-primary);
  color: #000;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 16px 0;
  display: flex;
  gap: 12px;
}

/* DocuSign Status */
.status-indicator {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* Video */
.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
}

.play-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Navigation */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(45, 212, 191, 0.05);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--accent-primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  z-index: 1;
}

.abstract-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  top: 0;
  right: 0;
  animation: float 10s infinite alternate;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: 0;
  right: 200px;
  animation: float 8s infinite alternate-reverse;
}

@keyframes float {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 60px); }
}

/* Dashboard Preview / Interface Card */
.interface-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.interface-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

/* Grid / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

/* Stats */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 60px 0;
}

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

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

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

.footer-column h4 {
  margin-bottom: 24px;
  font-size: 1rem;
}

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

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--accent-primary);
}

.copyright {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Helpers */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.placeholder-image {
  background: var(--bg-accent);
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-accent);
}

.placeholder-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
