:root {
  /* Dark premium color scheme */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #06b6d4;
  --accent: #a855f7;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-elevated: #273548;
  --border: rgba(99, 102, 241, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.app {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Glass morphism card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.caption {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: center;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary-light);
}

.nav-link.active::after {
  transform: scaleX(1);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-brand {
  position: relative;
  transition: all 0.3s ease;
}

.nav-brand svg {
  vertical-align: middle;
  margin-right: 0.5rem;
}

.nav-brand span {
  display: inline-block;
  vertical-align: middle;
}

.accent {
  color: var(--secondary);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.hero-feature:hover {
  background: var(--surface-elevated);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature-icon svg {
  width: 16px;
  height: 16px;
  color: white;
}

.hero-feature-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-feature-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-features {
    grid-template-columns: 1fr;
  }
}

/* Features Section */
.features {
  padding: 100px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: center;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Preview Section */
.preview {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.preview-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg);
  transition: var(--transition);
}

.preview-container:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-5px);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

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

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.preview-dot.active {
  background: var(--primary);
}

.preview-content {
  padding: 2rem;
}

.preview-sidebar {
  width: 200px;
  background: var(--background);
  border-right: 1px solid var(--border);
  height: 400px;
  float: left;
}

.preview-main {
  margin-left: 200px;
  padding: 1rem;
}

.preview-chat {
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.preview-message {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.preview-user-msg {
  background: var(--primary);
  color: white;
  margin-left: 20%;
}

.preview-assistant-msg {
  background: var(--surface);
  border: 1px solid var(--border);
}

.preview-activity {
  background: var(--background);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-left: 3px solid var(--primary);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.preview-approval {
  background: rgba(204, 167, 0, 0.1);
  border: 1px solid rgba(204, 167, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: 0.5rem 0;
}

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

.preview-status.active {
  background: #3fb950;
  animation: pulse 2s infinite;
}

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

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--surface-elevated);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2394a3b8" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Card */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

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

.text-primary { color: var(--primary-light); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-white { color: white; }

.bg-primary { background: var(--gradient-primary); }
.bg-secondary { background: var(--gradient-secondary); }
.bg-surface { background: var(--surface); }
.bg-surface-elevated { background: var(--surface-elevated); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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

.pulse {
  animation: pulse 2s infinite;
}

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

/* Media Generation UI Styles */
.media-quick-access {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.media-quick-access-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.media-quick-access-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.media-quick-access-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Media Generation Panel */
.media-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.media-panel.active {
    transform: translateX(0);
}

.close-media-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-media-panel:hover {
    background: var(--surface-elevated);
    border-color: var(--primary);
}

.close-media-panel svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .media-panel {
        padding: 1rem;
    }
    .media-quick-access-buttons {
        flex-direction: column;
    }
    .media-quick-access-buttons .btn {
        width: 100%;
    }
}

/* Responsive media panel on smaller screens */
@media (max-width: 480px) {
    .media-panel {
        padding: 0.5rem;
    }
    .media-panel .container {
        padding: 0;
    }
    .media-quick-access {
        margin-top: 1rem;
        padding: 1rem;
    }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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

.pulse {
  animation: pulse 2s infinite;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .preview-container {
    margin: 0 1rem;
    transform: perspective(1000px) rotateX(1deg) scale(0.9);
  }
  
  .preview-sidebar {
    width: 100%;
    height: auto;
    float: none;
  }
  
  .preview-main {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 80px 0 40px;
  }
  
  .card, .feature-card {
    padding: 1.5rem;
  }
  
  .preview-container {
    margin: 0 0.5rem;
    transform: perspective(1000px) rotateX(0.5deg) scale(0.85);
  }
}

/* Toast notifications */
#toast-container {
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    max-width: 420px;
    opacity: 0;
    transform: translateY(1rem) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

.toast-error {
    border-color: rgba(248, 81, 73, 0.5);
    background: rgba(248, 81, 73, 0.1);
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.toast-info {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

/* Button copied/failed states */
.btn-copied {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
}

.btn-failed {
    background: rgba(248, 81, 73, 0.2) !important;
    border-color: rgba(248, 81, 73, 0.5) !important;
    color: #f85149 !important;
}

/* Scroll animations */
.animate-in {
    animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Interactive Logo */
.nav-brand {
    position: relative;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.nav-brand.pulse {
    animation: logoPulse 2s infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Interactive Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Interactive Preview Container */
.preview-container {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
}

.preview-dot {
    transition: all 0.3s ease;
}

.preview-dot.active {
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Interactive Sidebar Tabs */
.sidebar-tab {
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.sidebar-tab:hover::after,
.sidebar-tab.active::after {
    transform: scaleX(1);
}

.sidebar-tab.active {
    color: var(--primary-light);
}

/* Interactive Selector Dropdowns */
.selector-button {
    transition: all 0.3s ease;
}

.selector-button:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.selector-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.selector-option:last-child {
    border-bottom: none;
}

.selector-option:hover,
.selector-option.selected {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

/* Interactive Chat Interface */
.message {
    margin-bottom: 1rem;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-assistant .message-avatar {
    background: var(--gradient-primary);
}

.message-user .message-avatar {
    background: var(--primary);
}

.composer {
    position: relative;
    transition: all 0.3s ease;
}

.composer-input {
    resize: none;
    min-height: 44px;
    max-height: 120px;
    padding-right: 60px;
}

.composer-send {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.composer-send:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Interactive Activity Cards */
.activity-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.activity-card-header {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: var(--surface);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.activity-card-header:hover {
    background: var(--surface-elevated);
}

.activity-card-header[aria-expanded="true"] {
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.activity-icon-tool {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.activity-icon-terminal {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.activity-icon-approval {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.activity-icon-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.activity-icon-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.activity-chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.activity-card-header[aria-expanded="true"] .activity-chevron {
    transform: rotate(180deg);
}

/* Interactive Approval Card */
.activity-card-approval {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.approval-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.approval-title {
    font-weight: 600;
    color: #fbbf24;
}

.approval-body {
    padding: 1rem;
}

.approval-action {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.approval-desc {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.approval-actions {
    display: flex;
    gap: 1rem;
}

.approval-actions .btn {
    flex: 1;
    padding: 0.5rem;
}

.approval-result {
    padding: 0.75rem;
    margin: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.approval-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.approval-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Interactive Terminal */
.terminal-panel {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.875rem;
    max-height: 200px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.terminal-line-prompt {
    color: var(--primary-light);
    font-weight: 600;
}

.terminal-line-output {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* Interactive Settings */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 3px;
}

.toggle.active {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle.active .toggle-thumb {
    transform: translateX(20px);
}

.toggle:hover {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .preview-sidebar {
        width: 100%;
        height: auto;
    }

    .preview-main {
        margin-left: 0;
    }

    .activity-panel {
        display: none;
    }

    .preview-title {
        font-size: 0.75rem;
    }

    .sidebar-panels {
        display: none;
    }
}

/* Simulated badge */
.simulated-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Activity status indicators */
.agent-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.activity-status-idle {
    background: var(--text-tertiary);
}

.activity-status-thinking {
    background: var(--primary-light);
    animation: pulse 1.5s infinite;
}

.activity-status-using-tool {
    background: var(--secondary);
    animation: pulse 1.5s infinite;
}

.activity-status-approval {
    background: var(--accent);
    animation: pulse 1.5s infinite;
}

.activity-status-completed {
    background: #4ade80;
}

.activity-status-error {
    background: #ef4444;
}

/* Reset button */
.preview-reset {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.preview-reset:hover {
    background: var(--surface-elevated);
    border-color: var(--primary);
}

/* Preview title */
.preview-title {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}
