/* ── Nimira Design System · Pitch-deck inspired ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

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

:root {
  /* Light pitch-deck palette: warm cream, soft coral, sage */
  --bg:      #f8f6f3;
  --bg2:     #ffffff;
  --bg3:     #f0ede8;
  --bg4:     #e8e4de;
  --border:  rgba(139,115,100,0.15);
  --border2: rgba(139,115,100,0.25);
  --accent:  #c97b5d;
  --accent2: #6b9080;
  --accent3: #a67c5d;
  --text:    #2d2a26;
  --text2:   #6b6359;
  --text3:   #9a9188;
  --green:   #5a9b8a;
  --red:     #c75c5c;
  --gold:    #c9a227;
  --r:       14px;
  --r2:      24px;
  --font:    'DM Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-heading: 'DM Sans', 'Outfit', system-ui, sans-serif;
  --shadow:  0 2px 20px rgba(45,42,38,0.06);
  --shadow-lg: 0 8px 40px rgba(45,42,38,0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea { font-family: var(--font); }

/* ── Typography ── */
h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 620px; margin: 0 auto; padding: 0 28px; }
.container-lg { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,246,243,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-logo:hover { color: var(--accent); }
.nav-logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  padding: 10px 18px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--accent); background: rgba(201,123,93,0.08); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  box-shadow: 0 4px 16px rgba(201,123,93,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,123,93,0.35);
}
.btn-secondary {
  background: var(--bg2);
  color: var(--text);
  border: 2px solid var(--border2);
}
.btn-secondary:hover { background: var(--bg3); border-color: var(--accent2); color: var(--accent2); }
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 2px solid var(--border);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); background: rgba(201,123,93,0.04); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-sm { padding: 24px; border-radius: var(--r); }

/* ── Form elements ── */
.input {
  width: 100%;
  background: var(--bg2);
  border: 2px solid var(--border2);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 18px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,123,93,0.12);
}
.input::placeholder { color: var(--text3); }

textarea.input { resize: none; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
}
.badge-purple { background: rgba(201,123,93,0.12); color: var(--accent); border: 1px solid rgba(201,123,93,0.25); }
.badge-blue   { background: rgba(107,144,128,0.12);  color: var(--accent2); border: 1px solid rgba(107,144,128,0.25); }
.badge-green  { background: rgba(90,155,138,0.12);  color: var(--green); border: 1px solid rgba(90,155,138,0.25); }
.badge-red    { background: rgba(199,92,92,0.12); color: var(--red);   border: 1px solid rgba(199,92,92,0.25); }

/* ── Progress bar ── */
.progress-track {
  height: 6px;
  background: var(--bg4);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── Axis bar ── */
.axis-bar-track {
  height: 8px;
  background: var(--bg4);
  border-radius: 4px;
  position: relative;
  margin: 10px 0;
}
.axis-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
}
.axis-bar-dot {
  width: 16px; height: 16px;
  background: white;
  border: 3px solid var(--accent2);
  border-radius: 50%;
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(45,42,38,0.15);
}

/* ── Chat bubbles ── */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
}
.message {
  display: flex;
  gap: 14px;
  max-width: 88%;
}
.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message-bubble {
  padding: 16px 20px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.message.assistant .message-bubble {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.message.user .message-bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 16px rgba(201,123,93,0.25);
}
.message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.message.assistant .message-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}
.message.user .message-avatar {
  background: var(--bg3);
  color: var(--text2);
}

/* ── Typing indicator ── */
.typing-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 18px 22px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  width: fit-content;
  box-shadow: var(--shadow);
}
.typing-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* ── Page header ── */
.page-header {
  padding: 100px 0 56px;
  text-align: center;
}
.page-header .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ── Section divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg2);
  border: 2px solid var(--border2);
  border-radius: var(--r);
  padding: 16px 22px;
  font-size: 15px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
  max-width: 360px;
}
.toast.success { border-color: rgba(90,155,138,0.4); }
.toast.error   { border-color: rgba(199,92,92,0.4); color: var(--red); }
@keyframes toast-in {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── Loading spinner ── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utilities ── */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .container, .container-sm, .container-lg { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hide-mobile { display: none; }
  .nav-logo-icon { width: 32px; height: 32px; }
  .nav-logo { font-size: 18px; }
}
