:root {
  --bg: #0b1411;
  --panel: #11211c;
  --line: #2a463d;
  --text: #e5fbf4;
  --muted: #9fc7bb;
  --accent: #0f766e;
  --accent-strong: #0d9488;
  --warn: #f59e0b;
  --ok: #22c55e;
}

* {
  box-sizing: border-box;
}

html {
  background-color: #000000;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: #000000;
}

.landing {
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 24px;
}

.hidden {
  display: none !important;
}

/* Typography */

h1, h2, h3 {
  margin: 0 0 8px;
  font-family: "Sora", "IBM Plex Sans", sans-serif;
}

h2 { margin-bottom: 0; }

.muted {
  margin: 0;
  color: var(--muted);
}

a {
  color: var(--accent-strong);
}

a:hover {
  color: color-mix(in oklab, var(--accent-strong), white 20%);
}

code {
  font-size: 0.82rem;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* Brand */

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-logo.large {
  width: 56px;
  height: 56px;
}

.brand-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent-strong), white 28%);
}

.brand-copy h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

/* Hero */

.hero {
  padding: 48px 0 32px;
  display: grid;
  gap: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: white;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

/* Features grid */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: color-mix(in oklab, var(--panel), black 12%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 6px;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Panel (shared) */

.panel {
  background: color-mix(in oklab, var(--panel), black 12%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 14px;
}

/* Quick install */

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.install-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.install-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--text);
}

.install-icon {
  font-size: 1.4rem;
}

.install-card .muted {
  font-size: 0.78rem;
}

/* Setup guides */

.setup-guide {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.setup-guide summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 500;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s;
  list-style: none;
}

.setup-guide summary::-webkit-details-marker {
  display: none;
}

.setup-guide summary::before {
  content: "\25B6";
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 0.2s;
}

.setup-guide[open] summary::before {
  transform: rotate(90deg);
}

.setup-guide summary:hover {
  background: rgba(255,255,255,0.05);
}

.platform-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}

.platform-badge.slack {
  background: #4a154b;
  color: #e8d5e8;
}

.platform-badge.discord {
  background: #5865f2;
  color: #e0e3ff;
}

.platform-badge.telegram {
  background: #0088cc;
  color: #d4efff;
}

.platform-badge.gmail {
  background: #c5221f;
  color: #fde0df;
}

.guide-body {
  padding: 4px 20px 20px;
}

.guide-body ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.guide-body ol a {
  font-weight: 500;
}

.guide-body > p {
  margin-top: 12px;
  font-size: 0.85rem;
}

/* LLM cards */

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

.llm-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.llm-card .muted {
  font-size: 0.78rem;
}

.llm-link {
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 4px;
}

/* How it works */

.how-grid {
  display: grid;
  gap: 16px;
}

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.how-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.how-step p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Footer */

.footer {
  text-align: center;
  padding: 24px 0;
}

.footer p {
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 640px) {
  .landing {
    padding: 16px;
  }

  .brand-copy h1 {
    font-size: 1.3rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .llm-grid {
    grid-template-columns: 1fr;
  }
}
