@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #3b5bdb;
  --primary-dark: #2f49b8;
  --pill: #f3f4f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Gotham", "Arial", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.topbar {
  background: #f9fafb;
  border-bottom: 1px solid var(--line);
}

.topbar-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.nav-row {
  padding-top: 0;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  height: 26px;
  max-width: 120px;
}

.brand img {
  height: 100%;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 34px;
  padding-left: 62px;
}

.nav-link {
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.search input {
  width: 380px;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 13px;
}

.auth {
  display: flex;
  gap: 8px;
}

.btn {
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f2f3f5;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.outline {
  background: #fff;
  border-color: var(--line);
  color: #374151;
}

.btn.wide {
  min-width: 220px;
  height: 34px;
}

.btn.ghost {
  background: #3b3f48;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.btn.icon {
  padding: 6px 10px;
  border-radius: 8px;
  background: #f2f3f5;
}

.page {
  max-width: 980px;
  margin: 18px auto 60px;
  padding: 0 20px;
}

.page-section.hidden {
  display: none;
}

.section-title {
  margin: 0 0 14px;
  font-size: 26px;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-size: 28px;
}

.more {
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.community-card {
  background: var(--card);
  border-radius: 10px;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-info h2 {
  margin: 0 0 2px;
  font-size: 22px;
}

.subtle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-block;
  background: var(--pill);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
}

.note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.more-link {
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
}

.community-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tabs {
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 26px;
}

.tab {
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #4b5563;
  font-weight: 600;
  font-size: 14px;
}

.tab.active {
  border-bottom-color: #111827;
  color: #111827;
}

.members {
  padding: 12px 0 24px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}

.members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.members-header h3 {
  margin: 0;
  font-size: 16px;
}

.select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}

.members-body {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 14px;
}

.screenshot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.login-page {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 30px 0 80px;
}

.login-bg {
  position: absolute;
  inset: 0;
  background: #0b0f15 url("login-bg.png") center/cover no-repeat;
  filter: brightness(0.7) contrast(1.05);
  border-radius: 6px;
}

.login-card {
  position: relative;
  background: #2f333b;
  color: #e5e7eb;
  width: min(420px, 92%);
  padding: 18px 18px 16px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  z-index: 2;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-form input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #3a3f49;
  color: #e5e7eb;
}

.login-link {
  color: #e5e7eb;
  font-size: 13px;
  display: inline-block;
  margin: 10px 0 12px;
}

.login-foot {
  margin-top: 12px;
  font-size: 13px;
  color: #d1d5db;
}

.login-message {
  margin-top: 10px;
  font-size: 13px;
}

.btn.login-primary {
  background: #2d3340;
  color: #e5e7eb;
  border: 1px solid #9ca3af;
  height: 34px;
}

.btn.login-secondary {
  background: #3a3f49;
  color: #e5e7eb;
  border: 1px solid #4b5563;
  height: 32px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .topbar-row {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    padding-left: 0;
  }

  .search {
    order: 4;
  }

  .auth {
    order: 3;
  }
}

.footer {
  background: #ffffff;
  padding: 28px 20px 36px;
}

.footer-links {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #4b5563;
  font-size: 13px;
}

.footer-line {
  max-width: 980px;
  margin: 20px auto 12px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: 980px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .topbar-row {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    padding-left: 0;
  }

  .search {
    order: 4;
  }

  .auth {
    order: 3;
  }

  .community-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .community-actions {
    justify-content: center;
  }
}
