/* chatalot-www — plain HTML, ecosystem theme.
 * Dark purple palette per ecosystem conventions. JetBrains Mono + Inter.
 * Single stylesheet — no build step, no preprocessor.
 */

:root {
  --bg-primary: #05000a;
  --bg-secondary: #0b0517;
  --bg-card: #120a22;
  --bg-code: #1a1030;
  --purple: #7209b7;
  --purple-light: #9a4dd8;
  --purple-dim: #5a0792;
  --cyan: #4cc9f0;
  --text-primary: #e8e4f0;
  --text-secondary: #b0a8c5;
  --text-muted: #7a7290;
  --border: #2a1a45;
  --border-soft: #1a0e2d;
  --accent-green: #4ade80;
  --accent-red: #f87171;
  --accent-amber: #fbbf24;

  --radius: 8px;
  --radius-lg: 14px;
  /* Fonts: self-hosted Inter + JetBrains Mono is a follow-up.
   * For now we rely on system fonts — no third-party CDN calls from a privacy site.
   * Fallback order is near-identical to Inter/JetBrains Mono on most platforms.
   */
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --content-width: 72rem;
  --prose-width: 42rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--cyan); text-decoration: underline; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-code);
  padding: 0.12em 0.42em;
  border-radius: 4px;
  color: #ddd1f5;
  border: 1px solid var(--border-soft);
}

pre {
  font-family: var(--font-mono);
  background: var(--bg-code);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em 0;
  color: var(--text-primary);
}
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.65rem; margin-top: 2.2em; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; }
h4 { font-size: 1.05rem; margin-top: 1.5em; color: var(--text-secondary); }

p { margin: 0 0 1.1em 0; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em 0; }
li { margin: 0.3em 0; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

blockquote {
  border-left: 3px solid var(--purple);
  padding: 0.2em 1em;
  margin: 1.2em 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* -------- Layout -------- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.prose h1 { margin-bottom: 1em; }

/* -------- Nav -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 0, 10, 0.95) 0%, rgba(5, 0, 10, 0.85) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.9rem 0;
}
.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--purple-light); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--purple-light);
}

/* -------- Hero (landing) -------- */
.hero {
  padding: 6rem 1.5rem 4rem;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 3.1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2em;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--purple-light);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--purple-light);
  border-color: var(--purple-dim);
  text-decoration: none;
}

/* -------- Feature grid -------- */
.features {
  padding: 4rem 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
}
.features h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}
.feature {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.feature h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--purple-light);
}
.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* -------- Screenshot showcase -------- */
.showcase {
  padding: 4rem 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
}
.showcase img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(114, 9, 183, 0.15);
}

/* -------- Footer -------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--purple-light); }

/* -------- Release list -------- */
.release-list {
  list-style: none;
  padding: 0;
}
.release-list li {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.release-list h3 {
  margin: 0;
  font-size: 1.1rem;
  display: inline;
}
.release-list a { font-weight: 600; }
.release-list .release-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* -------- Tables -------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
th, td {
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
th {
  font-weight: 600;
  color: var(--purple-light);
  border-bottom: 1px solid var(--border);
}

/* -------- Accessibility -------- */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: 3px;
}

/* -------- Small screens -------- */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1.25rem 2.5rem; }
  .hero h1 { font-size: 2.3rem; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
}
