:root {
  --bg-color: #fafafa;
  --text-main: #111111;
  --text-muted: #737373;
  --border-color: #e5e5e5;
  --border-focus: #111111;
  --bubble-user: #f4f4f5;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Homepage */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.prompt-box {
  width: 100%;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-main);
  background: transparent;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-main);
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.submit-btn:hover {
  opacity: 0.7;
}

.suggestions {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.suggestion-btn {
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.suggestion-btn:hover {
  color: var(--text-main);
  text-decoration-color: var(--text-main);
}

.dot {
  color: var(--border-color);
  user-select: none;
}

.footer {
  margin-top: 4rem;
  text-align: center;
}

.powered-by {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.synergy-footer {
  margin-top: 0.5rem;
}

.synergy-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.synergy-link:hover {
  color: var(--text-main);
}

/* Chat Page */
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.chat-header {
  height: 56px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background-color: #ffffff;
}

.brand-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--text-main);
}

.text-btn {
  background: none;
  border: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.text-btn:hover {
  color: var(--text-main);
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.message {
  line-height: 1.6;
  font-size: 0.95rem;
}

.message.user {
  align-self: flex-end;
  background-color: var(--bubble-user);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  max-width: 85%;
}

.message.assistant {
  align-self: flex-start;
  max-width: 90%;
  color: var(--text-main);
}

.chat-footer {
  padding: 1rem 1.5rem 1.25rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-input-wrapper {
  max-width: 720px;
  width: 100%;
}

.chat-input-wrapper form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
}

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

.chat-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text-main);
}

.chat-powered-by {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
