/* Hydra Website Styles */

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

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --secondary: #06b6d4;
  --secondary-light: #22d3ee;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light-gray: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

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

.logo-img {
  height: 2.5rem;
  width: auto;
}

.logo-icon {
  font-size: 2rem;
}

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

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  box-shadow:
    0 4px 14px rgba(79, 70, 229, 0.25),
    0 0 0 0 rgba(79, 70, 229, 0.4);
  position: relative;
  overflow: hidden;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(79, 70, 229, 0.4),
      0 0 30px rgba(79, 70, 229, 0.2);
  }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.btn-secondary:hover::before {
  transform: translateY(0);
}

.btn-secondary span {
  position: relative;
  z-index: 1;
}

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

/* Hero Section */
.hero {
  padding: 8rem 0 10rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(255, 255, 255, 1) 100%),
    radial-gradient(ellipse at top, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
  color: var(--dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
  border-radius: 50%;
  filter: blur(60px);
  animation: floatShape1 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatShape1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 50px) scale(0.9);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .container::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, transparent 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(40px);
  animation: floatShape2 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatShape2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-40px, 30px) rotate(180deg);
  }
}

.hero .container::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%);
  border-radius: 50%;
  filter: blur(50px);
  animation: floatShape3 18s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatShape3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -20px) scale(1.2);
  }
  75% {
    transform: translate(-20px, 40px) scale(0.8);
  }
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero .btn-primary {
  background: var(--primary);
  color: var(--white);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.hero .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.hero .btn-secondary {
  border-color: var(--border);
  color: var(--dark);
  background: var(--white);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero .btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

/* Sections */
section {
  padding: 6rem 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

section > * {
  position: relative;
  z-index: 1;
}

section h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

section .subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Quick Start */
.quick-start {
  background: var(--white);
}

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

.setup-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.setup-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.setup-number {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.setup-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--dark);
}

.setup-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Command Styling */
.command-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.command-item {
  margin-bottom: 1rem;
}

.command-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.ide-icon {
  font-size: 1.25rem;
}

.command-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  color: var(--dark);
  position: relative;
}

.command-box code {
  flex: 1;
  word-break: break-all;
  color: var(--dark);
  line-height: 1.6;
}

.copy-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.copy-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Example Chat */
.example-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.chat-msg span:last-child {
  flex: 1;
  word-wrap: break-word;
}

.user-msg {
  background: var(--light-gray);
  border: 1px solid var(--border);
  color: var(--dark);
  font-weight: 500;
}

.ai-msg {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--dark);
}

.ai-msg strong {
  color: var(--success);
  font-weight: 700;
}

.msg-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Code Block */
.code-block {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #a5f3fc;
  padding: 2rem;
  border-radius: 1rem;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  position: relative;
  margin: 2rem 0;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 0 30px rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  animation: codeGlow 3s ease-in-out infinite;
}

@keyframes codeGlow {
  0%, 100% {
    box-shadow:
      var(--shadow-lg),
      0 0 0 1px rgba(99, 102, 241, 0.3),
      0 0 30px rgba(99, 102, 241, 0.15);
  }
  50% {
    box-shadow:
      var(--shadow-lg),
      0 0 0 1px rgba(99, 102, 241, 0.5),
      0 0 40px rgba(99, 102, 241, 0.25);
  }
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.15), transparent);
  pointer-events: none;
}

.code-block code {
  display: block;
  white-space: pre;
  line-height: 1.7;
  counter-reset: line;
}

.code-block code::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2em;
  margin-right: 1.5em;
  color: rgba(165, 243, 252, 0.3);
  text-align: right;
  user-select: none;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.code-label {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.copy-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
}

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

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.feature p {
  color: var(--gray);
}

/* Workflows Grid */
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.workflow-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

.workflow-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 300% 300%;
  border-radius: 1rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.workflow-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.workflow-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.workflow-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--dark);
}

.workflow-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--primary);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.workflow-checkbox:hover {
  transform: scale(1.1);
}

.workflow-title label {
  cursor: pointer;
  flex: 1;
  transition: color 0.2s ease;
}

.workflow-title label:hover {
  color: var(--primary);
}

.workflow-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-sm);
}

.workflow-description {
  color: var(--gray);
  margin-bottom: 1rem;
}

.workflow-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.workflow-actions {
  display: flex;
  gap: 0.5rem;
}

/* View Workflow Button */
.view-workflow-btn {
  display: inline-block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.view-workflow-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-workflow-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.view-workflow-btn:hover::before {
  opacity: 1;
}

.view-workflow-btn span {
  position: relative;
  z-index: 1;
}

/* Page Content */
.page-content {
  padding: 5rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.page-content h2 {
  font-size: 2.25rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.75rem;
}

.page-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

.page-content h3 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--gray);
}

