:root {
  --bg: #0d0e12;
  --bg-elevated: #16181f;
  --bg-card: #1b1e27;
  --border: #262a36;
  --text: #e7e9ee;
  --text-muted: #9aa1b1;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --radius: 14px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.lang-switch {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 80px 0 56px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(88, 101, 242, 0.18), transparent 70%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Bots section */
.bots-section { padding: 40px 0 72px; }
.bots-section h2 {
  font-size: 1.5rem;
  margin: 0 0 28px;
}
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.bot-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--brand));
}
.bot-card-head { display: flex; align-items: center; gap: 14px; }
.bot-card-head h3 { margin: 0; font-size: 1.2rem; }
.bot-icon, .bot-icon-fallback {
  width: 52px; height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}
.bot-icon-fallback {
  display: grid;
  place-items: center;
  background: var(--accent, var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
}
.bot-tagline { color: var(--text-muted); margin: 0; flex: 1; }
.bot-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text-muted); }

/* Bot detail */
.bot-detail { padding: 40px 0 72px; }
.back-link { color: var(--text-muted); font-size: 0.95rem; }
.bot-detail-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0 8px;
}
.bot-detail-head h1 { margin: 0 0 4px; font-size: 2rem; }
.bot-icon-lg, .bot-detail .bot-icon-fallback {
  width: 84px; height: 84px;
  border-radius: 20px;
  flex-shrink: 0;
  object-fit: cover;
}
.bot-detail .bot-icon-fallback { font-size: 2.2rem; }
.bot-description { font-size: 1.1rem; margin: 20px 0 30px; }
.bot-detail h2 { font-size: 1.3rem; margin: 30px 0 14px; }
.feature-list { padding-left: 0; list-style: none; }
.feature-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--brand));
}
.bot-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0; }
.legal-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Legal pages */
.legal-page { padding: 48px 0 72px; }
.legal-page h1 { font-size: 2rem; margin: 0 0 8px; }
.legal-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 32px; }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 1.2rem; margin: 0 0 10px; }
.legal-body { color: var(--text); margin-bottom: 10px; }
.legal-body ul { margin: 8px 0; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-contact {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.empty { color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 26px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 600px) {
  .header-inner { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; }
  .bot-detail-head { flex-direction: column; align-items: flex-start; text-align: left; }
}
