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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1628;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(99,179,237,0.4);
  --text-primary: #f0f4ff;
  --text-secondary: #8899bb;
  --text-muted: #556080;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;
  --accent-teal: #14b8a6;
  --accent-red: #ef4444;
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #0d1b3e 50%, #0a0e1a 100%);
  --gradient-card: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.05));
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── BACKGROUND ORBS ── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: #3b82f6; top: -200px; right: -200px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -100px; left: -100px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: #06b6d4; top: 50%; left: 50%; animation-delay: -14s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.95); }
}

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.nav-logo-text { font-size: 1.2rem; font-weight: 700; }
.nav-logo-sub { font-size: 0.75rem; color: var(--text-secondary); }
.nav-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: white; font-size: 0.7rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; letter-spacing: 0.05em;
}

/* ── HERO ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent-cyan); font-size: 0.8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-top: 40px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── SECTION ── */
.section { padding: 60px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-secondary); }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(59,130,246,0.15); color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.3);
}

/* ── AGENT GRID ── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.agent-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--card-gradient, linear-gradient(135deg, rgba(59,130,246,0.08), transparent));
  opacity: 0; transition: opacity 0.3s;
}
.agent-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.agent-card:hover::before { opacity: 1; }

.agent-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
  background: var(--icon-bg, rgba(59,130,246,0.15));
}
.agent-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.agent-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.agent-tech {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.tech-badge {
  font-size: 0.68rem; font-weight: 600; padding: 3px 8px;
  border-radius: 6px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); color: var(--text-secondary);
}
.agent-arrow {
  position: absolute; top: 20px; left: 20px;
  font-size: 1.2rem; opacity: 0; transform: translateX(8px);
  transition: var(--transition); color: var(--accent-cyan);
}
.agent-card:hover .agent-arrow { opacity: 1; transform: translateX(0); }

/* ── PROMPT BUILDER (Hero CTA) ── */
.prompt-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
}
.prompt-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; letter-spacing: 0.05em; }
.prompt-input-row { display: flex; gap: 12px; }
.prompt-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: var(--transition);
  direction: rtl;
}
.prompt-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.prompt-input::placeholder { color: var(--text-muted); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white; border: none; border-radius: var(--radius-sm);
  font-family: 'Heebo', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 14px 28px; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Heebo', sans-serif; font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ── ROUTING OUTPUT ── */
.routing-output {
  margin-top: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #7dd3fc;
  min-height: 60px;
  display: none;
  white-space: pre-wrap;
  line-height: 1.6;
}
.routing-output.visible { display: block; }

/* ── WORKFLOW STEPS ── */
.workflow-steps {
  display: flex; gap: 0; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 180px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  position: relative;
}
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.step-num {
  font-size: 0.7rem; font-weight: 700; color: var(--accent-cyan);
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.step-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 0.8rem; color: var(--text-secondary); }
.step-arrow {
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; z-index: 2; color: var(--accent-blue);
}
.step:first-child .step-arrow { display: none; }

/* ── DEPLOYMENT CARD ── */
.deploy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.deploy-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition);
}
.deploy-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.deploy-icon { font-size: 2rem; margin-bottom: 12px; }
.deploy-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.deploy-desc { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }
.deploy-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; margin-top: 12px;
  color: var(--accent-green);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer a { color: var(--accent-blue); text-decoration: none; }

/* ── AGENT PAGE ── */
.agent-page-header {
  padding: 60px 0 40px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.83rem; color: var(--text-muted); margin-bottom: 24px;
}
.breadcrumb a { color: var(--accent-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.agent-page-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; }
.agent-page-sub { color: var(--text-secondary); font-size: 1rem; }

.interface-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
}
.interface-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-secondary); letter-spacing: 0.05em; }

label { display: block; font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
textarea, select, input[type="text"], input[type="file"] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Heebo', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: var(--transition);
  direction: rtl;
  margin-bottom: 16px;
}
textarea:focus, select:focus, input[type="text"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
textarea { resize: vertical; min-height: 120px; }
select option { background: #0f1628; }

.output-area {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  min-height: 140px; font-size: 0.88rem; line-height: 1.8;
  color: var(--text-secondary); white-space: pre-wrap;
  display: none;
}
.output-area.visible { display: block; color: var(--text-primary); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-size: 0.8rem; padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  font-family: 'Heebo', sans-serif;
}
.chip:hover, .chip.active { background: var(--accent-blue); border-color: var(--accent-blue); color: white; }

.spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.1); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .agent-grid { grid-template-columns: 1fr; }
  .workflow-steps { flex-direction: column; }
  .step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .step-arrow { display: none; }
  .prompt-input-row { flex-direction: column; }
}