.page-content ul, .page-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--gray);
}

/* Alert Box */
.alert {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-left: 5px solid var(--primary);
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left-color: var(--success);
}

.alert-success::before {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.alert h4 {
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

.alert p {
  color: var(--dark);
  margin: 0;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

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

.footer-section a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
}

/* Modal Overlay */
.workflow-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.workflow-modal.open {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 1rem;
  max-width: 1400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 2rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray);
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--light-gray);
  color: var(--dark);
}

.modal-body {
  padding: 2rem;
  overflow: hidden;
  max-height: calc(80vh - 80px);
  position: relative;
  cursor: grab;
}

.modal-body:active {
  cursor: grabbing;
}

.zoom-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zoom-btn:hover {
  background: var(--light-gray);
  transform: scale(1.1);
}

.zoom-level {
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Deploy Bar */
.deploy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
  color: white;
  padding: 2rem 2rem;
  box-shadow: 0 -8px 32px rgba(99, 102, 241, 0.25);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.deploy-bar.active {
  transform: translateY(0);
  animation: slideUpBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpBounce {
  0% {
    transform: translateY(100%);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.deploy-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.deploy-bar-info {
  flex: 1;
}

.deploy-bar-count {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deploy-bar-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 500;
}

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

.btn-deploy {
  background: white;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-deploy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-deploy:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-deploy:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-clear {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* Clients Page */
.client-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.client-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.client-section:hover::before {
  transform: scaleX(1);
}

.client-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.client-header h3 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--dark);
  font-weight: 700;
}

.client-badge {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.025em;
}

.client-description {
  color: var(--gray);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.client-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Workflow Flow Diagram - Horizontal */
.workflow-flow {
  background: var(--light-gray);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  margin: 0;
  display: inline-block;
  min-width: max-content;
  transform-origin: 0 0;
  will-change: transform;
}

.flow-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: stretch;
  padding-bottom: 1rem;
  width: max-content;
}

.flow-step {
  display: flex;
  flex-direction: column;
  min-width: 280px;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.flow-step::after {
  content: '→';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.flow-step:last-child::after {
  content: '';
}

.flow-step-number {
  background: var(--primary);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-step-content {
  flex: 1;
}

.flow-step-type {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.flow-step-type.agent {
  background: #fce7f3;
  color: #be185d;
}

.flow-step-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.flow-step-description {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.flow-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--dark);
}

.tool-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tool-specific colors */
.tool-badge.jira {
  border-color: #0052cc;
  background: #e6f0ff;
}

.tool-badge.notion {
  border-color: #000000;
  background: #f7f7f7;
}

.tool-badge.confluence {
  border-color: #0052cc;
  background: #e6f0ff;
}

.tool-badge.asana {
  border-color: #f06a6a;
  background: #ffe6e6;
}

.tool-badge.github {
  border-color: #24292e;
  background: #f0f0f0;
}

.tool-badge.slack {
  border-color: #4a154b;
  background: #f3e5f5;
}

.tool-badge.pytest {
  border-color: #009fe3;
  background: #e6f7ff;
}

.tool-badge.docker {
  border-color: #2496ed;
  background: #e6f4ff;
}

.tool-badge.kubernetes {
  border-color: #326ce5;
  background: #e8f0ff;
}

/* View Workflow Button */
.view-workflow-btn {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-size: 0.95rem;
  width: 100%;
  margin-bottom: 1rem;
}

.view-workflow-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* First-Time User Banner */
.guidance-banner {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-left: 5px solid var(--primary);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.5s ease;
}

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

.guidance-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.guidance-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.guidance-banner h4 {
  color: var(--dark);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.guidance-banner p {
  color: var(--dark);
  margin: 0;
  opacity: 0.9;
}

.guidance-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.5rem;
}

.guidance-steps span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-close {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gray);
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--dark);
  transform: rotate(90deg);
}

/* Search and Filters */
.search-filter-section {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-bar {
  position: relative;
  max-width: 600px;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

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

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1.25rem;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Confirmation Modal */
.confirmation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.confirmation-modal.open {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.confirmation-content {
  background: var(--white);
  border-radius: 1.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.confirmation-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.confirmation-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.confirmation-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.confirmation-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.confirmation-header p {
  color: var(--gray);
  font-size: 1rem;
}

.confirmation-body {
  padding: 0 2rem 1.5rem;
}

.selected-workflows-list {
  background: var(--light-gray);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.workflow-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.workflow-item:last-child {
  margin-bottom: 0;
}

.workflow-item-icon {
  font-size: 1.5rem;
}

.workflow-item-name {
  flex: 1;
  font-weight: 600;
  color: var(--dark);
}

.confirmation-meta {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.confirmation-meta strong {
  color: var(--primary);
}

.confirmation-actions {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  gap: 1rem;
}

.confirmation-actions button {
  flex: 1;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-cancel {
  background: transparent;
  color: var(--gray);
  border: 2px solid var(--border);
}

.btn-cancel:hover {
  background: var(--light-gray);
  border-color: var(--gray);
  color: var(--dark);
}

.btn-confirm {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

/* Success Modal */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.success-modal.open {
  display: flex;
}

.success-content {
  background: var(--white);
  border-radius: 1.5rem;
  max-width: 450px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--success) 0%, #059669 100%);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: checkmark 0.8s ease;
}

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

.success-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.success-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.success-actions {
  display: flex;
  gap: 0.75rem;
}

.success-actions button {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-help {
  background: transparent;
  color: var(--gray);
  border: 2px solid var(--border);
}

.btn-help:hover {
  background: var(--light-gray);
  border-color: var(--gray);
  color: var(--dark);
}

.btn-done {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

/* Edit Selection Link */
.edit-selection-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.edit-selection-link:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateX(-4px);
}

/* Clients Grid Layout */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.client-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.client-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.client-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.client-icon {
  font-size: 2.5rem;
}

.client-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.client-card-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.client-card-action {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

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

/* Expandable Workflow Details */
.workflow-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.workflow-details.expanded {
  max-height: 600px;
  margin-top: 1.5rem;
}

.workflow-details-content {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 0;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

.workflow-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--border);
  background: var(--light-gray);
  border-radius: 0.75rem 0.75rem 0 0;
}

.workflow-diagram-header h4 {
  margin: 0;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 600;
}

.zoom-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.zoom-btn {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.zoom-level {
  font-size: 0.875rem;
  color: var(--gray);
  min-width: 3rem;
  text-align: center;
}

.workflow-diagram-container {
  height: 400px;
  overflow: auto;
  position: relative;
  background: var(--light-gray);
  border-radius: 0 0 0.75rem 0.75rem;
  cursor: grab;
}

.workflow-diagram-container:active {
  cursor: grabbing;
}

.workflow-diagram {
  display: flex;
  align-items: center;
  padding: 2rem;
  min-width: max-content;
  transform-origin: top left;
  transition: transform 0.1s ease-out;
}

.workflow-step {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  min-width: 200px;
  max-width: 250px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.workflow-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.workflow-step-number {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.workflow-step-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.workflow-step-type.agent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
}

.workflow-step-type.tool {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: var(--white);
}

.workflow-step-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.workflow-step-description {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.workflow-step-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-size: 0.625rem;
  color: var(--dark);
}

.tool-badge.github { border-color: #333; background: #f6f8fa; }
.tool-badge.jira { border-color: #0052cc; background: #deebff; }
.tool-badge.notion { border-color: #000; background: #f7f6f3; }
.tool-badge.confluence { border-color: #0052cc; background: #deebff; }
.tool-badge.slack { border-color: #e01e5a; background: #fff4f5; }
.tool-badge.pytest { border-color: #0a9edc; background: #e5f5fc; }

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  font-size: 1.5rem;
  color: var(--gray);
  font-weight: 700;
}

/* Disabled State */
.btn-deploy:disabled,
.btn-deploy.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Client Card Enhancements */
.client-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.client-icon {
  font-size: 2.5rem;
}

.client-card h3 {
  margin: 0.75rem 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.client-card p {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.client-card-actions {
  margin-top: auto;
}

.client-card-meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Client Details Modal */
.client-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.client-details-modal.open {
  display: flex;
}

.client-details-content {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-details-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--light-gray);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray);
}

.client-details-close:hover {
  background: var(--border);
  color: var(--dark);
  transform: rotate(90deg);
}

.client-details-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--dark);
}

.client-details-content .code-block {
  margin: 1.5rem 0;
}

/* Hero Problems & Solution */
.hero-problems {
  margin: 2.5rem auto;
  max-width: 750px;
}

.problem-line {
  font-size: 1.125rem;
  margin: 1rem 0;
  color: var(--gray);
  font-weight: 500;
  position: relative;
  padding-left: 2rem;
  text-align: left;
}

.problem-line::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.125rem;
}

.hero-solution {
  font-size: 1.375rem;
  max-width: 750px;
  margin: 3rem auto 0;
  color: var(--dark);
  line-height: 1.6;
  font-weight: 500;
}

.hero-solution strong {
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Problem Section */
.problem-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--light-gray) 100%);
  padding: 7rem 0;
}

.problem-section h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.problem-section .subtitle {
  font-size: 1.25rem;
  color: var(--gray);
}

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

.problem-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #ef4444 100%);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  animation: accentPulse 3s ease-in-out infinite;
}

@keyframes accentPulse {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

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

.problem-card:hover::after {
  transform: scaleX(1);
}

.problem-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
  border-color: rgba(239, 68, 68, 0.1);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: grayscale(20%);
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.problem-card p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.95rem;
  font-style: italic;
}

/* Solution Section */
.solution-section {
  background: var(--light-gray);
  padding: 7rem 0;
}

.solution-section h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.solution-section .subtitle {
  font-size: 1.25rem;
  color: var(--gray);
}

.solution-example {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  margin-top: 4rem;
  align-items: center;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.solution-left,
.solution-right {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.solution-left h3,
.solution-right h3 {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--gray);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.solution-arrow {
  font-size: 2.5rem;
  color: var(--gray);
  font-weight: 300;
}

/* Chat Bubbles */
.chat-bubble {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
}

.chat-bubble.user {
  background: var(--light-gray);
  border-color: var(--border);
}

.chat-bubble.ai {
  background: var(--white);
  border-color: var(--border);
}

.chat-bubble.ai-structured {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.chat-bubble p {
  margin: 0;
  color: var(--dark);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.chat-bubble.user p {
  font-weight: 600;
}

.chat-bubble.ai-structured p {
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
}

.chat-bubble.ai-structured strong {
  color: var(--success);
  font-weight: 700;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

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

/* Responsive */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .container, .nav-container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .workflows-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* Mobile and below (768px) */
@media (max-width: 768px) {
  .container, .nav-container {
    padding: 0 1rem;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: block;
    z-index: 101;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }

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

  .nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }

  .nav-links a:hover {
    background: var(--light-gray);
  }

  .nav-links .btn-primary {
    margin-top: 1rem;
    text-align: center;
  }

  /* Hero Section */
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero .tagline {
    font-size: 1.125rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-solution {
    font-size: 1.125rem;
  }

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

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Sections */
  section {
    padding: 4rem 0;
  }

  .problem-section h2,
  .solution-section h2,
  section h2 {
    font-size: 2rem;
  }

  section .subtitle {
    font-size: 1.05rem;
  }

  .steps, .features, .workflows-grid, .clients-grid, .setup-grid {
    grid-template-columns: 1fr;
  }

  .command-box {
    font-size: 0.8125rem;
    padding: 0.875rem 1rem;
  }

  .chat-msg {
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }

  .modal-content {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .flow-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .flow-step {
    min-width: 100%;
  }

  .flow-step::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.75rem;
    transform: translateX(-50%);
  }

  .flow-tools {
    width: 100%;
  }

  .guidance-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .guidance-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .search-filter-section {
    gap: 1rem;
  }

  .confirmation-actions,
  .success-actions {
    flex-direction: column;
  }

  .solution-example {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .solution-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .hero-problems {
    text-align: left;
  }

  .problem-line {
    font-size: 1rem;
  }

  .hero-solution {
    font-size: 1.125rem;
  }

  /* Deploy Bar Mobile */
  .deploy-bar {
    padding: 1.5rem 1rem;
  }

  .deploy-bar-content {
    flex-direction: column;
    gap: 1rem;
  }

  .deploy-bar-count {
    font-size: 1.5rem;
  }

  .deploy-bar-subtitle {
    font-size: 0.9rem;
  }

  .deploy-bar-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-deploy, .btn-clear {
    width: 100%;
  }

  /* Better Touch Targets */
  .copy-icon, .copy-btn, .zoom-btn, .filter-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .workflow-checkbox {
    width: 28px;
    height: 28px;
  }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
  .container, .nav-container {
    padding: 0 0.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero-solution {
    font-size: 1rem;
  }

  .problem-section h2,
  .solution-section h2,
  section h2 {
    font-size: 1.75rem;
  }

  section .subtitle {
    font-size: 0.95rem;
  }

  .page-content h1 {
    font-size: 2.5rem;
  }

  .page-content h2 {
    font-size: 1.75rem;
  }

  .setup-card, .workflow-card, .client-card, .problem-card {
    padding: 1.5rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }

  .nav-links {
    width: 100%;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 2rem;
  }

  .command-box {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .code-block {
    font-size: 0.8125rem;
    padding: 1.5rem;
  }
}
