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

:root {
  --bg: #070b12;
  --surface: #0d1525;
  --surface2: #132040;
  --border: #1e3050;
  --accent: #00d4ff;
  --success: #00ff88;
  --warning: #ffb800;
  --danger: #ff4466;
  --text: #e8f0ff;
  --text-muted: #5a7090;
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --success-dim: rgba(0, 255, 136, 0.15);
  --warning-dim: rgba(255, 184, 0, 0.15);
  --danger-dim: rgba(255, 68, 102, 0.15);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

a:hover {
  color: var(--text);
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input, textarea, select {
  font-family: var(--font-main);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  transition: var(--transition);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 11, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.navbar-logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface2);
}

/* 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);
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--cyan-dim);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-success {
  background: var(--success);
  color: var(--bg);
}

.btn-success:hover {
  background: #33ffaa;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--success-dim);
}

.btn-danger {
  background: var(--danger);
  color: var(--bg);
}

.btn-danger:hover {
  background: #ff6688;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--danger-dim);
}

.btn-warning {
  background: var(--warning);
  color: var(--bg);
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius);
  background: var(--surface2);
  color: var(--text-muted);
}

.btn-icon:hover {
  color: var(--text);
  background: var(--border);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card:hover {
  border-color: var(--accent);
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.badge-active {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid var(--success);
}

.badge-pending {
  background: var(--warning-dim);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.badge-escalated {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.badge-agreed {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid var(--success);
}

.badge-signed {
  background: var(--accent);
  color: var(--bg);
}

.badge-buyer {
  background: var(--cyan-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.badge-seller {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid var(--purple);
}

.badge-info {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Status Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot-active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

.status-dot-pending {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
  animation: pulse 2s infinite;
}

.status-dot-inactive {
  background: var(--text-muted);
}

/* Message Bubbles */
.message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.message-bubble-buyer {
  border-left: 3px solid var(--accent);
}

.message-bubble-seller {
  border-left: 3px solid var(--purple);
}

.message-bubble-system {
  border-left: 3px solid var(--text-muted);
  background: var(--surface2);
}

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

.message-sender {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.message-type-icon {
  width: 14px;
  height: 14px;
}

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

.message-content {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.message-reasoning {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface2);
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 2px solid var(--border);
  margin-top: 12px;
}

.message-params {
  margin-top: 12px;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
}

.param-table th, .param-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.param-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.param-table td {
  font-family: var(--font-mono);
}

.param-value-green {
  color: var(--success);
}

.param-value-amber {
  color: var(--warning);
}

.param-value-red {
  color: var(--danger);
}

/* Parameter Zone Indicators */
.param-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface2);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.param-zone-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.param-zone-green {
  background: var(--success-dim);
  border: 1px solid var(--success);
}

.param-zone-amber {
  background: var(--warning-dim);
  border: 1px solid var(--warning);
}

.param-zone-red {
  background: var(--danger-dim);
  border: 1px solid var(--danger);
}

.param-zone-label {
  flex: 1;
  font-size: 13px;
}

.param-zone-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* Contract Clauses */
.contract-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

.contract-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.contract-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contract-body {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.8;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  color: var(--text-muted);
}

.contract-clause-agreed {
  color: var(--success);
}

.contract-clause-contested {
  color: var(--warning);
}

.contract-clause-proposed {
  color: var(--accent);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius);
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface2);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Dealroom Specific */
.dealroom-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  min-height: calc(100vh - 64px);
  padding: 24px 32px;
}

.dealroom-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dealroom-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dealroom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.dealroom-title {
  font-size: 20px;
  font-weight: 700;
}

.dealroom-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.dealroom-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.dealroom-stat-value {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.dealroom-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Thread */
.thread-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-height: calc(100vh - 400px);
  min-height: 400px;
}

.thread-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
}

.thread-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Message Input */
.message-input-area {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.message-input-actions {
  display: flex;
  gap: 8px;
}

/* Agent Typing Indicator */
.agent-typing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  animation: typing-dot 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Escalation */
.escalation-item {
  background: var(--danger-dim);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}

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

.escalation-term {
  font-weight: 600;
  color: var(--danger);
}

.escalation-value {
  font-family: var(--font-mono);
  font-size: 13px;
}

.escalation-actions {
  display: flex;
  gap: 8px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  min-width: 300px;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-info {
  border-left: 3px solid var(--accent);
}

.toast-icon {
  width: 20px;
  height: 20px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
}

/* Landing Page */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease 0.1s both;
}

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

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeIn 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeIn 0.6s ease 0.3s both;
}

.hero-demo {
  margin-top: 80px;
  animation: fadeIn 0.6s ease 0.4s both;
}

.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dot-red { background: var(--danger); }
.demo-dot-yellow { background: var(--warning); }
.demo-dot-green { background: var(--success); }

.demo-body {
  padding: 24px;
}

/* Section */
.section {
  padding: 100px 32px;
}

.section-sm {
  padding: 60px 32px;
}

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

.section-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--cyan-dim);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

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

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.problem-card:hover {
  border-color: var(--danger);
  transform: translateY(-4px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-dim);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--danger);
}

.problem-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* How It Works */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  font-size: 24px;
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 20px;
}

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

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--accent);
}

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

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

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

/* Why Now */
.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  width: 2px;
  height: calc(100% - 48px);
  background: var(--border);
}

.timeline-dot {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  text-align: center;
  padding: 100px 32px;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Dashboard */
.dashboard-layout {
  padding: 96px 32px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.dashboard-title {
  font-size: 28px;
  font-weight: 800;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--accent);
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--accent);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

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

.dealroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.dealroom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.dealroom-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.dealroom-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dealroom-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dealroom-card-counterparty {
  font-size: 14px;
  color: var(--text-muted);
}

.dealroom-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dealroom-card-stat {
  text-align: center;
}

.dealroom-card-stat-value {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.dealroom-card-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Agreement State */
.agreement-banner {
  background: linear-gradient(135deg, var(--success-dim) 0%, var(--cyan-dim) 100%);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
  animation: agreement-reached 0.5s ease;
}

.agreement-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 8px;
}

.agreement-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Signature Modal */
.signature-canvas {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 16px;
  cursor: crosshair;
}

.signing-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  animation: pulse 1s infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .dealroom-layout {
    grid-template-columns: 1fr;
  }

  .dealroom-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .navbar-links {
    display: none;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .section {
    padding: 60px 16px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dashboard-layout {
    padding: 96px 16px 16px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes typing-dot {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes agreement-reached {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease both;
}

.animate-slideIn {
  animation: slideIn 0.3s ease both;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none; }