/* Collab LLM - Design System */
/* White background, Blue accent (#0a7aff), Purple secondary (#8b5cf6) */

:root {
  /* Primary brand colors */
  --primary-50: #f0f7ff;
  --primary-100: #e0efff;
  --primary-200: #b8dcff;
  --primary-300: #7ac0ff;
  --primary-400: #3a9eff;
  --primary-500: #0a7aff;
  --primary-600: #005fd4;
  --primary-700: #004aab;
  --primary-800: #00408c;
  --primary-900: #063874;

  /* Accent purple */
  --accent-50: #f5f3ff;
  --accent-100: #ede9fe;
  --accent-200: #ddd6fe;
  --accent-300: #c4b5fd;
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;
  --accent-700: #6d28d9;

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

  /* Semantic colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(10, 122, 255, 0.2);
  color: var(--primary-900);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
}

@media (min-width: 768px) {
  .section-heading { font-size: 2.5rem; }
}

.section-subheading {
  font-size: 1.125rem;
  color: var(--slate-600);
  text-align: center;
  max-width: 42rem;
  margin: 1rem auto 0;
}

@media (min-width: 768px) {
  .section-subheading { font-size: 1.25rem; }
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-500);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(10, 122, 255, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-600);
  box-shadow: 0 6px 20px 0 rgba(10, 122, 255, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--primary-50);
  color: var(--primary-600);
}

.btn-secondary:hover {
  background-color: var(--primary-100);
}

.btn-ghost {
  background-color: transparent;
  color: var(--slate-600);
}

.btn-ghost:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-highlight {
  background: white;
  border-radius: 1rem;
  border: 2px solid var(--primary-500);
  box-shadow: 0 10px 40px -10px rgba(10, 122, 255, 0.2);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--slate-900);
}

.header-logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary-500);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--slate-900);
}

.header-nav a.active {
  color: var(--primary-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions .btn-primary {
  display: none;
}

@media (min-width: 640px) {
  .header-actions .btn-primary { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--slate-600);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 20rem;
  background: white;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

.mobile-menu-close {
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--slate-600);
  cursor: pointer;
}

.mobile-menu-nav {
  padding: 1.5rem 1rem;
}

.mobile-menu-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-menu-nav a:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}

.mobile-menu-footer {
  padding: 1rem;
  border-top: 1px solid var(--slate-100);
}

.mobile-menu-footer .btn {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 40% 20%, rgba(10, 122, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(167, 139, 250, 0.1) 0px, transparent 50%);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, white, transparent, white);
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse-slow 4s ease-in-out infinite;
}

.hero-decoration-1 {
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(10, 122, 255, 0.1);
}

.hero-decoration-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(139, 92, 246, 0.1);
  animation-delay: 2s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-700);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}

.hero-badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-400);
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge-dot::after {
  content: '';
  position: relative;
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary-500);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}

.hero-subtitle {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--slate-600);
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.25rem; }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; justify-content: center; }
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.hero-models {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
  animation: fade-in 0.8s ease-out 0.8s both;
}

.hero-model {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  cursor: default;
}

@media (min-width: 640px) {
  .hero-model {
    width: 4rem;
    height: 4rem;
  }
}

.hero-model:hover {
  transform: scale(1.1);
}

.hero-model.gpt { background: #10b981; }
.hero-model.claude { background: #f97316; }
.hero-model.gemini { background: #3b82f6; }

.hero-model-label {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-600);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-model:hover .hero-model-label {
  opacity: 1;
}

.hero-models-caption {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Section */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--slate-50);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-100);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

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

.step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-600);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--slate-600);
  line-height: 1.6;
}

.step-connector {
  display: none;
  position: absolute;
  top: 3rem;
  left: 60%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, var(--primary-200), var(--accent-200));
}

@media (min-width: 768px) {
  .step:not(:last-child) .step-connector { display: block; }
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
  padding: 1.5rem;
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-100);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Demo Section */
.demo-container {
  max-width: 56rem;
  margin: 3rem auto 0;
}

