/* ============================================
   HUMEE Design System
   Navy (#1a365d) + Gold (#d4a843) + White
   ============================================ */

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

:root {
  --navy: #1a365d;
  --navy-light: #2a4a7f;
  --navy-dark: #0f2341;
  --gold: #d4a843;
  --gold-light: #e8c876;
  --gold-dark: #b8922e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e4e8;
  --gray-300: #c9cdd4;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--gray-700);
  line-height: 1.7;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-logo {
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 8px;
}

.hero-hotel-name {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-tagline {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 300;
}

/* ============================================
   AGENT CARDS
   ============================================ */

.agents-section {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.agent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

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

.agent-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
}

.agent-card h3 {
  margin-bottom: 4px;
}

.agent-role {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agent-tagline {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.agent-capabilities {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.agent-capabilities li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.agent-capabilities li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.agent-card .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.step {
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
}

/* ============================================
   VALUE PROPOSITION
   ============================================ */

.value-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}

.value-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.value-section .section-title p {
  color: rgba(255,255,255,0.7);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat {
  padding: 24px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--gray-50);
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.footer p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

.footer-brand {
  color: var(--navy) !important;
  font-weight: 600;
}

/* ============================================
   CHAT LAYOUT
   ============================================ */

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--gray-50);
}

.chat-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.chat-back {
  color: var(--white);
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}
.chat-back:hover { opacity: 1; }

.chat-header-info {
  flex: 1;
}

.chat-header-info h2 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.chat-header-info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================
   CHAT MESSAGES
   ============================================ */

.message {
  max-width: 720px;
  animation: fadeIn 0.2s ease;
}

.message-user {
  align-self: flex-end;
  margin-left: auto;
}

.message-agent {
  align-self: flex-start;
}

.message-bubble {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.65;
}

.message-user .message-bubble {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.message-agent .message-bubble {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}

/* Markdown inside agent messages */
.message-agent .message-bubble h1,
.message-agent .message-bubble h2,
.message-agent .message-bubble h3 {
  color: var(--navy);
  margin: 16px 0 8px;
  font-size: 1rem;
}
.message-agent .message-bubble h1:first-child,
.message-agent .message-bubble h2:first-child,
.message-agent .message-bubble h3:first-child {
  margin-top: 0;
}

.message-agent .message-bubble strong {
  color: var(--navy);
}

.message-agent .message-bubble ul,
.message-agent .message-bubble ol {
  margin: 8px 0;
  padding-left: 20px;
}

.message-agent .message-bubble li {
  margin-bottom: 4px;
}

.message-agent .message-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.85rem;
}

.message-agent .message-bubble th,
.message-agent .message-bubble td {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.message-agent .message-bubble th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--navy);
}

.message-agent .message-bubble p {
  margin-bottom: 8px;
  color: inherit;
}
.message-agent .message-bubble p:last-child {
  margin-bottom: 0;
}

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

/* ============================================
   TOOL INDICATORS
   ============================================ */

.tool-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--gray-700);
  animation: fadeIn 0.2s ease;
  max-width: 720px;
}

.tool-indicator.active .tool-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.2s infinite;
  flex-shrink: 0;
}

.tool-indicator.done .tool-check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

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

/* ============================================
   TYPING INDICATOR
   ============================================ */

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
  max-width: 80px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gray-300);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ============================================
   QUICK PROMPTS
   ============================================ */

.quick-prompts {
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
}

.quick-prompt {
  padding: 8px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.quick-prompt:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================
   CHAT INPUT
   ============================================ */

.chat-input-area {
  padding: 16px 24px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.chat-input-wrapper input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input-wrapper input:focus {
  border-color: var(--navy);
}

.chat-input-wrapper input::placeholder {
  color: var(--gray-300);
}

.chat-input-wrapper button {
  padding: 14px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.chat-input-wrapper button:hover:not(:disabled) {
  background: var(--navy-light);
}

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

/* ============================================
   SVG LOGO
   ============================================ */

.logo-svg {
  display: inline-block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }

  .agents-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  section { padding: 48px 0; }

  .chat-messages { padding: 16px; }
  .quick-prompts { padding: 8px 16px; }
  .chat-input-area { padding: 12px 16px; }
}
