/* Asista Pro — Design System */

:root {
  --bg: #08090B;
  --bg-soft: #0E0F13;
  --bg-card: #121217;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ink-50: #F5F5F7;
  --ink-100: #E6E6EA;
  --ink-200: #C2C2CC;
  --ink-300: #9A9AA8;
  --ink-400: #6E6E7C;
  --brand-400: #818CF8;
  --brand-500: #6366F1;
  --brand-600: #4F46E5;
  --accent-400: #22D3EE;
  --accent-500: #06B6D4;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink-100);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  letter-spacing: -0.01em;
}

/* Typography */
.font-display {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.font-serif-italic {
  font-family: 'Fraunces', 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.text-balance {
  text-wrap: balance;
}

.text-gradient {
  background: linear-gradient(135deg, #F5F5F7 0%, #A5B4FC 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #818CF8 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Backgrounds */
.bg-hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.35), rgba(8, 9, 11, 0) 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(34, 211, 238, 0.12), rgba(8, 9, 11, 0) 70%),
    #08090B;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 40%, transparent 100%);
}

.bg-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(34, 211, 238, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-50);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--ink-200);
}

.btn-ghost:hover {
  color: var(--ink-50);
}

/* Nav */
.nav {
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--ink-200);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--ink-50);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--ink-50);
}

/* Chip / Badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--brand-400);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22D3EE;
  box-shadow: 0 0 8px #22D3EE;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

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

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
}

/* Divider */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* Inputs */
.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--ink-50);
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--brand-500);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input::placeholder {
  color: var(--ink-400);
}

textarea.input {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Label */
.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-200);
  margin-bottom: 0.5rem;
}

/* Icon container */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--brand-400);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.7s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

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

/* Pricing highlighted */
.card-featured {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  position: relative;
}

.card-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, #6366F1, #22D3EE, #6366F1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* Mobile nav */
.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
}

/* Utility: no-scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ============ MODERN HERO ENHANCEMENTS ============ */

/* Circular icon with glow ring (like reference cards) */
.icon-circle {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.15) 60%, rgba(8, 9, 11, 0.8) 100%);
  border: 2px solid rgba(129, 140, 248, 0.4);
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.08),
    0 0 40px rgba(99, 102, 241, 0.25),
    inset 0 0 20px rgba(34, 211, 238, 0.1);
  color: #F5F5F7;
}

.icon-circle svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.6));
}

/* Stat pill */
.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-pill .stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1;
  background: linear-gradient(135deg, #A5B4FC 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-pill .stat-label {
  font-size: 0.75rem;
  color: var(--ink-300);
  text-transform: none;
}

/* Animated progress bar */
.metric-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #6366F1 0%, #22D3EE 100%);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
  width: 0;
  animation: fillBar 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--bar-width, 50%); }
}

/* Hero orbit visual */
.orbit-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

.orbit-ring::before { inset: 14%; }
.orbit-ring::after { inset: 28%; }

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(129, 140, 248, 0.9), rgba(79, 70, 229, 0.6) 40%, rgba(6, 182, 212, 0.4) 70%, rgba(8, 9, 11, 0.9) 100%);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.4),
    0 0 60px rgba(99, 102, 241, 0.5),
    0 0 120px rgba(34, 211, 238, 0.2),
    inset 0 0 40px rgba(34, 211, 238, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: corePulse 4s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4), 0 0 60px rgba(99, 102, 241, 0.5), 0 0 120px rgba(34, 211, 238, 0.2), inset 0 0 40px rgba(34, 211, 238, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6), 0 0 80px rgba(99, 102, 241, 0.7), 0 0 160px rgba(34, 211, 238, 0.35), inset 0 0 60px rgba(34, 211, 238, 0.35); }
}

.orbit-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: floatY 6s ease-in-out infinite;
}

.orbit-icon svg,
.orbit-icon img {
  width: 32px;
  height: 32px;
}

.orbit-icon.pos-1 { top: 5%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.orbit-icon.pos-2 { top: 30%; right: 0; animation-delay: 1.5s; }
.orbit-icon.pos-3 { bottom: 15%; right: 10%; animation-delay: 2s; }
.orbit-icon.pos-4 { bottom: 15%; left: 10%; animation-delay: 2.5s; }
.orbit-icon.pos-5 { top: 30%; left: 0; animation-delay: 1s; }

@keyframes floatY {
  0%, 100% { transform: translate(var(--tx, 0), 0); }
  50% { transform: translate(var(--tx, 0), -12px); }
}

.orbit-icon.pos-1 { --tx: -50%; }

/* Dotted connector lines */
.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(129, 140, 248, 0.4) 0, rgba(129, 140, 248, 0.4) 4px, transparent 4px, transparent 8px);
  transform-origin: left center;
  pointer-events: none;
}

/* Circle icon cards (benefit section) */
.benefit-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.3);
}

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

/* Tag small */
.tag-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #A5B4FC 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ CHAT DEMO ============ */
.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366F1, #22D3EE);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
  color: white;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse-dot 2s ease-in-out infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  min-height: 300px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: chatFadeIn 0.3s ease-out;
}

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

.chat-bubble-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--ink-100);
  border-bottom-left-radius: 4px;
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-300);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.625rem 1rem;
  color: var(--ink-50);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--brand-500);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.chat-input-area input::placeholder {
  color: var(--ink-400);
}

.chat-input-area input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-limit-msg {
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--ink-300);
  border-top: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.05);
}

.chat-limit-msg a {
  color: var(--brand-400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-limit-msg a:hover {
  color: var(--accent-400);
}

/* Metric row */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.metric-row .metric-name {
  font-size: 0.9375rem;
  color: var(--ink-200);
  font-weight: 500;
}

.metric-row .metric-value {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.125rem;
  background: linear-gradient(135deg, #A5B4FC 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