.demo-window {
  background: var(--slate-900);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.demo-header {
  background: var(--slate-800);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-700);
}

.demo-dots {
  display: flex;
  gap: 0.5rem;
}

.demo-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.demo-dot-red { background: #ef4444; }
.demo-dot-yellow { background: #f59e0b; }
.demo-dot-green { background: #10b981; }

.demo-title {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.demo-models {
  display: flex;
  gap: 0.5rem;
}

.demo-model-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.demo-model-badge.claude {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.demo-model-badge.gpt {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.demo-model-badge.gemini {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.demo-messages {
  padding: 1.5rem;
  max-height: 24rem;
  overflow-y: auto;
}

.demo-message {
  margin-bottom: 1rem;
}

.demo-message-user {
  display: flex;
  justify-content: flex-end;
}

.demo-message-user .demo-message-content {
  background: var(--primary-500);
  color: white;
  border-radius: 1rem 1rem 0.25rem 1rem;
  max-width: 80%;
}

.demo-message-ai .demo-message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.demo-message-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.demo-message-avatar.claude { background: #f97316; }
.demo-message-avatar.gpt { background: #10b981; }
.demo-message-avatar.gemini { background: #3b82f6; }

.demo-message-name {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.demo-message-ai .demo-message-content {
  background: var(--slate-800);
  color: var(--slate-200);
  border-radius: 1rem;
  max-width: 80%;
}

.demo-message-content {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.demo-input {
  background: var(--slate-800);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--slate-700);
  display: flex;
  gap: 0.75rem;
}

.demo-input input {
  flex: 1;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--slate-200);
  font-size: 0.875rem;
}

.demo-input input::placeholder {
  color: var(--slate-500);
}

.demo-input button {
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .pricing-card { padding: 2rem; }
}

.pricing-card.highlighted {
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-500);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.pricing-header p {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--slate-900);
}

.pricing-period {
  color: var(--slate-500);
}

.pricing-credits {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.pricing-features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-features ul {
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
}

.pricing-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-card.highlighted .pricing-features li svg {
  color: var(--primary-500);
}

.pricing-card .btn {
  width: 100%;
}

/* FAQ */
.faq-container {
  max-width: 48rem;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-900);
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--slate-400);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700), var(--accent-700));
  padding: 6rem 0;
}

.cta-content {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-content h2 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .cta-content h2 { font-size: 3rem; }
}

.cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .cta-content p { font-size: 1.25rem; }
}

.cta-content .btn-primary {
  background: white;
  color: var(--primary-600);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.cta-content .btn-primary:hover {
  background: var(--slate-50);
}

.cta-trust {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(5, 1fr); }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand { grid-column: span 1; }
}

.footer-brand .header-logo {
  margin-bottom: 1rem;
}

.footer-brand .header-logo span {
  color: white;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 2rem;
  height: 2rem;
  background: var(--slate-800);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--slate-700);
  color: white;
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
}

/* Legal pages */
.legal-content {
  padding-top: 6rem;
}

.legal-header {
  padding: 6rem 0 3rem;
  background: linear-gradient(to bottom, var(--slate-50), white);
}

.legal-header h1 {
  margin-bottom: 0.5rem;
}

.legal-header .date {
  color: var(--slate-600);
  font-size: 1.125rem;
}

.legal-body {
  padding: 3rem 0 6rem;
  max-width: 48rem;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2rem;
  padding: 2rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section p {
  color: var(--slate-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--slate-600);
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-section a {
  color: var(--primary-600);
}

.legal-section a:hover {
  color: var(--primary-700);
}

.legal-section.highlight {
  border-left: 4px solid var(--warning);
}

.legal-section.alert {
  border-left: 4px solid var(--error);
}

/* Chat Page */
.chat-page {
  padding-top: 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-container {
  flex: 1;
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--slate-200);
}

.chat-header-bar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-mode-toggle {
  display: flex;
  gap: 0.5rem;
}

.chat-mode-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-mode-btn.active {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--slate-50);
}

.chat-message {
  margin-bottom: 1rem;
  animation: slide-up 0.3s ease-out;
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.chat-message-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.chat-message-avatar.user { background: var(--slate-700); }
.chat-message-avatar.claude { background: #f97316; }
.chat-message-avatar.chatgpt { background: #10b981; }
.chat-message-avatar.gemini { background: #3b82f6; }
.chat-message-avatar.facilitator { background: var(--accent-500); }

.chat-message-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

.chat-message-meta {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.chat-message-content {
  background: white;
  border-radius: 0 1rem 1rem 1rem;
  padding: 1rem;
  margin-left: 2.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-message.user .chat-message-content {
  background: var(--primary-500);
  color: white;
  border-radius: 1rem 1rem 0 1rem;
  margin-left: 0;
  margin-right: 0;
}

.chat-message.system .chat-message-content {
  background: var(--slate-100);
  border-radius: 0.5rem;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  background: white;
}

.chat-input-wrapper {
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary-500);
}

.chat-send-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-send-btn:hover {
  background: var(--primary-600);
}

.chat-send-btn:disabled {
  background: var(--slate-300);
  cursor: not-allowed;
}

/* Chat Sidebar */
.chat-sidebar {
  width: 320px;
  background: white;
  overflow-y: auto;
  display: none;
}

@media (min-width: 1024px) {
  .chat-sidebar { display: block; }
}

.sidebar-section {
  padding: 1.25rem;
  border-bottom: 1px solid var(--slate-100);
}

.sidebar-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Synthesis Panel */
.synthesis-panel {
  background: var(--primary-50);
  border-radius: 0.75rem;
  padding: 1rem;
}

.synthesis-confidence {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.synthesis-confidence.pass {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.synthesis-confidence.fail {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.synthesis-section {
  margin-bottom: 0.75rem;
}

.synthesis-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
}

.synthesis-item {
  font-size: 0.8125rem;
  color: var(--slate-600);
  padding: 0.25rem 0;
}

.synthesis-item.agreement { color: var(--success); }
.synthesis-item.disagreement { color: var(--error); }
.synthesis-item.open-question { color: var(--warning); }

/* Closure Panel */
.closure-panel {
  background: var(--slate-50);
  border-radius: 0.75rem;
  padding: 1rem;
}

.closure-panel.closed {
  background: rgba(16, 185, 129, 0.1);
}

.closure-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.closure-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.closure-btn.accept {
  background: var(--success);
  color: white;
}

.closure-btn.reject {
  background: var(--error);
  color: white;
}

.closure-btn.abandon {
  background: var(--slate-200);
  color: var(--slate-600);
}

.closure-rationale {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  resize: none;
  margin-bottom: 0.5rem;
}

/* DAP Meters */
.dap-meters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dap-meter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dap-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
}

.dap-avatar.claude { background: #f97316; }
.dap-avatar.chatgpt { background: #10b981; }
.dap-avatar.gemini { background: #3b82f6; }

.dap-bar {
  flex: 1;
  height: 0.5rem;
  background: var(--slate-200);
  border-radius: 9999px;
  overflow: hidden;
}

.dap-fill {
  height: 100%;
  background: var(--primary-500);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.dap-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-600);
  width: 2.5rem;
  text-align: right;
}

/* Invariants */
.invariants-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invariant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.invariant-name {
  color: var(--slate-600);
}

.invariant-status {
  font-weight: 600;
  font-size: 0.75rem;
}

.invariant-status.pass { color: var(--success); }
.invariant-status.fail { color: var(--error); }

/* Status indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.status-indicator.connected .status-dot { background: var(--success); }
.status-indicator.connecting .status-dot {
  background: var(--warning);
  animation: pulse 1s infinite;
}
.status-indicator.disconnected .status-dot { background: var(--error); }

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

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

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-500);
  color: white;
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--primary-700);
  outline-offset: 2px;
}

/* Focus visible styles for better keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Hero model icons with SVGs */
.hero-model svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 640px) {
  .hero-model svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}
