:root {
  --bg-dark: #1B1B30;
  --bg-dark-2: #323357;
  --accent-blue: #66BEE3;
  --accent-cyan: #5bc8e8;
  --accent-purple: #6F56CE;
  --ring-blue: #56AACE;
  --text-white: #FFFFFF;
  --text-muted: #A7BCC4;
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(45deg, var(--bg-dark) 33%, var(--bg-dark-2) 100%);
  font-family: var(--font-body);
  color: var(--text-white);
}

.page {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.75em;
  color: var(--text-white);
}

h3 {
  font-size: 1.25em;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.body-copy {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.9;
  margin: 0;
}

.tagline {
  color: var(--accent-blue);
  font-weight: 500;
  line-height: 1.7;
}

/* Hero */

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 100%;
  border: 2px solid var(--ring-blue);
  object-fit: cover;
}

.hero h1 {
  font-size: 2.25em;
  line-height: 1.3;
}

.hero .tagline {
  max-width: 36rem;
}

/* About */

.about {
  text-align: left;
}

.about .body-copy {
  white-space: pre-line;
}

/* Agents grid */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.75rem;
}

.agent-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.agent-link:hover {
  text-decoration: underline;
}

/* Ask Flint */

.chat-box {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 24rem;
  overflow-y: auto;
}

.chat-message {
  padding: 0.75rem 1.1rem;
  border-radius: 1rem;
  max-width: 85%;
  line-height: 1.6;
  font-size: 0.95em;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--accent-cyan);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}

.chat-message.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-bottom-left-radius: 0.25rem;
}

.chat-message.pending {
  opacity: 0.6;
}

.chat-form {
  display: flex;
  gap: 0.75rem;
}

.chat-form input,
.fa-form input,
.fa-form textarea {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  font-size: 0.95em;
  outline: none;
}

.chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-form button,
.fa-form button {
  flex-shrink: 0;
  padding: 0.9rem 1.75rem;
  border: none;
  border-radius: 50px;
  background: var(--accent-cyan);
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
}

.chat-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* News */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-date {
  display: block;
  color: var(--accent-blue);
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Footer */

.site-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.icon-row {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.icon-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 100%;
  background: var(--accent-blue);
  transition: transform 0.25s ease;
}

.icon-row a:hover {
  transform: scale(1.1125);
}

.icon-row svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: #fff;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.85em;
  margin: 0;
}

@media (max-width: 640px) {
  .page {
    padding: 2.5rem 1.25rem;
    gap: 4rem;
  }

  .hero h1 {
    font-size: 1.75em;
  }
}
