:root {
  --bg: #06080c;
  --text: #f4f7fb;
  --muted: #b8c0cf;
  --border: rgba(214, 221, 232, 0.18);
  --shadow: rgba(0, 0, 0, 0.35);
  --silver-top: #aab2bf;
  --silver-mid: #7a8390;
  --silver-bottom: #4d5663;
  --accent: #7edb8b;
  --accent-2: #4ab85d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(to bottom, rgba(5, 7, 10, 0.10) 0%, rgba(5, 7, 10, 0.22) 38%, rgba(5, 7, 10, 0.86) 76%, rgba(5, 7, 10, 1) 100%),
    url("images/background-bots.jpg") center top / cover no-repeat,
    radial-gradient(circle at top, #1b2430 0%, var(--bg) 55%);
}

a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 2rem;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(7, 9, 13, 0.75), rgba(7, 9, 13, 0.35));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.hero-bg {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 13rem 1.5rem 2rem;
}

.bot-grid-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  align-self: end;
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 320px));
  justify-content: center;
  gap: 1.5rem;
}

.bot-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(200, 207, 218, 0.20) 0%, rgba(82, 89, 98, 0.22) 10%, rgba(15, 19, 26, 0.88) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.bot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), transparent 30%), linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
}

.bot-card-image {
  height: 250px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-repeat: no-repeat;
  background-size: cover;
}

.bot-zombot {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08)),
    url("images/zombot-card.jpg") center top / cover no-repeat,
    linear-gradient(135deg, #454f60, #212833);
}


.bot-zombot-sftp {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08)),
    url("images/zombot_card_2.jpg") center 18% / cover no-repeat,
    linear-gradient(135deg, #454f60, #212833);
}

.bot-placeholder {
  background: radial-gradient(circle at 50% 32%, rgba(150, 161, 178, 0.16), transparent 28%), linear-gradient(180deg, rgba(33, 40, 51, 0.82), rgba(10, 13, 18, 0.96));
  position: relative;
}

.bot-placeholder::before {
  content: "";
  position: absolute;
  inset: 16px;
  background: radial-gradient(circle at 50% 25%, rgba(0, 0, 0, 0.10), transparent 20%), linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 25%);
  clip-path: polygon(40% 8%, 60% 8%, 68% 16%, 68% 28%, 76% 40%, 76% 70%, 62% 92%, 38% 92%, 24% 70%, 24% 40%, 32% 28%, 32% 16%);
  opacity: 0.55;
  border-radius: 10px;
  filter: blur(1px);
}

.bot-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
  padding: 1.2rem;
  min-height: 220px;
}

.bot-card h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.bot-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.button-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

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

.btn-metal {
  color: #f8fbff;
  background: linear-gradient(180deg, var(--silver-top), var(--silver-mid) 45%, var(--silver-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.28);
}

.btn-accent {
  color: #09100a;
  background: linear-gradient(180deg, #9bf4a7, var(--accent) 48%, var(--accent-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 8px 20px rgba(17, 75, 23, 0.32);
}

.coming-soon .bot-card-body {
  justify-content: end;
}

.brand-statement {
  width: min(1180px, 100%);
  margin: 1.6rem auto 0;
  text-align: center;
}

.brand-statement p {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem 1rem 0.25rem;
  color: var(--muted);
  font-weight: 600;
}

.support-strip a:hover {
  color: var(--text);
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.discord-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.docs-page {
  background: linear-gradient(180deg, #0b0f15, #06080c);
}

.docs-wrap {
  width: min(980px, calc(100% - 2rem));
  margin: 3.5rem auto;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(15, 19, 26, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.docs-wrap h1,
.docs-wrap h2 {
  letter-spacing: -0.04em;
  margin-top: 0;
}

.docs-wrap p {
  color: #c6cedb;
  line-height: 1.65;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.video-card h2 {
  margin-bottom: 0.4rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-top: 1rem;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.note {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-bg { padding-top: 10rem; }
  .bot-grid { grid-template-columns: repeat(2, minmax(220px, 320px)); }
  .bot-card:last-child {
    grid-column: 1 / -1;
    max-width: 320px;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .topbar { padding: 1rem 1rem; }
  .nav { gap: 0.9rem; }
  .nav a { font-size: 0.9rem; }
  .hero-bg { padding: 8rem 1rem 1.5rem; }
  .bot-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bot-card,
  .bot-card:last-child {
    max-width: 380px;
    width: 100%;
    justify-self: center;
  }
  .bot-card { min-height: 420px; }
  .bot-card-image { height: 230px; }
  .brand-statement { margin-top: 1.2rem; }
  .brand-statement p { font-size: 1.35rem; }
  .docs-wrap { padding: 1.25rem; margin: 2rem auto; }
}


.single-button {
  grid-template-columns: 1fr;
}

.readme-wrap {
  width: min(1040px, calc(100% - 2rem));
}

.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.markdown-content p,
.markdown-content li {
  color: #c6cedb;
  line-height: 1.7;
}

.markdown-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.markdown-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #eef4ff;
}

.markdown-content strong {
  color: #f4f7fb;
}

.markdown-content hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 1.5rem 0;
}
