/* Helix Unified Design System - Core Styles */
:root {
  --color-navy-deep: #0f1f3d;
  --color-navy-mid: #1a3a6e;
  --color-navy-dark: #0e3057;
  --color-orange-primary: #f97316;
  --color-orange-light: #fb923c;
  --color-teal-primary: #0284c7;
  --color-teal-light: #0ea5e9;
  --color-slate-alt: #f8fafc;
}

* { font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }

.hero-gradient { background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy-mid) 50%, var(--color-navy-dark) 100%); }
.accent-gradient { background: linear-gradient(135deg, var(--color-orange-primary) 0%, var(--color-orange-light) 100%); }
.teal-gradient { background: linear-gradient(135deg, var(--color-teal-primary) 0%, var(--color-teal-light) 100%); }
.section-alt { background: var(--color-slate-alt); }

.nav-sticky { backdrop-filter: blur(12px); background: rgba(15, 31, 61, 0.95); }

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.6; }

.feature-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(226, 232, 240, 0.8); }
.feature-card:hover { transform: translateY(-4px); border-color: var(--color-orange-primary); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.roadmap-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.roadmap-card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(249,115,22,0); }
}
.cta-primary { animation: pulse-orange 2.5s infinite; }

/* Chat UI */
.chat-window {
  background: #020617;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  overflow: hidden;
}
.chat-header {
  background: rgba(255,255,255,0.05);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.chat-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.7);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 10px rgba(16,185,129,0.9); }
}
.chat-messages {
  padding: 0.85rem;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-msg-user { flex-direction: row-reverse; }
.chat-bubble {
  max-width: 82%;
  padding: 0.45rem 0.8rem;
  border-radius: 1rem;
  font-size: 10.5px;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}
.chat-bubble-user {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  border-bottom-right-radius: 3px;
}
.chat-bubble-ai {
  background: rgba(255,255,255,0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-left-radius: 3px;
}
.chat-typing-dots {
  display: inline-flex;
  gap: 3px;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.07);
  border-radius: 1rem;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  align-items: center;
}
.chat-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #475569;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); background: #475569; }
  30% { transform: translateY(-4px); background: #f97316; }
}
.chat-input-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-input-mock {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 10px;
  color: #475569;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.chat-input-cursor {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: #f97316;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.chat-send-btn {
  width: 26px;
  height: 26px;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 8.5px;
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Custom Terminal Styling */
.terminal-window {
  background: #020617;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.terminal-header {
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
